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>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>False</SelfContained>
</PropertyGroup>
<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>
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>False</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EnvDTE" Version="17.8.37221" />