There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Add 1st class support for assembly platform (x86, x64, ARM, Any CPU)
I have a number of 3rd party assemblies that I would like to use nuget with but they have native platform dependencies. Currently the only solution is to create multiple packages specifying the platform in the name, or, not use the lib directory and work
some PowerShell magic so the package can contain multiple assemblies with different platform targets. "Multiple packages" is not an actual workaround since I wouldn't be able to take a dependency on a platform-specific package from an "Any CPU"
I would like nuget to support multiple assemblies from the lib folder based on the project's current platform target. For example, something like this would work:
One approach that may work with nuget is to specify the MSBUILD $(Platform) variable in the project's reference hint path. For example:
<Reference Include="sbclient, Version=184.108.40.206, Culture=neutral, PublicKeyToken=371d4a7d6f5d7853">