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

Disable System.CommandLine trimming for source-build #2149

Closed
wants to merge 1 commit into from

Conversation

mthalman
Copy link
Member

@mthalman mthalman commented Apr 5, 2023

When attempting to enable PVP flow for the command-line-api, a prebuilt was detected for Microsoft.NET.ILLink.Tasks.7.0.100-1.23062.2. This occurs as a result of the enablement of trimming for the System.CommandLine project.

To resolve this, I've changed the configuration to only enable trimming when not running source-build. I initially attempted to only apply this condition to the EnableTrimAnalyzer property but that did not prevent the loading of Microsoft.NET.ILLink.Tasks.

cc @jonsequitur @mmitche @MichaelSimons

@mmitche
Copy link
Member

mmitche commented Apr 5, 2023

Other option might be to disable targeting net7 in source build (and targeting net8). I don't have a strong opinion, but I think @MichaelSimons may think that not targeting net7 is the right way to go, because that avoids bringing in the net7 targeting pack at all.

@MichaelSimons
Copy link
Member

This doesn't seem like a long term change that we would want. Is my understanding correct, that this wouldn't be an issue once net 8.0? If so, I like @mmitche's suggestion of conditionally targeting net8.0 for source-build.

FYI, This repo has not flowed into the product repos for some time now. IIRC this is because of the number of the breaking changes being made. Any changes needed now for source-build should be checked in like this but you will also need to create a source-build patch.

@mmitche
Copy link
Member

mmitche commented Apr 5, 2023

This doesn't seem like a long term change that we would want. Is my understanding correct, that this wouldn't be an issue once net 8.0? If so, I like @mmitche's suggestion of conditionally targeting net8.0 for source-build.

FYI, This repo has not flowed into the product repos for some time now. IIRC this is because of the number of the breaking changes being made. Any changes needed now for source-build should be checked in like this but you will also need to create a source-build patch.

It does look like they are iterating in sdk on the update. Not sure when it's expected to get checked in though.

@mthalman
Copy link
Member Author

mthalman commented Apr 5, 2023

Ok, I'll close this for now and go with the approach of targeting net8.0 instead.

@mthalman mthalman closed this Apr 5, 2023
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