1 Star 0 Fork 2

叶落轻风雨/Vanara

forked from tonglei/Vanara 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Directory.Build.targets 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
dahall 提交于 2021-03-23 21:27 . Added comments
<Project>
<!-- Define Net5OrAbove variable -->
<PropertyGroup>
<Net5OrAbove>false</Net5OrAbove>
<Net5OrAbove Condition=" $(TargetFramework.StartsWith('net5')) Or $(TargetFramework.StartsWith('net6')) Or $(TargetFramework.StartsWith('net7')) ">true</Net5OrAbove>
</PropertyGroup>
<!-- Explicit FrameworkReference in .NET 5 or above -->
<PropertyGroup Condition=" $(Net5OrAbove) ">
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<ImportWindowsDesktopTargets>false</ImportWindowsDesktopTargets>
<UseWindowsForms>false</UseWindowsForms>
<UseWPF>false</UseWPF>
</PropertyGroup>
<!-- Explict framework reference for .NET 5 or above -->
<ItemGroup Condition=" $(Net5OrAbove) ">
<FrameworkReference Include="Microsoft.NETCore.App" PrivateAssets="all" />
<FrameworkReference Include="Microsoft.WindowsDesktop.App" PrivateAssets="all" />
</ItemGroup>
<!-- Add common settings for all projects -->
<PropertyGroup>
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);$(PlatformTarget)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" $(TargetFramework.StartsWith('netstandard')) Or $(TargetFramework.StartsWith('netcore')) Or '$(TargetFramework)' == 'net45' Or $(TargetFramework.StartsWith('net5')) ">
<DefineConstants>$(DefineConstants);ALLOWSPAN</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('net2')) Or $(TargetFramework.StartsWith('net3')) Or $(TargetFramework.StartsWith('net4')) ">
<Reference Include="System" />
</ItemGroup>
<!-- Establish exclude pattern for files starting with ~ -->
<ItemGroup>
<Compile Remove="**\~*.cs" />
<None Include="**\~*.cs" />
<SupportedPlatform Include="windows" />
</ItemGroup>
<ItemGroup>
<Compile Remove="**\~*.vb" />
<None Include="**\~*.vb" />
<SupportedPlatform Include="windows" />
</ItemGroup>
</Project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/lhInfo/Vanara.git
git@gitee.com:lhInfo/Vanara.git
lhInfo
Vanara
Vanara
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385