Skip to content
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

"Publish" our tasks assembly into platform-specific folders inside our NuGet package. #46

Merged
merged 2 commits into from
Aug 16, 2016

Conversation

eerhardt
Copy link
Member

This allows us to put platform-specific dependencies in the NuGet package, and fixes the issue of getting FileNotFound 'System.Security.Cryptography.Algorithms' on net46 by adding that assembly to our NuGet package.

Along with this change, I refactored the nuspec to include all files under the "PackagesLayout" folder, which means we no longer have to duplicate each file. "Build" just needs to place the file in the correct spot under "PackagesLayout".

Fix #45

@brthor @livarcocc @piotrpMSFT @natidea

/cc @ericstj @dotnet/project-system

…r NuGet package.

This allows us to put platform-specific dependencies in the NuGet package, and fixes the issue of getting FileNotFound 'System.Security.Cryptography.Algorithms' on net46 by adding that assembly to our NuGet package.

Along with this change, I refactored the nuspec to include all files under the "PackagesLayout" folder, which means we no longer have to duplicate each file.  "Build" just needs to place the file in the correct spot under "PackagesLayout".

Fix #45
@eerhardt eerhardt mentioned this pull request Aug 15, 2016
@natidea
Copy link
Contributor

natidea commented Aug 16, 2016

A bit hard to follow the flow of all the files, but if it builds and everything is in the right place, then 👍 :)


<!-- Add our tasks assembly -->
<CopyLocalAssembly Include="$(AssemblyName)$(TargetExt)">
<FullFilePath>$(OutDir)\$(AssemblyName)$(TargetExt)</FullFilePath>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use TargetPath here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I could have if I continued this same approach. But in my latest commit, I moved all this logic out of this project and into the NuGet project.

Also use a Regex to match DestinationTFM properties in CopyLocalAssembly to know which TFM directory to copy assemblies to.
@eerhardt eerhardt merged commit ef1d79d into dotnet:master Aug 16, 2016
@eerhardt eerhardt deleted the AddCryptoAlgorithms branch August 16, 2016 19:10
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
"Publish" our tasks assembly into platform-specific folders inside our NuGet package.
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
Fixing the task to use the right name based on MSBuildRuntimeType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not load file or assembly 'System.Security.Cryptography.Algorithms' on net46
3 participants