-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
28 lines (25 loc) · 1.14 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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Sdk.targets" Sdk="DotNetDev.ArcadeLight.Sdk" />
<Target Name="VSTestIfTestProject">
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />
</Target>
<Target Name="DeleteCleanCacheFile" BeforeTargets="CoreBuild">
<ItemGroup>
<CacheFile Include="$(IntermediateOutputPath)\$(MSBuildProjectFile).FileListAbsolute.txt" />
</ItemGroup>
<Delete
Condition="Exists('@(CacheFile)')"
Files="@(CacheFile)"
TreatErrorsAsWarnings="true">
<Output TaskParameter="DeletedFiles" ItemName="_CleanOrphanFilesDeleted"/>
</Delete>
<Message Importance="high" Text="Previousbuildcachefiledeleted : '@(CacheFile)'" />
</Target>
<Target Name = "XMLDocMessage" AfterTargets="BeforeBuild" >
<PropertyGroup>
<DocumentationFile Condition=" '$(GenerateDocumentationFile)' == 'true' and '$(DocumentationFile)' == '' ">$(OutputPath)/$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>
<Message Text="XML DocFile: $(DocumentationFile)"/>
</Target>
</Project>