init
This commit is contained in:
58
WinUI.csproj
Normal file
58
WinUI.csproj
Normal file
@@ -0,0 +1,58 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net10.0-windows10.0.26100.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||
<Platforms>x64</Platforms>
|
||||
<RootNamespace>MyApp</RootNamespace>
|
||||
<UseWinUI>true</UseWinUI>
|
||||
<EnableMsixTooling>true</EnableMsixTooling>
|
||||
<!-- 程序定义 -->
|
||||
<AssemblyName>MyWinUIApp</AssemblyName>
|
||||
<Version>0.0.1-alpha</Version>
|
||||
<ApplicationIcon>Assets\icons\app.ico</ApplicationIcon>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<SatelliteResourceLanguages>zh,en</SatelliteResourceLanguages>
|
||||
<!-- 其他 -->
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<IsPackable>false</IsPackable>
|
||||
<ImplicitUsings>false</ImplicitUsings>
|
||||
<RunAnalyzersDuringBuild>False</RunAnalyzersDuringBuild>
|
||||
</PropertyGroup>
|
||||
<!-- 发布Release配置 -->
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<WindowsPackageType>None</WindowsPackageType>
|
||||
<SupportedOSPlatformVersion>$(TargetPlatformMinVersion)</SupportedOSPlatformVersion>
|
||||
<DebugType>none</DebugType>
|
||||
<PublishAot>true</PublishAot>
|
||||
<PublishDir>publish\$(AssemblyName)-x64-v$(Version)</PublishDir>
|
||||
<!-- <SelfContained>true</SelfContained> -->
|
||||
<!-- <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> -->
|
||||
<!-- <PublishTrimmed>true</PublishTrimmed> -->
|
||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||
<!-- <PublishReadyToRun>true</PublishReadyToRun> -->
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- 包依赖项 -->
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="*" />
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="*" />
|
||||
<PackageReference Include="WinUIEx" Version="*" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- 项目资源同步 -->
|
||||
<Content Include="Assets\**\*.*" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- 项目文件夹移除 -->
|
||||
<None Remove="publish\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- 项目文件夹添加 -->
|
||||
<Folder Include="Pages\" />
|
||||
<Folder Include="Services\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="Utils\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user