Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
qt-kaneko committed Jul 31, 2022
1 parent fd097ec commit 6e343d2
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions ReMOSD.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,30 @@
<!--Copyright 2022 Kaneko Qt-->

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>preview</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<!--https://github.com/dotnet/runtime/issues/64337 -->
<PublishAot Condition="!($([MSBuild]::IsOSPlatform('OSX')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64')">
true
</PublishAot>

<!--Reduce size of release build-->
<DebugType>none</DebugType>
<TrimmerDefaultAction>link</TrimmerDefaultAction>
</PropertyGroup>

<PropertyGroup>
<NoWarn>CA1416</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.2.10-beta">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<!--https://github.com/dotnet/runtime/issues/64337 -->
<PublishAot Condition="!($([MSBuild]::IsOSPlatform('OSX')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64')">true</PublishAot>

<!--Reduce size of release build-->
<DebugType>none</DebugType>
<TrimmerDefaultAction>link</TrimmerDefaultAction>
</PropertyGroup>

<PropertyGroup>
<NoWarn>CA1416</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.2.10-beta">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit 6e343d2

Please sign in to comment.