File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
src/Microsoft.Net.Sdk.Compilers.Toolset Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >$(SdkTargetFramework)</TargetFramework >
5
- <Description >Transport package for Microsoft.Net.Compilers.Toolset.Framework assemblies. For internal use only.</Description >
5
+ <Description ><![CDATA[
6
+ Transport package for Microsoft.Net.Compilers.Toolset.Framework assemblies. For internal use only:
7
+ do not reference this package directly as it is explicitly not supported in that fashion.
8
+
9
+ This package is automatically downloaded when your MSBuild version does not match your SDK version.
10
+ Then the package is used to build your project with the compiler version matching your SDK version
11
+ instead of the one bundled with MSBuild.
12
+
13
+ If you want to download this package using the dotnet CLI, you can use the following command:
14
+
15
+ ```
16
+ dotnet restore /p:BuildWithNetFrameworkHostedCompiler=true
17
+ ```
18
+
19
+ If you want to disable automatic download and use of this package, set property `BuildWithNetFrameworkHostedCompiler` to `false`
20
+ (for example, in your `.csproj` or `Directory.Build.props` file).
21
+ However, be aware that you will be building with mismatched compiler and SDK versions.
22
+ That is explicitly not supported and can lead to errors (especially with analyzers and source generators).
23
+ ]]> </Description >
6
24
<IsPackable >true</IsPackable >
7
25
<IsShippingPackage >true</IsShippingPackage >
8
26
<IncludeBuildOutput >false</IncludeBuildOutput >
You can’t perform that action at this time.
0 commit comments