How would you include runtime dlls like MSVCR100.DLL?

Jul 9, 2011 at 7:57 PM

I have a .Net assembly that contains unmanaged C++ and requires the C++ runtime libaries MSVCR100.dll and MSVCP100.dll and I would like to include both with my package.  If I put in in lib, it does not install properly since NuGet assumes they are assemblies.  If I put it in content it does not appear to get copied to the output directory. 

Developer
Jul 11, 2011 at 12:40 AM

We don't have any direct support for this in nuget today. To achieve this you'd need to write some powershell. Take a look at the sqlce package (http://nuget.org/List/Packages/SqlServerCompact) to see how it does it.

Jul 13, 2011 at 9:10 AM
Edited Jul 13, 2011 at 9:25 AM

Do you plan to add any direct support within nuget for a use case like this?

I think it's a pretty common scenario that one needs to copy some files to the output directory while not referencing them.

Coordinator
Jul 13, 2011 at 4:57 PM

Do you mean “it's a pretty common scenario that one needs to copy some files to the output directory whilewithout referencing them.”?

I think we might have an issue on this somewhere. We don’t yet have any plans to implement this. If you can find that issue, vote it up. If not, log a feature request.

Sep 26, 2011 at 8:56 PM

I didn't find an existing issue, so I opened a new one: http://nuget.codeplex.com/workitem/1548