Port to linux

This commit is contained in:
AtelierWindows 2021-01-28 22:33:51 +13:00
parent 0809cbf009
commit 79b6d86a0f
7 changed files with 79 additions and 38 deletions

View file

@ -1,11 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>HISP</RootNamespace>
<LangVersion>7.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
<LangVersion>8.0</LangVersion>
<Platforms>x64;x86;ARM;AnyCPU</Platforms>
<Configurations>Windows;Debug;Linux</Configurations>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
@ -29,11 +28,46 @@
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>copy "$(SolutionDir)..\DataCollection\GameData.json" "$(TargetDir)gamedata.json" /Y
copy "$(SolutionDir)..\DataCollection\HI1.MAP" "$(TargetDir)HI1.MAP" /Y</PostBuildEvent>
<PostBuildEvent Condition="'$(OS)' == 'Windows_NT'">
copy "$(SolutionDir)..\DataCollection\GameData.json" "$(TargetDir)gamedata.json" /Y
copy "$(SolutionDir)..\DataCollection\HI1.MAP" "$(TargetDir)HI1.MAP" /Y
</PostBuildEvent>
<PostBuildEvent Condition="'$(OS)' != 'Windows_NT'">
cp -f "$(SolutionDir)..\DataCollection\GameData.json" "$(TargetDir)gamedata.json"
cp -f "$(SolutionDir)..\DataCollection\HI1.MAP" "$(TargetDir)HI1.MAP"
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWin32Manifest>true</NoWin32Manifest>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows|x86'">
<ApplicationIcon>icon.ico</ApplicationIcon>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<Optimize>true</Optimize>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Windows|x64'">
<ApplicationIcon>icon.ico</ApplicationIcon>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Optimize>true</Optimize>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Linux|x64'">
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<Optimize>true</Optimize>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Linux|ARM'">
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
<Optimize>true</Optimize>
<PlatformTarget>ARM</PlatformTarget>
<WarningLevel>1</WarningLevel>
</PropertyGroup>
</Project>