-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDirectory.Build.targets
33 lines (28 loc) · 1.35 KB
/
Directory.Build.targets
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
26
27
28
29
30
31
32
33
<Project InitialTargets="TraceDirectoryBuild">
<!-- Documentation -->
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
</PropertyGroup>
<!-- Disable nuget package generation in debug mode -->
<PropertyGroup>
<GeneratePackageOnBuild Condition ="'$(Configuration)' == 'Debug'">false</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Hide nuget package outputs from solution explorer -->
<ItemGroup>
<None Remove="nupkg\**" />
</ItemGroup>
<!--
To enable tracing, define TraceMSBuild like this:
dotnet build ... -p:TraceMSBuild=true
-->
<Target Name="TraceDirectoryBuild" Condition="'$(TraceMSBuild)' == 'true'">
<Message Importance="high" Text="Directory.Build.targets [$(MSBuildProjectFile)]" />
<Message Importance="high" Text="-----------------------" />
<Message Importance="high" Text="TargetFramework = $(TargetFramework)" />
<Message Importance="high" Text="PackageId = $(PackageId)" />
<Message Importance="high" Text="OutputPath = $(OutputPath)" />
<Message Importance="high" Text="PackageOutputPath = $(PackageOutputPath)" />
<Message Importance="high" Text="GeneratePackageOnBuild = $(GeneratePackageOnBuild)" />
<Message Importance="high" Text=" " />
</Target>
</Project>