binding redirects tests: Simplify and get ready for enabling (#4692)

* binding redirects tests: Simplify and get ready for enabling

* fix targets broken during cleanup

* fix non-windows build

* apply pr feedback: remove some not needed code

* remigrate BindingRedirects samples, add x64 to bind redir proj
This commit is contained in:
Krzysztof Wicher 2016-11-14 14:26:03 -08:00 committed by GitHub
parent 6d57ca7e14
commit 9212605e89
22 changed files with 363 additions and 387 deletions

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Cli.Build
protected override string Args
{
get { return $"{GetProjectPath()} {GetConfiguration()} {GetNoBuild()} {GetOutput()} {GetVersionSuffix()}"; }
get { return $"{GetProjectPath()} {GetConfiguration()} {GetNoBuild()} {GetOutput()} {GetVersionSuffix()} {GetRuntime()}"; }
}
public string Configuration { get; set; }
@ -24,6 +24,8 @@ namespace Microsoft.DotNet.Cli.Build
public string ProjectPath { get; set; }
public string VersionSuffix { get; set; }
public string Runtime { get; set; }
private string GetConfiguration()
{
@ -74,5 +76,15 @@ namespace Microsoft.DotNet.Cli.Build
return null;
}
private string GetRuntime()
{
if (!string.IsNullOrEmpty(Runtime))
{
return $"/p:RuntimeIdentifier={Runtime}";
}
return null;
}
}
}