Fix passing /p:DISABLE_CROSSGEN on cli.

When passing a property using the commandline, it is not flown through to "dotnet publish" calls.  So instead of using "dotnet publish", just use the MSBuild task to invoke the Publish target on the reidst project.  This way properties flow correctly.

I also did a little cleaning of unused build logic.
This commit is contained in:
Eric Erhardt 2017-04-04 17:50:28 -05:00
parent a616c04a38
commit a7becbe6d8
6 changed files with 2 additions and 39 deletions

View file

@ -7,8 +7,6 @@ namespace Microsoft.DotNet.Cli.Build
{
public class BuildVersion : Version
{
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
}
}