Skip to content

Commit ee517a2

Browse files
authored
msbuild: allow the dotnet for macosx installs to target windows (#176)
This makes the build complete on a dotnet install for a mac so that it is easier to verify the build and setup. Signed-off-by: Charles Hardin <[email protected]>
1 parent 1332dc0 commit ee517a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EDSEditorGUI/EDSEditorGUI.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
44
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0-windows</TargetFrameworks>
55
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0-windows</TargetFrameworks>
6+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
67
<OutputType>WinExe</OutputType>
78
<RootNamespace>ODEditor</RootNamespace>
89
<AssemblyName>EDSEditor</AssemblyName>
@@ -104,6 +105,6 @@
104105
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
105106
</ItemGroup>
106107
<PropertyGroup>
107-
<PreBuildEvent>git describe --tags --long --dirty &gt; "$(MSBuildProjectDirectory)\version.txt" || exit 0</PreBuildEvent>
108+
<PreBuildEvent>git describe --tags --long --dirty &gt; "$(MSBuildProjectDirectory)$([System.IO.Path]::DirectorySeparatorChar)version.txt" || exit 0</PreBuildEvent>
108109
</PropertyGroup>
109110
</Project>

0 commit comments

Comments
 (0)