Skip to content

Commit 8c69bb4

Browse files
Error in powershell, more backups and updates readme for beta
1 parent 0c33fa0 commit 8c69bb4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

build/NuSpecs/tools/Readme.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ A note about running Umbraco from Visual Studio.
22

33
Don't forget to build!
44

5+
BETA Notice: We've done our best to transform your config files, we are testing this in 7.2 beta and would love to
6+
hear back if it didn't work so we can improve this feature. We'd love to see your before and after config files
7+
(make sure to delete sensitive data like passwords and API keys) in the issue tracker at http://issues.umbraco.org/
8+
Remember, we backed up your files in App_Data\NuGetBackup so you can find the original file before it was transformed.
9+
510
When upgrading your website using NuGet you should answer "No" to the questions to overwrite the Web.config
611
file (and config files in the config folder).
712

build/NuSpecs/tools/install.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ if ($project) {
1414
$webConfigSource = Join-Path $projectDestinationPath "Web.config"
1515
Copy-Item $webConfigSource $backupPath -Force
1616

17+
# Backup config files folder
18+
$configFolder = Join-Path $projectDestinationPath "Config"
19+
if(Test-Path $configFolder) {
20+
$umbracoBackupPath = Join-Path $backupPath "Config"
21+
New-Item -ItemType Directory -Force -Path $umbracoBackupPath
22+
23+
robocopy $configFolder $umbracoBackupPath /e /LOG:$copyLogsPath\ConfigBackup.log
24+
}
25+
1726
# Copy umbraco and umbraco_files from package to project folder
1827
# This is only done when these folders already exist because we
1928
# only want to do this for upgrades
@@ -140,7 +149,10 @@ if ($project) {
140149
}
141150

142151
$installFolder = Join-Path $projectDestinationPath "Install"
143-
if(Test-Path $umbracoFolder) {
152+
if(Test-Path $installFolder) {
144153
Remove-Item $installFolder -Force -Recurse -Confirm:$false
145154
}
155+
156+
# Open readme.txt file
157+
$DTE.ItemOperations.OpenFile($toolsPath + '\Readme.txt')
146158
}

0 commit comments

Comments
 (0)