-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Framework.NuGet.Packager to Enhance PopulateFolder() Method to Support Architecture & Platform #84
Comments
A modified
|
Hi, please submit a pull request. |
Is it really a good idea to package development dependency for every possible target platform? Why does NuGet package contain binaries for .NET 3.5? Is it to support some older version of Visual Studio? In such case it may be better to provide separate NuGet packages. |
The
PopulateFolder()
method inpackager.cs
currently only supports the use of the<Framework>
attribute, however NuGet packages can also support multiple processor architectures (e.g. 'x86' and 'x64') and platforms (e.g.'win81').So if a user were to specify:
<LibraryFiles Include="..\dir\myLibrary.dll">
<Architecture>x86</Architecture>
<Framework>net40</Framework>
<Platform>win</Platform>
</LibraryFiles>
The
PopulateFolder()
method would test for the presence of the<Architecture>
and<Platform>
tags before testing for the presence of the<Framework>
tag, and if found, would populate the folders like this:.\runtimes\{platform}-{architecture}\lib\{framework}
For example:
.\runtimes
____
\win-x86
________
\lib
____________
\net40
________________
\myLibrary.dll
____________
\net45
________________
\myLibrary.dll
____
\win-x64
________
\lib
____________
\net40
________________
\myLibrary.dll
____________
\net45
________________
\myLibrary.dll
More information on this syntax is here: Supporting multiple .NET framework versions
The text was updated successfully, but these errors were encountered: