-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
61 lines (50 loc) · 2.86 KB
/
Copy pathDirectory.Build.props
File metadata and controls
61 lines (50 loc) · 2.86 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
61
<Project>
<Import Project="Build\Version.props" />
<PropertyGroup>
<UseArtifactsOutput Condition="'$(UseArtifactsOutput)' == ''">true</UseArtifactsOutput>
<ArtifactsPath Condition="'$(ArtifactsPath)' == ''">$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
<!-- 语言属性 -->
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<!-- 忽略异常: -->
<!--
- NU1903: 具有已知的 高 严重性漏洞
- NU1803: 使用 HTTP 的源
- NU1603: 忽略找不到匹配版本。因为使用了内部的 Avalonia 版本,不在这里警告
- CS0162: 未使用的代码,不可达代码警告。有些代码就是特意写不可达的,只是用来作为设计说明
- NETSDK1138: 目标框架已到达其生命周期终点,现在文本库项目依然保持低版本框架以支持更多项目
- NETSDK1057: 允许使用预览版 SDK 构建,不要警告
-->
<NoWarn>NU1903;NU1803;NU1603;CS0162;NETSDK1138;NETSDK1057</NoWarn>
<CodeRootPath>$(MSBuildThisFileDirectory)</CodeRootPath>
<AvaloniaVersion>11.2.0-hotfix02</AvaloniaVersion>
<Authors>林德熙</Authors>
<!-- 不要在 debug 开启 EmbedAllSources 或 EmbedUntrackedSources:
1. NuGet 包会提示包含未追踪的源,但实际列出的未追踪的源是空的(所以其实都已经追踪了?)
2. 如果采用此属性将源嵌入,会导致 JetBrians Rider 调试时使用嵌入的源而不是仓库中的源,这会导致无法使用断点等一系列依赖于 pdb 源的功能。-->
<EmbedAllSources Condition="'$(Configuration)' != 'Debug'">true</EmbedAllSources>
<!-- 输出符号文件 -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>富文本布局库,提供高控制的文本库</Description>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<ThisYear>$([System.DateTime]::Now.ToString(`yyyy`))</ThisYear>
<!-- 这个库是从 2023 开始的 -->
<Copyright>Copyright © 2023-$(ThisYear) dotnet campus All Rights Reserved.</Copyright>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\.editorconfig" Link=".editorconfig" Visible="false"/>
<SourceRoot Include="$(MSBuildThisFileDirectory)"/>
<PackageReference Include="dotnetCampus.LatestCSharpFeatures" Version="13.0.1" PrivateAssets="all" />
</ItemGroup>
<!-- 以下是打 NuGet 包相关辅助方法 -->
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<!-- 嵌入 README 文件 -->
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>
</Project>