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

Update to assembly filtering in ClickOnce task for .NET Core scenario #6080

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

sujitnayak
Copy link
Contributor

@sujitnayak sujitnayak commented Jan 25, 2021

Context
Issue:
ClickOnce filters our assemblies that are part of the .NET Framework from publishing. This is done by looking up the assembly reference in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework<version> folder. This works reliably for .NET FX scenarios. However for .NET Core, this check is not reliable. For a packages like System.ServiceModel.Primitives, the system.servicemodel and system.servicemodel.primitives assemblies get filtered out because they are present under C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore but they are not present in .NET Core's runtime pack.
This will lead to app launch failure due to missing dependency.

Changes Made
Fix ClickOnce's assembly filtering code for .net core to not filter copylocal assemblies even if the look up under C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore has succeeded.

Testing
CTI has validated specific packages that are affected and also validated the change against top 50 NuGet packages.

Work Item
https://developercommunity2.visualstudio.com/t/ClickOnce-no-longer-works/1288425

…em.servicemodel package assemblies incorrectly. Fix the code to not filter assemblies if they are are marked as copylocal
@sujitnayak sujitnayak requested a review from John-Hart January 25, 2021 19:07
@sujitnayak sujitnayak merged commit 5afd0ef into dotnet:vs16.9 Jan 25, 2021
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.

3 participants