forked from ionide/proj-info
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
26 lines (19 loc) · 926 Bytes
/
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
<Project ToolsVersion="15.0">
<Import Project="src\Directory.Build.props" />
<Target Name="Build">
<Exec Command='dotnet build src/dotnet-proj-info' />
</Target>
<Target Name="Restore">
<Exec Command="$(MonoOrEmpty)paket.bootstrapper.exe" WorkingDirectory=".paket" ConsoleToMSBuild="true" />
<Exec Command="$(MonoOrEmpty)paket.exe restore" WorkingDirectory=".paket" ConsoleToMSBuild="true" />
</Target>
<Target Name="Pack">
<RemoveDir Directories="$(NupkgsDir)" />
<Exec Command='dotnet pack src/dotnet-proj-info -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
<Exec Command='dotnet pack src/Dotnet.ProjInfo -c Release -o "$(NupkgsDir)" /p:Version=$(Version)' />
</Target>
<Target Name="Test">
<Exec Command='dotnet test -v n' WorkingDirectory="test" IgnoreStandardErrorWarningFormat="true" />
</Target>
<Target Name="VSTest" DependsOnTargets="Test" />
</Project>