Fix dotnet publish to only delete the specific framework bin folder
This commit is contained in:
parent
3adcbd10f7
commit
de449ee249
|
|
@ -24,7 +24,12 @@ default configuration = 'Debug'
|
||||||
var projectBin=Path.Combine(projectFolder, "bin", configuration);
|
var projectBin=Path.Combine(projectFolder, "bin", configuration);
|
||||||
|
|
||||||
var outputArg = string.IsNullOrEmpty(outputFolder) ? "" : "--output " + outputFolder;
|
var outputArg = string.IsNullOrEmpty(outputFolder) ? "" : "--output " + outputFolder;
|
||||||
var frameworkArg = string.IsNullOrEmpty(framework)? "": "--framework " + framework;
|
var frameworkArg = "";
|
||||||
|
if (!string.IsNullOrEmpty(framework))
|
||||||
|
{
|
||||||
|
frameworkArg = "--framework " + framework;
|
||||||
|
projectBin = Path.Combine(projectBin, framework);
|
||||||
|
}
|
||||||
|
|
||||||
DeleteFolder(projectBin);
|
DeleteFolder(projectBin);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue