|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
2 | 3 | <PropertyGroup> |
3 | 4 | <OutputType>WinExe</OutputType> |
4 | 5 | <RootNamespace>WebSearchShortcut</RootNamespace> |
| 6 | + <DefaultLanguage>en-US</DefaultLanguage> |
5 | 7 | <ApplicationManifest>app.manifest</ApplicationManifest> |
| 8 | + </PropertyGroup> |
6 | 9 |
|
7 | | - <WindowsSdkPackageVersion>10.0.26100.68-preview</WindowsSdkPackageVersion> |
| 10 | + <PropertyGroup> |
8 | 11 | <TargetFramework>net9.0-windows10.0.26100.0</TargetFramework> |
9 | 12 | <TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion> |
10 | 13 | <SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion> |
11 | | - <RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers> |
| 14 | + <WindowsSdkPackageVersion>10.0.26100.68-preview</WindowsSdkPackageVersion> |
| 15 | + </PropertyGroup> |
12 | 16 |
|
| 17 | + <PropertyGroup> |
13 | 18 | <Platforms>x64;ARM64</Platforms> |
| 19 | + <RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers> |
14 | 20 | <PublishProfile>win-$(Platform).pubxml</PublishProfile> |
| 21 | + </PropertyGroup> |
| 22 | + |
| 23 | + <PropertyGroup> |
| 24 | + <Nullable>enable</Nullable> |
15 | 25 | <UseWinUI>false</UseWinUI> |
16 | 26 | <EnableMsixTooling>true</EnableMsixTooling> |
17 | | - <Nullable>enable</Nullable> |
18 | | - |
| 27 | + <GenerateAppxPackageOnBuild>true</GenerateAppxPackageOnBuild> |
19 | 28 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
20 | 29 | <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> |
21 | | - |
22 | | - <GenerateAppxPackageOnBuild>true</GenerateAppxPackageOnBuild> |
23 | | - |
24 | | - <DefaultLanguage>en-US</DefaultLanguage> |
25 | 30 | </PropertyGroup> |
26 | 31 |
|
27 | | - <ItemGroup> |
28 | | - <Content Include="Assets\SplashScreen.scale-200.png" /> |
29 | | - <Content Include="Assets\LockScreenLogo.scale-200.png" /> |
30 | | - <Content Include="Assets\Square150x150Logo.scale-200.png" /> |
31 | | - <Content Include="Assets\Square44x44Logo.scale-200.png" /> |
32 | | - <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> |
33 | | - <Content Include="Assets\StoreLogo.png" /> |
34 | | - <Content Include="Assets\Wide310x150Logo.scale-200.png" /> |
35 | | - </ItemGroup> |
| 32 | + <PropertyGroup> |
| 33 | + <IsAotCompatible>true</IsAotCompatible> |
| 34 | + <CsWinRTAotOptimizerEnabled>true</CsWinRTAotOptimizerEnabled> |
| 35 | + <CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel> |
| 36 | + <WarningsNotAsErrors>IL2081;IL2104;IL2026;IL3050</WarningsNotAsErrors> |
| 37 | + </PropertyGroup> |
36 | 38 |
|
37 | | - <ItemGroup> |
38 | | - <Manifest Include="$(ApplicationManifest)" /> |
39 | | - </ItemGroup> |
| 39 | + <!-- |
| 40 | + Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution |
| 41 | + Explorer "Package and Publish" context menu entry to be enabled for this project even if |
| 42 | + the Windows App SDK Nuget package has not yet been restored. |
| 43 | + --> |
| 44 | + <PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> |
| 45 | + <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> |
| 46 | + </PropertyGroup> |
40 | 47 |
|
41 | 48 | <!-- |
42 | 49 | Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging |
|
46 | 53 | <ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> |
47 | 54 | <ProjectCapability Include="Msix" /> |
48 | 55 | </ItemGroup> |
| 56 | + |
49 | 57 | <ItemGroup> |
50 | 58 | <PackageReference Include="Microsoft.CommandPalette.Extensions" /> |
51 | 59 | <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" /> |
| 60 | + <PackageReference Include="Microsoft.Web.WebView2" /> |
52 | 61 | <PackageReference Include="Microsoft.Windows.CsWinRT" /> |
53 | 62 | <PackageReference Include="Microsoft.WindowsAppSDK" /> |
54 | | - <PackageReference Include="Microsoft.Web.WebView2" /> |
55 | | - <PackageReference Include="System.Text.Json" /> |
56 | 63 | <PackageReference Include="Shmuelie.WinRTServer" /> |
| 64 | + <PackageReference Include="System.Text.Json" /> |
| 65 | + </ItemGroup> |
| 66 | + |
| 67 | + <ItemGroup> |
| 68 | + <Manifest Include="$(ApplicationManifest)" /> |
| 69 | + <Content Include="Assets\LockScreenLogo.scale-200.png" /> |
| 70 | + <Content Include="Assets\SplashScreen.scale-200.png" /> |
| 71 | + <Content Include="Assets\Square150x150Logo.scale-200.png" /> |
| 72 | + <Content Include="Assets\Square44x44Logo.scale-200.png" /> |
| 73 | + <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> |
| 74 | + <Content Include="Assets\StoreLogo.png" /> |
| 75 | + <Content Include="Assets\Wide310x150Logo.scale-200.png" /> |
57 | 76 | </ItemGroup> |
| 77 | + |
58 | 78 | <ItemGroup> |
59 | 79 | <Compile Update="Properties\Resources.Designer.cs"> |
60 | 80 | <DesignTime>True</DesignTime> |
61 | 81 | <AutoGen>True</AutoGen> |
62 | 82 | <DependentUpon>Resources.resx</DependentUpon> |
63 | 83 | </Compile> |
64 | | - </ItemGroup> |
65 | | - <ItemGroup> |
66 | 84 | <EmbeddedResource Update="Properties\Resources.resx"> |
67 | 85 | <Generator>ResXFileCodeGenerator</Generator> |
68 | 86 | <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
69 | 87 | </EmbeddedResource> |
70 | 88 | </ItemGroup> |
71 | 89 |
|
72 | | - <!-- |
73 | | - Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution |
74 | | - Explorer "Package and Publish" context menu entry to be enabled for this project even if |
75 | | - the Windows App SDK Nuget package has not yet been restored. |
76 | | - --> |
77 | | - <PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'"> |
78 | | - <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> |
79 | | - </PropertyGroup> |
80 | | - |
81 | | - <PropertyGroup> |
82 | | - <IsAotCompatible>true</IsAotCompatible> |
83 | | - <CsWinRTAotOptimizerEnabled>true</CsWinRTAotOptimizerEnabled> |
84 | | - <CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel> |
85 | | - <WarningsNotAsErrors>IL2081;IL2104;IL2026;IL3050</WarningsNotAsErrors> |
86 | | - </PropertyGroup> |
87 | 90 | </Project> |
0 commit comments