fix error with project being erased and move getdefaults call to execute function
This commit is contained in:
parent
db9f9dfa6e
commit
cc527abc7c
1 changed files with 6 additions and 2 deletions
|
@ -31,7 +31,6 @@ namespace Microsoft.DotNet.Tools.Run
|
|||
}
|
||||
else
|
||||
{
|
||||
CalculateDefaultsForNonAssigned();
|
||||
return RunExecutable();
|
||||
}
|
||||
}
|
||||
|
@ -50,8 +49,11 @@ namespace Microsoft.DotNet.Tools.Run
|
|||
}
|
||||
|
||||
private void CalculateDefaultsForNonAssigned()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(Project))
|
||||
{
|
||||
Project = Directory.GetCurrentDirectory();
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(Configuration))
|
||||
{
|
||||
|
@ -81,6 +83,8 @@ namespace Microsoft.DotNet.Tools.Run
|
|||
|
||||
private int RunExecutable()
|
||||
{
|
||||
CalculateDefaultsForNonAssigned();
|
||||
|
||||
// Create a temporary directory
|
||||
var tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue