package explorer difference with nuget.exe

Apr 11, 2011 at 8:19 AM

I think there may be a bug in the package explorer....

When I create a nuspec file, containing framework assembly references like this 

<frameworkAssemblies>
     <frameworkAssembly assemblyName="System.Configuration" targetFramework="net2,net4" />
     <frameworkAssembly assemblyName="System.Security" targetFramework="net2,net4" />
</frameworkAssemblies>

the nuspec files inside the nupkg after compiling this with nuget.exe, keeps both net2 and net4 target

but the package explorer does not allow me to specify two targetframeworks... when I specify net2,net4 only net4 is retained

 

Apr 11, 2011 at 9:14 AM

Thanks for reporting. I confirm this is a typo bug of package explorer.  If you set it as net2;net4 (semi-colon instead of comma) it will work as expected.

Comma is still the correct separator though. I'll fix it in the next release.

Apr 11, 2011 at 9:15 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 11, 2011 at 9:18 AM

Note that the semi-colon is only present inside package explorer. When you save the package, it will still produce a valid .nupkg file with comma.

Apr 11, 2011 at 11:21 AM

ok, thx