-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add deprecation warning NETSDK1234 for RoslynCompilerType=Framework #51723
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
Changes from 2 commits
1e25453
f821887
5006db7
8ad99ab
4446d41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <!-- | ||
| *********************************************************************************************** | ||
| Microsoft.NET.RoslynCompilerTypeDeprecation.targets | ||
| WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | ||
| created a backup copy. Incorrect changes to this file will make it | ||
| impossible to load or build your projects from the command-line or the IDE. | ||
| Copyright (c) .NET Foundation. All rights reserved. | ||
| *********************************************************************************************** | ||
| --> | ||
| <Project> | ||
|
|
||
| <!-- | ||
| This target detects when RoslynCompilerType is set to 'Framework' and warns that it is deprecated. | ||
| RoslynCompilerType='Framework' is deprecated and will be removed in .NET 11. | ||
| Users should migrate to using the default compiler type or explicitly set RoslynCompilerType to 'Core' or 'FrameworkPackage'. | ||
| This check runs before PrepareForBuild to catch the issue early in the build process. | ||
| --> | ||
| <Target Name="_CheckForDeprecatedRoslynCompilerType" | ||
| BeforeTargets="PrepareForBuild" | ||
| Condition="'$(RoslynCompilerType)' == 'Framework'"> | ||
|
|
||
| <NETSdkWarning ResourceName="RoslynCompilerTypeFrameworkIsDeprecated" | ||
| FormatArguments="https://aka.ms/dotnet-compiler-platform" /> | ||
jjonescz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| </Target> | ||
|
|
||
| </Project> | ||
Uh oh!
There was an error while loading. Please reload this page.