C#: Fix building OpenVisualStudio executable

Since moving the TFM to .NET Core we need to add some configuration to cross-compile a Windows executable from Linux.
This commit is contained in:
Raul Santos 2024-02-18 05:33:00 +01:00
parent 8f0c20ee8d
commit dcb411daee
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4
1 changed files with 3 additions and 0 deletions

View File

@ -5,10 +5,13 @@
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<LangVersion>10</LangVersion> <LangVersion>10</LangVersion>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>False</SelfContained>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="Exists('$(SolutionDir)/../../../../bin/GodotSharp/Api/Debug/GodotSharp.dll') And ('$(GodotPlatform)' == 'windows' Or ('$(GodotPlatform)' == '' And '$(OS)' == 'Windows_NT'))"> <PropertyGroup Condition="Exists('$(SolutionDir)/../../../../bin/GodotSharp/Api/Debug/GodotSharp.dll') And ('$(GodotPlatform)' == 'windows' Or ('$(GodotPlatform)' == '' And '$(OS)' == 'Windows_NT'))">
<OutputPath>$(SolutionDir)/../../../../bin/GodotSharp/Tools</OutputPath> <OutputPath>$(SolutionDir)/../../../../bin/GodotSharp/Tools</OutputPath>
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>False</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="EnvDTE" Version="17.8.37221" /> <PackageReference Include="EnvDTE" Version="17.8.37221" />