Using Client profile binaries for Full Profile project

Apr 15, 2011 at 10:57 PM


I have a package that supports the following Framework :

I created a project targeting  .NET Framework 3.5 (No profile).
When I referenced my package, I was expecting nuget  adds a reference to my net35-client package version, but it was net20 version.

I had to duplicate my files for the net35 and net40 directory which increased the package weight.


- Bruno 

Feb 1, 2012 at 8:59 AM


I have the same question.

If i have client profile assemblies, do i need to add the files to the net40-client folder and to the net40-full folder?



Feb 1, 2012 at 5:31 PM

@bbaia: I've just tried to repro your scenario. NuGet correctly installed the reference from net35-client. Can you share your package so that I can take a look?

@Pitterling: You don't have to add net40-full folder if they are exactly the same as net40-client. In other words, if you install the package into a full .NET 4.0 projects, NuGet will reference the assemblies from net40-client.

Feb 1, 2012 at 6:15 PM

My package is "Spring.Rest"

I actually have net40 and net40-client with the same content (same for net35 and net35-client). 
So I just need to upload net35-client & net40-client ?

- Bruno


Feb 1, 2012 at 6:44 PM

Yes, you should be able to exclude net40 and net35 folders.

Feb 1, 2012 at 6:51 PM

Can you tell me since which NuGet version we can do that ?
(What I mean is that if it has just been fixed in 1.6, I should maybe let net35 and net40 directories for a moment.)

- Bruno

Feb 2, 2012 at 3:02 AM

It has been supported since very early version of NuGet, maybe 1.2 or 1.3.

Feb 2, 2012 at 11:05 PM

I will update my packges then.

- Bruno