forked from dotnet/corefxlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotnet.targets
15 lines (12 loc) · 908 Bytes
/
dotnet.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Build">
<!-- This was the only place I could find where this was guaranteed to be executed. The other targets I tried work in some cases (build.cmd) but not others (msbuild). I went with this simple approach for now. -->
<Exec Command="$(DotnetExe) pack "$(ProjectJson)" -o "$(ProjectDir)nuget" -c Release --version-suffix $([System.DateTime]::Now.ToString("eyyMMdd-1"))" />
</Target>
<Target Name="BuildAndTest" DependsOnTargets="Build;Test" />
<Target Name="ResolveNuGetPackages"
Condition="'$(PrereleaseResolveNuGetPackages)'=='true'">
</Target>
<Import Project="$(MSBuildThisFileDirectory)dotnet-test.targets" Condition="'$(IsTestProject)'=='true' and '$(ExcludeTestsImport)'!='true'" />
</Project>