Skip to content

Commit

Permalink
Add dirs.proj
Browse files Browse the repository at this point in the history
  • Loading branch information
abaranch committed Oct 28, 2015
1 parent bdf20d3 commit 095d01b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dirs.proj
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>

0 comments on commit 095d01b

Please sign in to comment.