Project: include Windows TFM by default unless SkipWindowsTargetFramework=true; fix AppHost ProjectReference path
All checks were successful
Build / build (pull_request) Successful in 2m2s

This commit is contained in:
Tim Krampitz
2026-10-04 18:09:16 +02:00
parent fd0d7f9971
commit d175ef8a6c
2 changed files with 4 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SlipItIN\SlipItIn.csproj">
<ProjectReference Include="..\SlipItIn\SlipItIn.csproj">
<SetTargetFramework>TargetFramework=net10.0-windows10.0.19041.0</SetTargetFramework>
</ProjectReference>
<ProjectReference Include="..\SlipItIn.Server\SlipItIn.Server.csproj" />

View File

@@ -3,8 +3,9 @@
<PropertyGroup>
<TargetFrameworks>net10.0-android</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);</TargetFrameworks>
<!-- Windows target framework can be skipped by setting SkipWindowsTargetFramework=true during restore/build (useful for CI or tooling without Windows runtime packs) -->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(SkipWindowsTargetFramework)' != 'true'">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
<!-- Windows target framework can be skipped by setting SkipWindowsTargetFramework=true during restore/build (useful for CI or tooling without Windows runtime packs).
Include the Windows TFM by default so restores which evaluate OS differently still generate assets for the Windows TFM unless explicitly skipped. -->
<TargetFrameworks Condition="'$(SkipWindowsTargetFramework)' != 'true'">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
<LangVersion>preview</LangVersion>
<!-- Note for MacCatalyst: