forked from microsoft/MSBuildSdks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
55 lines (47 loc) · 1.81 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec') ">
<NuspecFile>$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuspec</NuspecFile>
</PropertyGroup>
<ItemGroup Condition=" '$(IncludeBuildOutput)' == 'false' ">
<IntermediateAssembly Remove="@(IntermediateAssembly)" />
<IntermediateRefAssembly Remove="@(IntermediateRefAssembly)" />
</ItemGroup>
<PropertyGroup>
<!-- Full symbols so that unit test assertions have more info -->
<DebugType Condition=" '$(Configuration)' == 'Debug' ">Full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(IncludeBuildOutput)' == 'false' ">
<!--
This property must be overridden to remove a few targets that compile assemblies
-->
<CoreBuildDependsOn>
BuildOnlySettings;
PrepareForBuild;
PreBuildEvent;
ResolveProjectReferences;
GetTargetPath;
PrepareForRun;
IncrementalClean;
PostBuildEvent
</CoreBuildDependsOn>
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuSpecProperties</GenerateNuspecDependsOn>
</PropertyGroup>
<Target Name="SetNuSpecProperties" Condition=" Exists('$(NuspecFile)') ">
<PropertyGroup>
<NuspecProperties>
id=$(PackageId);
description=$(PackageDescription);
version=$(PackageVersion);
authors=$(Authors);
copyright=$(Copyright);
projecturl=$(PackageProjectUrl);
licenseurl=$(PackageLicenseUrl);
iconurl=$(PackageIconUrl);
tags=$(PackageTags);
packagetype=MSBuildSdk
</NuspecProperties>
</PropertyGroup>
</Target>
<Import Project="Sdk.targets" Sdk="Microsoft.Build.CentralPackageVersions" />
</Project>