msbuild/Directory.Build.targets

52 строки
2.3 KiB
XML

<Project>
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
<ThirdPartyNotice Condition=" '$(ThirdPartyNotice)' == '' ">$(RepoRoot)THIRDPARTYNOTICES.txt</ThirdPartyNotice>
<AssemblyTitle>$(TargetFileName)</AssemblyTitle>
<Description Condition="'$(Description)' == ''">$(TargetFileName)</Description>
</PropertyGroup>
<ItemGroup Condition=" '$(IsPackable)' == 'true' ">
<None Include="$(ThirdPartyNotice)" Pack="true" PackagePath="notices" Visible="false" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<!-- Global Analyzer Config -->
<ItemGroup Condition="'$(ProjectIsDeprecated)' != 'true'">
<!-- Include Common.globalconfig for non-deprecated projects-->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)eng/Common.globalconfig" />
</ItemGroup>
<!-- Test Project Global Analyzer Config -->
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<!-- Include Common.Test.globalconfig for Test projects-->
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)eng/Common.Test.globalconfig" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Target Name="DeleteDevPackage" AfterTargets="GenerateNuspec">
<!-- If package just built was already in global packages folder, delete it. This helps support a local dev cycle where you are consuming
a package from another repo without having to update the package version each time. -->
<PropertyGroup>
<_PackageFolderInGlobalPackages>$(NuGetPackageRoot)$(PackageId.ToLowerInvariant())\$(PackageVersion)</_PackageFolderInGlobalPackages>
</PropertyGroup>
<RemoveDir Directories="$(_PackageFolderInGlobalPackages)"
Condition="Exists('$(_PackageFolderInGlobalPackages)')" />
</Target>
<!-- Make APICompat use roslyn from the toolset SDK instead of from the toolset package. This avoids unification issues on desktop msbuild.
TODO: Remove when Visual Studio with an 8.0.200 or 9.0 SDK is consumed. -->
<Target Name="FixAPICompatWorkAroundRoslynMove"
AfterTargets="CollectApiCompatInputs"
Condition="'$(MSBuildRuntimeType)' != 'Core'">
<PropertyGroup>
<RoslynAssembliesPath>$(RoslynTargetsPath)</RoslynAssembliesPath>
</PropertyGroup>
</Target>
</Project>