Support5.8 (#12)

* Change TargetFramework to net8.0 with inheritance

Updated TargetFramework to inherit from UnrealEngine.csproj.props with a fallback for engines that don't define it.

Also removed the explicit Microsoft.CSharp PackageReference: newer frameworks include it by default and the explicit reference triggers NU1510, which TreatWarningsAsErrors turns into an error.

* net10.0

---------

Co-authored-by: kane <202593226@qq.com>
5.8
crazytuzi 2 weeks ago committed by GitHub
parent 0f2fd1382f
commit 0c19c5e97e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      SourceCodeGenerator.ubtplugin.csproj

@ -2,7 +2,7 @@
<Import Project="SourceCodeGenerator.ubtplugin.csproj.props" Condition="Exists('SourceCodeGenerator.ubtplugin.csproj.props')" />
<Import Project="$(EngineDir)\Source\Programs\Shared\UnrealEngine.csproj.props" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Development</Configuration>
<OutputType>Library</OutputType>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
@ -29,9 +29,6 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="EpicGames.Build">
<HintPath>$(EngineDir)\Binaries\DotNET\UnrealBuildTool\EpicGames.Build.dll</HintPath>

Loading…
Cancel
Save