Windows App SDK 1.6.0-experimental1 ๋ฆด๋ฆฌ์Šค

์ด๋ฒˆ ๋ฒ„์ „์—์„œ ๊ฐ€์žฅ ํŠน์ดํ•œ ์‚ฌํ•ญ์€ ๋ฌด๋ ค Native AOT๋ฅผ ์ง€์›ํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋จผ์ € WinUI 3 ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“œ์‹œ๊ณ ,

ํ”„๋กœ์ ํŠธ ํŒŒ์ผ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net8.0-windows10.0.18362.0</TargetFramework>
    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    <WindowsSdkPackageVersion>10.0.18362.35-preview</WindowsSdkPackageVersion>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <Platforms>x64</Platforms>
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>
    <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
    <UseWinUI>true</UseWinUI>
    <EnableMsixTooling>true</EnableMsixTooling>
    <WindowsPackageType>None</WindowsPackageType>
    <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
    <PublishAot>true</PublishAot>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Bluehill.Imports" Version="1.0.4" />
    <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.0-prerelease.240602.1" />
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240531000-experimental1" />
    <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1" />
    <Manifest Include="$(ApplicationManifest)" />
  </ItemGroup>
</Project>

์ด์ œ publish ํ•˜๋ฉดโ€ฆ

dotnet publish -c Debug -p:Platform=x64

CsWinRT ํŒจํ‚ค์ง€ ๋•Œ๋ฌธ์ธ์ง€ ์›๋ž˜๋Š” ์•ˆ๋‚˜์™”๋˜ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค.

๋”ฐ๋ผ์„œ ํƒ€๊ฒŸํ•˜์‹œ๋Š” ์œˆ๋„์šฐ SDK๋ฅผ ์„ค์น˜ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.


๋‹ค์‹œ ํ•œ๋ฒˆ publishํ•ด ๋ณด๋ฉดโ€ฆ

์ด๋ ‡๊ฒŒ 9 MB์งœ๋ฆฌ ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

์‹คํ–‰๋„ ๋ฐ”๋กœ๋ฐ”๋กœ ์ •์ƒ์ ์œผ๋กœ ๋ฉ๋‹ˆ๋‹ค.

์•„์‰ฌ์šด ์ ์€ WindowsAppSDKSelfContained์˜ dll๋“ค์€ ํฌํ•จ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

2 Likes