Fix dotnet publish to only delete the specific framework bin folder

This commit is contained in:
Kiran Challa 2016-02-08 09:55:40 -08:00
parent 3adcbd10f7
commit de449ee249
1 changed files with 8 additions and 3 deletions

View File

@ -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);