Add REFUEL_TARGET_FRAMEWORKS to the CSPROJ

This commit is contained in:
2026-11-01 14:31:11 +03:00
parent 3087ea546d
commit d124ec826e
+13 -1
View File
@@ -1,10 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Version>0.0.1</Version> <Version>0.0.1</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<!--
This section allows the target frameworks to be specified at build time using the environment variable
REFUEL_TARGET_FRAMEWORKS, which is defined by the NUGET compiling docker image.
-->
<PropertyGroup Condition="$(REFUEL_TARGET_FRAMEWORKS) == ''">
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(REFUEL_TARGET_FRAMEWORKS) != ''">
<TargetFrameworks>$(REFUEL_GLTF_TARGET_FRAMEWORKS)</TargetFrameworks>
</PropertyGroup>
</Project> </Project>