Skip to content

Commit 13d49ca

Browse files
committed
chore: fix nightly build CI error
1 parent 4e440eb commit 13d49ca

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Directory.Build.props

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
-->
2323
<NoWarn>$(NoWarn);NU1507;NU5104;NU5111</NoWarn>
2424
</PropertyGroup>
25-
26-
<!-- Following settings is temporary workaround to suppress warning NU1903: Package 'Microsoft.Build.Tasks.Core' 17.7.2 has a known low severity vulnerability -->
27-
<PropertyGroup>
28-
<!-- `all` is default NuGetAuditMode when build with .NET SDK 10 or later -->
29-
<NuGetAuditMode>direct</NuGetAuditMode>
30-
</PropertyGroup>
31-
25+
3226
<PropertyGroup>
3327
<ContentTargetFolders>contentFiles</ContentTargetFolders>
3428

Directory.Packages.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
<PackageVersion Include="Microsoft.Build" Version="17.14.8" Condition="'$(TargetFramework)' != 'net8.0'"/>
2929
</ItemGroup>
3030

31+
<!-- Temporary settings to suppress NU1901 warning. -->
32+
<!-- TODO: Remove these settings after `Microsoft.CodeAnalysis.Workspaces.MSBuild` dependency is updated. -->
33+
<ItemGroup>
34+
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="[17.11.31]" Condition="'$(TargetFramework)' == 'net8.0'"/>
35+
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="17.14.8" Condition="'$(TargetFramework)' != 'net8.0'"/>
36+
</ItemGroup>
37+
3138
<ItemGroup>
3239
<PackageVersion Include="Microsoft.CodeAnalysis" Version="4.14.0" />
3340
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />

src/Docfx.Dotnet/Docfx.Dotnet.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
4040
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" />
4141
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" />
42+
<!-- Temporary settings to suppress NU1901 warning. -->
43+
<!-- TODO: Remove this setting after `Microsoft.CodeAnalysis.Workspaces.MSBuild` dependency is updated. -->
44+
<PackageReference Include="Microsoft.Build.Tasks.Core" />
4245
</ItemGroup>
4346

4447
</Project>

0 commit comments

Comments
 (0)