External packages cannot depend on packages that target projects.

Jan 21, 2011 at 1: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"?>
    <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>
      <dependency id="structuremap" version="" />
      <dependency id="WebActivator" version="" />
      <file src="content\*.pp" target="" />

my dir :

root -> .nuspec file

root -> content -> .pp files

Any ideas?



Jan 21, 2011 at 3:28 AM

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

Jan 21, 2011 at 4:15 AM

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

Jan 21, 2011 at 5: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 5: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?

Jan 21, 2011 at 5:38 PM

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