-
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
Only target NetCurrent for source build #76505
base: main
Are you sure you want to change the base?
Conversation
That doesn't solve the problem. It still attempts to build Microsoft.CodeAnalysis with the net9.0 TFM in a source build configuration which leads to the following errors:
This happens because it's loading the 9.0 targeting back from SBRP which has no analyzers. But the point is, it shouldn't be attempting to target net9.0 in full source build. |
Yes, I agree that when building roslyn from source |
The
NetCurrent
property is the only value that should be targeted in the context of source build. Otherwise, whenNetCurrent
isnet10.0
andNetPrevious
isnet9.0
, you can run into this error when building with the latest .NET 10 SDK build:Found as part of the work on dotnet/sdk#45435.