-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Source build fixes #67747
Source build fixes #67747
Conversation
The source build produced from our official build needs to include both the net7.0 and net8.0 packages. Those packages feed into the soucre build legs of other repos and they can be targeting either net7.0 or net8.0.
@dotnet/roslyn-compiler PTAL |
Work around a bug in the public API analyzer dotnet/roslyn-analyzers#6059
targeting NetCurrent or NetPrevious hence we must produce both. | ||
- Source build the product: this is the all up build of the product which needs only NetCurrent | ||
--> | ||
<SourceBuildTargetFrameworks></SourceBuildTargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: seems like this empty property is not needed? (Won't it prevent someone doing msbuild /p:SourceBuildTargetFrameworks=customvalue
if they want to experiment locally?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't it prevent someone doing msbuild /p:SourceBuildTargetFrameworks=customvalue
It won't prevent that because /p:
wins all the time as it's a global property. Essentially it overrides whatever is in the project file and becomes a readonly property of build. It's very counterintuitive. The only way to get around this is to use TreatAsLocalProperty
. Generally though that feature is not used very often, at least in our builds
this is still blocking the sdk change |
As of dotnet/roslyn#67747, the name is just netcore. Also simplified to use GeneratePathProperty.
As of dotnet/roslyn#67747, the name is just netcore.
The source build produced from our official build needs to include both the net7.0 and net8.0 packages. Those packages feed into the soucre build legs of other repos and they can be targeting either net7.0 or net8.0.