Fixing nuget API calls and fixing the nuget test package directory creation, so that nuget can restore using it.
This commit is contained in:
parent
4fe36fd1e5
commit
d3157de6ee
4 changed files with 20 additions and 5 deletions
|
@ -12,9 +12,11 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
protected override string Args
|
||||
{
|
||||
get { return $"{GetProjectPath()} {GetSource()} {GetPackages()} {GetSkipInvalidConfigurations()} {GetRuntime()} {GetAdditionalParameters()}"; }
|
||||
get { return $"{GetProjectPath()} {GetConfigFile()} {GetSource()} {GetPackages()} {GetSkipInvalidConfigurations()} {GetRuntime()} {GetAdditionalParameters()}"; }
|
||||
}
|
||||
|
||||
public string ConfigFile { get; set; }
|
||||
|
||||
public string AdditionalParameters { get; set; }
|
||||
|
||||
public string ProjectPath { get; set; }
|
||||
|
@ -27,6 +29,16 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
public string Runtime { get; set; }
|
||||
|
||||
private string GetConfigFile()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ConfigFile))
|
||||
{
|
||||
return $"--configfile {ConfigFile}";
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private string GetSource()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Source))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue