1 Star 0 Fork 1

qinpeng_it/OpenXml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Directory.Build.targets 4.42 KB
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!--
Since this project supports multiple configurations which don't all have the same surface area, the following define
constants are used to conditionally compile features:
FEATURE_ABSTRACT_XML_CLOSE : XmlWriter.Close is defined as abstract
FEATURE_ARRAY_EMPTY : Array.Empty exists
FEATURE_CLOSE : Stream.Close is available in the platform
FEATURE_PACKAGE_FLUSH : System.IO.Package.Flush will correctly flush all data
FEATURE_CONCURRENT_COLLECTIONS : Concurrent collections are not available
FEATURE_SERIALIZATION : Serialization using ISerializable is in the platform
FEAUTRE_SPAN : Span<> and friends are available
FEATURE_SCHEMA_GENERATOR : Provides access to helpers to generate schema information
FEATURE_SYSTEMEXCEPTION : SytemException is available in the platform
FEATURE_XML_DISPOSE_PROTECTED : XmlWriter.Dispose is protected
FEATURE_XML_PROHIBIT_DTD : XML settings only has ProhibitDtd property
FEATURE_XML_QUOTECHAR : XmlReader.QuoteChar is an abstract member
FEATURE_XML_SCHEMA : XML Schema is available in the platform
-->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net35' ">
<DefineConstants>$(DefineConstants);FEATURE_PACKAGE_FLUSH;FEATURE_XML_PROHIBIT_DTD</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net35' OR '$(TargetFramework)' == 'net40' OR '$(TargetFramework)' == 'net452' ">
<DefineConstants>$(DefineConstants);FEATURE_ABSTRACT_XML_CLOSE;FEATURE_CLOSE;FEATURE_PACKAGE_FLUSH;FEATURE_SERIALIZATION;FEATURE_SYSTEMEXCEPTION;FEATURE_XML_DISPOSE_PROTECTED;FEATURE_XML_QUOTECHAR;FEATURE_XML_SCHEMA</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' OR '$(TargetFramework)' == 'net452' ">
<DefineConstants>$(DefineConstants);FEATURE_CONCURRENT_COLLECTIONS;FEATURE_CANCELLATION_TOKEN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' OR '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net5.0' ">
<DefineConstants> $(DefineConstants);FEATURE_ARRAY_EMPTY;FEATURE_CONCURRENT_COLLECTIONS;FEATURE_CANCELLATION_TOKEN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'net5.0' ">
<DefineConstants>$(DefineConstants);FEATURE_ABSTRACT_XML_CLOSE;FEATURE_CLOSE;FEATURE_SCHEMA_GENERATOR;FEATURE_SERIALIZATION;FEATURE_SYSTEMEXCEPTION;FEATURE_XML_QUOTECHAR;FEATURE_XML_SCHEMA;FEATURE_CANCELLATION_TOKEN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net46' ">
<DefineConstants>$(DefineConstants);FEATURE_PACKAGE_FLUSH</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
<DefineConstants>$(DefineConstants);FEATURE_SPAN</DefineConstants>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<!-- To address CVE-2017-0249 that System.Net.Http has a vulnerability. This will only affect the tests and benchmarks as the
framework library doesn't require System.Net.Http. This is brought in by the .NET Core app framework -->
<PackageReference Include="System.Net.Http" Version="4.3.4" Condition="!$(IsShipped)" />
</ItemGroup>
<ItemGroup>
<PackageReference Condition=" '$(TargetFramework)' == 'net35' " Include="jnm2.ReferenceAssemblies.net35" Version="1.0.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<Import Project="$(MSBuildThisFileDirectory)\Tests.targets" />
<!-- The tool is used by default, but we don't want it to. It must be set in a target to ensure it is not overridden -->
<Target Name="BeforeResGen" Condition=" '$(TargetFramework)' == 'net35' ">
<PropertyGroup>
<ResGenExecuteAsTool>false</ResGenExecuteAsTool>
</PropertyGroup>
</Target>
</Project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qinpeng_it/open-xml.git
[email protected]:qinpeng_it/open-xml.git
qinpeng_it
open-xml
OpenXml
main

搜索帮助