-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abaranch
committed
Oct 28, 2015
1 parent
bdf20d3
commit 095d01b
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project=".\GlobalStaticVersion.props" /> | ||
<PropertyGroup> | ||
<PreReleaseVersion>$([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalMinutes), 5).ToString('F0'))</PreReleaseVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Solution Include="Microsoft.ApplicationInsights.Channels.sln" /> | ||
<Solution Include="Microsoft.ApplicationInsights.sln" /> | ||
</ItemGroup> | ||
<Target Name="Build"> | ||
<!-- Generate build version --> | ||
<WriteLinesToFile File="$(PreReleaseVersionFileName)" Lines="$(PreReleaseVersion)" Overwrite="true" Encoding="Unicode"/> | ||
|
||
<Exec Command='IF EXIST "%(Solution.FullPath)" nuget.exe restore "%(Solution.FullPath)" -NonInteractive' | ||
ContinueOnError="ErrorAndStop"/> | ||
|
||
<MSBuild Projects="@(Solution)" ContinueOnError="ErrorAndStop"/> | ||
</Target> | ||
</Project> |