Skip to content

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

Merged
eerhardt merged 2 commits into
dotnet:masterfrom
eerhardt:AddCryptoAlgorithms
Aug 16, 2016
Merged

eerhardt merged 2 commits into
dotnet:masterfrom
eerhardt:AddCryptoAlgorithms

Conversation

@eerhardt

Copy link
Copy Markdown
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

natidea commented Aug 16, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
springmin added a commit to springmin/sdk-ohos that referenced this pull request Oct 4, 2026
Advance WORKLOAD_BUNDLE_SHA256 from a8334c4c (kit dotnet#45) to f086d161, the kit dotnet#46
repack of openharmony-workload-1.0.0-preview.28: the Sdk pack carries the FIX-A11YBUTTON
shell (ui abc 369,472/a0dbad04, pages/Index.ets 325,846/7d971a5e, provenance 446f9215;
headless 24,324/798b2477 unchanged), the unchanged host (297,888/7b1694d9), the P2c
skills[].uris targets (77,401/9d0389d4) and tasks (40,960/0c186779); the kits haps were
rebuilt with the INTERP-DRAW2 MAUI slice (6652017ca5) and the Ref/Runtime managed packs
were rebuilt from the same sources. Installer tests: 43/43 + 10/10 + 5/5,
fetch-nativeaot --local content check OK (r2 OpenSSL shim 5/5).
springmin added a commit to springmin/sdk-ohos that referenced this pull request Oct 4, 2026
Advance WORKLOAD_BUNDLE_SHA256 from f086d161 (kit dotnet#46) to 27c54c62, the kit dotnet#47
repack of openharmony-workload-1.0.0-preview.28: the Sdk pack carries the FIX-PREEMPT-RAW
shell (ui abc 370,240/4b439e83, pages/Index.ets 326,953/69dc09e0, provenance bb5a1758;
headless 24,324/798b2477 unchanged), the unchanged host (297,888/7b1694d9), the P2c
skills[].uris targets (77,401/9d0389d4) and tasks (40,960/0c186779); the kits haps were
rebuilt with the FIX-A11YFLYOUT MAUI slice (d5384d6cc3) and the Ref/Runtime managed packs
were rebuilt from the same sources. Installer tests: 43/43 + 10/10 + 5/5,
fetch-nativeaot --local content check OK (r2 OpenSSL shim 5/5).
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