Repository navigation
Expand file tree
/
Copy pathReframe.csproj
More file actions
60 lines (54 loc) · 2.82 KB
/
Copy pathReframe.csproj
File metadata and controls
60 lines (54 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>Reframe</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x64</Platforms>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<!-- 非打包(unpackaged):可加 requireAdministrator manifest、单 exe 直接跑 -->
<WindowsPackageType>None</WindowsPackageType>
<EnableMsixTooling>true</EnableMsixTooling>
<AssemblyName>Reframe</AssemblyName>
<!-- 版本(publish.ps1 从 <Version> 读取并写入 zip 名) -->
<Version>1.4.0</Version>
<FileVersion>1.4.0.0</FileVersion>
<InformationalVersion>1.4.0</InformationalVersion>
<!-- 窗口/任务栏/exe 图标(unpackaged:同时复制到输出供运行时 SetIcon/托盘加载) -->
<ApplicationIcon>Assets\reframe.ico</ApplicationIcon>
</PropertyGroup>
<!-- 测试是独立工程(Tests\Reframe.Core.Tests.csproj),不能被主 App 的隐式 glob 吸进来编译 -->
<ItemGroup>
<Compile Remove="Tests\**" />
<Page Remove="Tests\**" />
<None Remove="Tests\**" />
<!-- tools\IconGen 是一次性图标生成工具(独立 exe),不参与主 App 编译 -->
<Compile Remove="tools\**" />
<Page Remove="tools\**" />
<None Remove="tools\**" />
</ItemGroup>
<!-- 资源随输出复制:unpackaged 运行时需从输出目录 Assets\reframe.ico 加载窗口/托盘图标 -->
<ItemGroup>
<Content Include="Assets\reframe.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!--
本地化资源:Strings\<语言>\*.resw → MRT Core 编译进 resources.pri(随 UseWinUI 的 MakePri 自动执行,
并复制到 exe 同目录;unpackaged 下运行时由 MRT Core 自动定位解析)。
.NET SDK 的 EnableDefaultPriItems 默认就把 **\*.resw 收进 PRIResource(此处显式声明会触发 NETSDK1022 重复项),
故不需要任何额外 ItemGroup —— 约定优于配置:把 resw 放进 Strings\<BCP-47>\ 即被自动收录。
每种语言一个子目录(zh-CN / en-US),目录名即 BCP-47 标签;按页分文件(MainWindow/SettingsPage/Common)。
取串:XAML 用 x:Uid="/文件名/键名",代码用 Services\Loc.cs(ResourceLoader 包装)。详见 docs\dev\I18N.md。
-->
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.250916003" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.4948" />
<PackageReference Include="H.NotifyIcon.WinUI" Version="2.3.0" />
</ItemGroup>
</Project>