File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
BuiltInTools/dotnet-watch Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 15
15
16
16
<!-- Avoid https://github.com/dotnet/arcade/issues/9305 -->
17
17
<AutoGenerateBindingRedirects >false</AutoGenerateBindingRedirects >
18
+
19
+ <!--
20
+ Disable CS9057 in source-only dev/ci builds. This is necessary because dotnet-watch distributes some ASP.NET Core
21
+ analyzers. These analyzers get built with a dependency on the live version of Microsoft.CodeAnalysis. In a dev/ci
22
+ build, the assembly version associated with Microsoft.CodeAnalysis in that case is 42.42.42.4242, set by Arcade in
23
+ dev/ci builds. So when building dotnet-watch with its analyzer dependencies, it will cause CS9057 because the
24
+ analyzer assembly version is not the same as the compiler assembly version being used by the sdk that the project
25
+ is being built with. But this is fine because the analyzer is just being used here to distribute it with the tool.
26
+ -->
27
+ <NoWarn Condition =" '$(DotNetBuildSourceOnly)' == 'true' and '$(OfficialBuild)' != 'true'" >$(NoWarn);CS9057</NoWarn >
18
28
</PropertyGroup >
19
29
20
30
<ItemGroup >
Original file line number Diff line number Diff line change 11
11
12
12
<PropertyGroup >
13
13
<TargetFrameworks >$(SdkTargetFramework);net472</TargetFrameworks >
14
+
15
+ <!--
16
+ Disable CS9057 in source-only dev/ci builds. This is necessary because the SDK distributes Microsoft.AspNetCore.Analyzers
17
+ with its Microsoft.NET.Sdk.Web.Tasks package. Microsoft.AspNetCore.Analyzers gets built with a dependency on the live
18
+ version of Microsoft.CodeAnalysis. In a dev/ci build, the assembly version associated with Microsoft.CodeAnalysis in
19
+ that case is 42.42.42.4242, set by Arcade in dev/ci builds. So when building Microsoft.NET.Sdk.Web.Tasks with its
20
+ analyzer dependencies, it will cause CS9057 because the analyzer assembly version is not the same as the compiler
21
+ assembly version being used by the sdk that the project is being built with. But this is fine because the analyzer
22
+ is just being used here to distribute it with the Microsoft.NET.Sdk.Web.Tasks package.
23
+ -->
24
+ <NoWarn Condition =" '$(DotNetBuildSourceOnly)' == 'true' and '$(OfficialBuild)' != 'true'" >$(NoWarn);CS9057</NoWarn >
14
25
</PropertyGroup >
15
26
16
27
<ItemGroup >
You can’t perform that action at this time.
0 commit comments