-
Notifications
You must be signed in to change notification settings - Fork 4
/
DotLang.proj
41 lines (34 loc) · 1.47 KB
/
DotLang.proj
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
<Project Sdk="Microsoft.Build.Traversal;Xamarin.MSBuild.Sdk">
<Import Project="src\Directory.Build.props"/>
<PropertyGroup>
<GenerateSolutionAfterBuild>true</GenerateSolutionAfterBuild>
</PropertyGroup>
<ItemGroup>
<SolutionConfiguration Include="Debug"/>
<SolutionConfiguration Include="Release"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="src\DotLang\DotLang.csproj"/>
<ProjectReference Include="src\DotLang.Console\DotLang.Console.csproj"/>
<ProjectReference Include="src\DotLang.Tests\DotLang.Tests.csproj"/>
</ItemGroup>
<Target Name="UpdateDocs">
<PropertyGroup>
<DocfxJson>$([MSBuild]::NormalizePath('docfx\docfx.json'))</DocfxJson>
</PropertyGroup>
<RemoveDir Directories="docs"/>
<Exec Command="docfx "$(DocfxJson)""/>
<Exec Command="docfx build -s "$(DocfxJson)""/>
</Target>
<Target Name="ShowVersion" AfterTargets="Build;Pack" DependsOnTargets="SetVersions">
<Message Text="Project: $(MSBuildProjectFullPath)" Importance="high"/>
<Message Text="Version: $(Version)" Importance="high"/>
<Message Text="PackageVersion: $(PackageVersion)" Importance="high"/>
</Target>
<Target Name="DeepClean" AfterTargets="Clean">
<RemoveDir Directories="_artifacts;obj"/>
<RemoveDir Directories="@(ProjectReference -> '%(RelativeDir)\obj')"/>
<RemoveDir Directories="@(ProjectReference -> '%(RelativeDir)\bin')"/>
</Target>
<Import Project="src\Version.targets"/>
</Project>