upgrade to .net7-rc

This commit is contained in:
nilaoda
2022-09-28 20:49:02 +08:00
parent a0102f3445
commit 66ea19d4a4
2 changed files with 23 additions and 26 deletions

View File

@@ -1,30 +1,27 @@
<Project>
<PropertyGroup>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
<IlcTrimMetadata>false</IlcTrimMetadata>
<StaticallyLinked Condition="$(RuntimeIdentifier.StartsWith('win'))">true</StaticallyLinked>
<TrimMode>Link</TrimMode>
<TrimmerDefaultAction>link</TrimmerDefaultAction>
<NativeAotCompilerVersion>7.0.0-*</NativeAotCompilerVersion>
</PropertyGroup>
<PropertyGroup>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
<IlcTrimMetadata>false</IlcTrimMetadata>
<StaticallyLinked Condition="$(RuntimeIdentifier.StartsWith('win'))">true</StaticallyLinked>
<TrimMode>Link</TrimMode>
<TrimmerDefaultAction>link</TrimmerDefaultAction>
<PublishAot>true</PublishAot>
<ObjCopyName Condition="'$(RuntimeIdentifier)' == 'linux-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
</PropertyGroup>
<ItemGroup Condition="'$(PublishAot)' == 'true' and '$(RuntimeIdentifier)' != 'win-arm64'">
<PackageReference Include="PublishAotCompressed" Version="0.0.3" />
</ItemGroup>
<ItemGroup>
<!-- Do not generate partial metadata for types - always include all members even if they're unused -->
<IlcArg Include="--completetypemetadata" />
<!-- Generate extra data to make stack traces nicer -->
<IlcArg Include="--stacktracedata" />
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
<!-- Cross-compilation for Windows x64-arm64 and Linux x64-arm64 -->
<PackageReference Condition="'$(RuntimeIdentifier)'=='win-arm64'" Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
<PackageReference Condition="'$(RuntimeIdentifier)'=='linux-arm64'" Include="runtime.linux-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
</ItemGroup>
<ItemGroup>
<!-- Do not generate partial metadata for types - always include all members even if they're unused -->
<IlcArg Include="--completetypemetadata" />
<!-- Generate extra data to make stack traces nicer -->
<IlcArg Include="--stacktracedata" />
<IlcArg Include="--reflectedonly" />
<RdXmlFile Include="rd.xml" />
</ItemGroup>
<RdXmlFile Include="rd.xml" />
</ItemGroup>
</Project>

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>