During source build, target net8.0 only

This commit is contained in:
Michael Simons 2023-05-30 21:33:38 +00:00
Родитель 0493d12e6f
Коммит f6be557f14
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -1,11 +1,5 @@
<UsageData>
<IgnorePatterns>
<UsagePattern IdentityGlob="Microsoft.SourceBuild.Intermediate.*/*" />
<!-- Ignoring the following prebuilts. net7.0 targeting is still needed
due to https://github.com/dotnet/razor/issues/8293#issuecomment-1454042002
net7.0 targeting removal is tracked in https://github.com/dotnet/razor/issues/8531 -->
<UsagePattern IdentityGlob="Microsoft.AspNetCore.App.Ref/7.0.2" />
<UsagePattern IdentityGlob="Microsoft.NETCore.App.Ref/7.0.2" />
</IgnorePatterns>
</UsageData>

Просмотреть файл

@ -27,6 +27,7 @@
<DefaultNetFxTargetFramework>net472</DefaultNetFxTargetFramework>
<DefaultNetCoreTargetFramework>net8.0</DefaultNetCoreTargetFramework>
<DefaultNetCoreTargetFrameworks>$(DefaultNetCoreTargetFramework);net7.0</DefaultNetCoreTargetFrameworks>
<DefaultNetCoreTargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">$(DefaultNetCoreTargetFramework)</DefaultNetCoreTargetFrameworks>
<DefaultNetCoreWindowsTargetFrameworks>net8.0-windows;net7.0-windows</DefaultNetCoreWindowsTargetFrameworks>
</PropertyGroup>
<!--