From 8b4d4e31896104e6b73567c5c8f35dbacb70bf19 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 18 Mar 2014 18:38:16 +0100 Subject: [PATCH] Update readme and remove non-functioning backups from install.ps1 --- build/NuSpecs/tools/Readme.txt | 11 ++++++----- build/NuSpecs/tools/install.ps1 | 16 ---------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/build/NuSpecs/tools/Readme.txt b/build/NuSpecs/tools/Readme.txt index 413da7442b..939ea026b6 100644 --- a/build/NuSpecs/tools/Readme.txt +++ b/build/NuSpecs/tools/Readme.txt @@ -1,8 +1,9 @@ A note about running Umbraco from Visual Studio. -When upgrading your website using nuget a backup of config files and web.config will be created. Only the web.config will -be overwritten by default to ensure that it has the necessary settings from the current release. This means that you'll -have to merge the files if you made any changes to the previous config files. +When upgrading your website using NuGet, make sure to backup all of your config files and web.config. +Only the web.config will be overwritten by default to ensure that it has the necessary settings from the current release. +This means that you'll have to merge the files if you made any changes to the previous config files. + The config files found in the config folder will usually not be changed for patch releases, so they can usually be skipped, but the web.config will have to have its previous "umbracoConfigurationStatus"-appsetting and "umbracoDbDSN" connection string copied over (as a minimum). @@ -10,8 +11,8 @@ copied over (as a minimum). This nuget package includes build targets that extends the creation of a deploy package, which is generated by Publishing from Visual Studio. The targets will only work once Publishing is configured, so if you don't use Publish this won't affect you. -These folders will now be automatically included when creating a deploy package or publishing to the file system: -umbraco and umbraco_client. +These things will now be automatically included when creating a deploy package or publishing to the file system: +umbraco, umbraco_client, config\splashes and global.asax. Please read the release notes on our.umbraco.org: http://our.umbraco.org/contribute/releases diff --git a/build/NuSpecs/tools/install.ps1 b/build/NuSpecs/tools/install.ps1 index 19af134c2a..aaba10d364 100644 --- a/build/NuSpecs/tools/install.ps1 +++ b/build/NuSpecs/tools/install.ps1 @@ -1,22 +1,6 @@ param($rootPath, $toolsPath, $package, $project) if ($project) { - # Create a backup of extisting umbraco config files - $configPath = Join-Path (Split-Path $project.FullName -Parent) "\config" - $backupPath = Join-Path $configPath "\backup" - Get-ChildItem -path $configPath | - Where -filterscript {($_.Name.EndsWith("config"))} | Foreach-Object { - $newFileName = Join-Path $backupPath $_.Name.replace(".config",".config.backup") - New-Item -ItemType File -Path $newFileName -Force - Copy-Item $_.FullName $newFileName -Force - } - - # Create a backup of original web.config - $projectDestinationPath = Split-Path $project.FullName -Parent - $webConfigSource = Join-Path $projectDestinationPath "web.config" - $webConfigDestination = Join-Path $projectDestinationPath "web.config.backup" - Copy-Item $webConfigSource $webConfigDestination - # Copy umbraco files from package to project folder $projectDestinationPath = Split-Path $project.FullName -Parent $umbracoFilesPath = Join-Path $rootPath "UmbracoFiles\*"