mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
- 添加 Directory.Build.props 统一构建属性配置 - 配置 netstandard2.0 和 netstandard2.1 目标框架 - 集成 Meziantou.Polyfill 提供新特性支持 - 设置 Nullable 启用可空类型检查 - 配置文档文件生成和包标识设置 - 添加 Microsoft.CodeAnalysis 相关包引用 - 配置项目引用和命名空间引入规则
19 lines
857 B
XML
19 lines
857 B
XML
<Project>
|
|
<!-- import parent: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build -->
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<!--
|
|
we use a higher version than supported by the target framework to have nullable types and other nice features
|
|
(a lot of features get polyfilled by Meziantou.Polyfill)
|
|
however we need to be careful with the available features!
|
|
-->
|
|
<LangVersion>preview</LangVersion>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Meziantou.Polyfill"/>
|
|
</ItemGroup>
|
|
<Import Project="..\Directory.Build.props" Condition="Exists('..\Directory.Build.props')"/>
|
|
</Project>
|