XafPet.Desktop.csproj 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>WinExe</OutputType>
  4. <TargetFramework>net6.0-windows</TargetFramework>
  5. <LangVersion>11</LangVersion>
  6. <Nullable>enable</Nullable>
  7. <UseWPF>true</UseWPF>
  8. <ImplicitUsings>enable</ImplicitUsings>
  9. <AssemblyName>XafPet.Desktop</AssemblyName>
  10. <RootNamespace>XafPet.Desktop</RootNamespace>
  11. </PropertyGroup>
  12. <ItemGroup>
  13. <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2210.55" />
  14. </ItemGroup>
  15. <ItemGroup>
  16. <FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" />
  17. </ItemGroup>
  18. <ItemGroup>
  19. <None Include="Assets\**" CopyToOutputDirectory="PreserveNewest" />
  20. <None Include="DefaultPets\**" CopyToOutputDirectory="PreserveNewest" />
  21. </ItemGroup>
  22. <!-- 发布配置(单文件 exe,Self-Contained) -->
  23. <PropertyGroup>
  24. <PublishSingleFile>true</PublishSingleFile>
  25. <SelfContained>true</SelfContained>
  26. <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  27. <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
  28. </PropertyGroup>
  29. </Project>