External packages cannot depend on packages that target projects.

Nov 20, 2010 at 4:11 PM

What does this error mean? I created a very simple nuspec file (see below). And when I run the VerifyPackage command I get this error. 

Any help will be appreciated. Thanks

<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
    <id>Bootstrapper</id>
    <version>1.0</version>
    <authors>Luis Bocaletti</authors>
    <licenseUrl>http://bootstrapper.codeplex.com/license</licenseUrl>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Bootstrapper uses a convention over configuration approach to initialize your IOC container, create automapper maps and run any other startup tasks that your application might need.</description>
    <summary>bootstrap your applications container, maps and tasks</summary>
    <language>en-US</language>
    <dependencies>
      <dependency id="AutoMapper" version="1.1.0.118" />
      <dependency id="CommonServiceLocator" version="1.0" />
    </dependencies>	
  </metadata>
</package>

Developer
Nov 20, 2010 at 4:28 PM
Edited Nov 20, 2010 at 4:28 PM

Can you show what your package looks like? That happens when a package that doesn't target a project (i.e. doesn't have content or lib) depends on a package that does target a project.

Nov 20, 2010 at 5:13 PM

Here

C:\Users\boca\Documents\Visual Studio 2010\Projects\bootstrappernuget\PackageSou
rces\Bootstrapper>dir /s
 Volume in drive C has no label.
 Volume Serial Number is 5679-A4FF

 Directory of C:\Users\boca\Documents\Visual Studio 2010\Projects\bootstrappernu
get\PackageSources\Bootstrapper

11/20/2010  09:44 AM    <DIR>          .
11/20/2010  09:44 AM    <DIR>          ..
11/20/2010  09:44 AM    <DIR>          1.0
11/20/2010  09:36 AM               953 Bootstrapper.nuspec
               1 File(s)            953 bytes

 Directory of C:\Users\boca\Documents\Visual Studio 2010\Projects\bootstrappernu
get\PackageSources\Bootstrapper\1.0

11/20/2010  09:44 AM    <DIR>          .
11/20/2010  09:44 AM    <DIR>          ..
11/20/2010  09:44 AM    <DIR>          lib
               0 File(s)              0 bytes

 Directory of C:\Users\boca\Documents\Visual Studio 2010\Projects\bootstrappernu
get\PackageSources\Bootstrapper\1.0\lib

11/20/2010  09:44 AM    <DIR>          .
11/20/2010  09:44 AM    <DIR>          ..
10/16/2010  03:05 PM            10,240 Bootstrapper.dll
               1 File(s)         10,240 bytes

     Total Files Listed:
               2 File(s)         11,193 bytes
               8 Dir(s)  1,933,404,213,248 bytes free

Thanks for your help. 

Developer
Nov 20, 2010 at 6:25 PM

Yea, it looks like your package structure is wrong. This is what you want:

Bootstrapper/
                   1.0/
                        lib/
                            Bootstrapper.dll
                        Bootstrepper.nuspec 

 

Hope that helps.

Nov 20, 2010 at 6:59 PM

That worked. Thanks a lot!!

Luis