Bug/srgen in lab builds (#109)

This isn't much of a change from the change that was backed out. The only change was a version bump of the SRGen nuget package.

* Reenabling running SRGen when running lab builds, improving failure logic, updating SRGen package

* Vbump for srgen package testing

* Final vbump of srgen package
This commit is contained in:
Benjamin Russell
2016-10-20 16:54:41 -07:00
committed by GitHub
parent fd7a2a5748
commit 989ad065dd
2 changed files with 5 additions and 2 deletions

View File

@@ -257,6 +257,7 @@ Task("TestCore")
/// </summary>
Task("Test")
.IsDependentOn("Setup")
.IsDependentOn("SRGen")
.IsDependentOn("BuildTest")
.Does(() =>
{
@@ -304,6 +305,7 @@ Task("Test")
/// </summary>
Task("OnlyPublish")
.IsDependentOn("Setup")
.IsDependentOn("SRGen")
.Does(() =>
{
var project = buildPlan.MainProject;
@@ -534,7 +536,8 @@ Task("SRGen")
var dotnetArgs = string.Format("{0} -or \"{1}\" -oc \"{2}\" -ns \"{3}\" -an \"{4}\" -cn SR -l CS -dnx \"{5}\"",
srgenPath, outputResx, outputCs, projectName, projectName, projectStrings);
Information("{0}", dotnetArgs);
Run(dotnetcli, dotnetArgs);
Run(dotnetcli, dotnetArgs)
.ExceptionOnError("Failed to run SRGen.");
}
});

View File

@@ -2,5 +2,5 @@
<packages>
<package id="Cake" version="0.10.1" />
<package id="Newtonsoft.Json" version="8.0.3" />
<package id="Microsoft.DataTools.SrGen" version="1.0.1-preview" />
<package id="Microsoft.DataTools.SrGen" version="1.0.2" />
</packages>