External packages cannot depend on packages that target projects.

Jan 21, 2011 at 12:52 AM

Was trying to make a simple package as a sort of HelloWorld learning exercise. I am able to to successfully create a package, but when I try to install it from a local feed I get this error : External packages cannot depend on packages that target projects.

My .nuspec :

<?xml version="1.0" encoding="utf-8"?>
<package>
  <metadata>
    <id>structiremapMvc3</id>
    <version>1.0.0</version>
    <authors>Paul Barton</authors>
    <description>Adds the latest version of structuremap and configures it as the default Dependency Resolver.</description>
    <summary>Adds and sets up structuremap 2x for ASP.NET MVC3 applications.</summary>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <language>en-US</language>
    <projectUrl>https://github.com/webadvanced/Structuremap-MVC3</projectUrl>
    <dependencies>
      <dependency id="structuremap" version="2.6.1.0" />
      <dependency id="WebActivator" version="1.0.0.0" />
    </dependencies>
  </metadata>
  <files>
      <file src="content\*.pp" target="" />
  </files>
</package>

my dir :

root -> .nuspec file

root -> content -> .pp files

Any ideas?

 

 

Developer
Jan 21, 2011 at 2:28 AM

Look inside your package and tell me what the structure looks like.

Developer
Jan 21, 2011 at 3:15 AM

I looked into it. You need to add "content" to the target. 

Jan 21, 2011 at 4:51 AM

Thanks for the reply. I am not at work, but will test this in the AM. Thanks again for taking the time to reply.

Jan 21, 2011 at 4:36 PM

Fixed it. Cannot seem to find any info on creating code to remove the dependencies and files I add to the project, is there any?

Developer
Jan 21, 2011 at 4:38 PM

Not sure I understand. What are you trying to do, remove a package and it's dependencies?