-
Notifications
You must be signed in to change notification settings - Fork 91
/
Directory.Build.props
25 lines (22 loc) · 1.12 KB
/
Directory.Build.props
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
<Project>
<!-- Uncomment this to run .NET static code analyzers during rebuilds. -->
<!--<PropertyGroup>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
</PropertyGroup>-->
<ItemGroup>
<PackageReference Condition="!Exists($(LombiqAnalyzersPath))" Include="Lombiq.Analyzers.OrchardCore">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<!-- Copying the Orchard logo as an icon to all NuGet-published projects. -->
<Target Name="Copy NuGet icon"
AfterTargets="AfterResolveReferences"
Condition="'$(PackageIcon)' == 'OrchardCoreIcon.png' AND !Exists('$(ProjectDir)OrchardCoreIcon.png')">
<Copy SourceFiles="$(MSBuildThisFileDirectory)OrchardCoreIcon.png"
DestinationFiles="$(ProjectDir)OrchardCoreIcon.png"
SkipUnchangedFiles="true" />
</Target>
<!-- Inherit parent props file if one exists. -->
<Import Condition="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')) != ''"
Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
</Project>