Force clean before deploying

Ensures app.config is up-to-date before deploying, rather than using a potentially old version
This commit is contained in:
Dean Herbert 2017-09-15 00:25:38 +09:00
parent 742cd5db91
commit 9e059a2ef0
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public static void Main(string[] args)
updateAssemblyInfo(version);
write("Running build process...");
runCommand(msbuild_path, $"/v:quiet /m /t:{TargetName.Replace('.', '_')} /p:OutputPath={stagingPath};Configuration=Release {SolutionName}.sln");
runCommand(msbuild_path, $"/v:quiet /m /t:{TargetName.Replace('.', '_')} /p:OutputPath={stagingPath};Targets=\"Clean;Build\";Configuration=Release {SolutionName}.sln");
write("Creating NuGet deployment package...");
runCommand(nuget_path, $"pack {NuSpecName} -Version {version} -Properties Configuration=Deploy -OutputDirectory {stagingPath} -BasePath {stagingPath}");