diff --git a/build/NuSpecs/tools/Readme.txt b/build/NuSpecs/tools/Readme.txt index d437ed21fb..9964be2311 100644 --- a/build/NuSpecs/tools/Readme.txt +++ b/build/NuSpecs/tools/Readme.txt @@ -2,6 +2,11 @@ A note about running Umbraco from Visual Studio. Don't forget to build! +BETA Notice: We've done our best to transform your config files, we are testing this in 7.2 beta and would love to +hear back if it didn't work so we can improve this feature. We'd love to see your before and after config files +(make sure to delete sensitive data like passwords and API keys) in the issue tracker at http://issues.umbraco.org/ +Remember, we backed up your files in App_Data\NuGetBackup so you can find the original file before it was transformed. + When upgrading your website using NuGet you should answer "No" to the questions to overwrite the Web.config file (and config files in the config folder). diff --git a/build/NuSpecs/tools/install.ps1 b/build/NuSpecs/tools/install.ps1 index 81d55b09aa..56f66fe3f8 100644 --- a/build/NuSpecs/tools/install.ps1 +++ b/build/NuSpecs/tools/install.ps1 @@ -14,6 +14,15 @@ if ($project) { $webConfigSource = Join-Path $projectDestinationPath "Web.config" Copy-Item $webConfigSource $backupPath -Force + # Backup config files folder + $configFolder = Join-Path $projectDestinationPath "Config" + if(Test-Path $configFolder) { + $umbracoBackupPath = Join-Path $backupPath "Config" + New-Item -ItemType Directory -Force -Path $umbracoBackupPath + + robocopy $configFolder $umbracoBackupPath /e /LOG:$copyLogsPath\ConfigBackup.log + } + # Copy umbraco and umbraco_files from package to project folder # This is only done when these folders already exist because we # only want to do this for upgrades @@ -140,7 +149,10 @@ if ($project) { } $installFolder = Join-Path $projectDestinationPath "Install" - if(Test-Path $umbracoFolder) { + if(Test-Path $installFolder) { Remove-Item $installFolder -Force -Recurse -Confirm:$false } + + # Open readme.txt file + $DTE.ItemOperations.OpenFile($toolsPath + '\Readme.txt') } \ No newline at end of file