forked from kzu/corebuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.proj
43 lines (35 loc) · 1.71 KB
/
build.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
42
43
<!--
This is a sample default build script that showcases the capabilities
of corebuild. Feel free to remove all comments and sample elements.
-->
<Project Sdk="CoreBuild/1.0.0-alpha" TreatAsLocalProperty="Configuration" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Properties and Targets documentation can be rendered by running the
Help target provided by the CoreBuild.Help package, which is referenced
automatically
-->
<PropertyGroup>
<!-- Configuration to use for Build. Defaults to Debug if empty. -->
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
</PropertyGroup>
<ItemGroup>
<!-- MSBuild /t:Restore will restore these packages -->
<PackageReference Include="MSBuilder.DumpItems" Version="0.2.1" />
<PackageReference Include="xunit.runner.msbuild" Version="2.2.0" />
</ItemGroup>
<!-- Targets can be documented, and /t:Help will render the help -->
<Target Name="Build">
<!-- Once the Restore is done we can use a custom task from the NuGet package -->
<DumpItems Items="@(PackageReference)" ItemName="PackageReference" />
</Target>
<!-- Configures the project in preparation for Build. Includes running Restore. -->
<Target Name="Configure" DependsOnTargets="Restore">
<!-- Configures the colored console logger that renders /t:Help in a nicer way -->
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="ColoredConsole" Properties="FORCE_RELOAD=$([System.Guid]::NewGuid().ToString())" />
</Target>
<Target Name="Clean" />
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<Target Name="Test">
<xunit Assemblies="@(TestAssembly)" />
</Target>
<Target Name="Run" />
</Project>