diff --git a/build/NuGet.exe b/build/NuGet.exe new file mode 100644 index 0000000000..34ad49b494 Binary files /dev/null and b/build/NuGet.exe differ diff --git a/build/NuSpecs/UmbracoCms.Core.nuspec b/build/NuSpecs/UmbracoCms.Core.nuspec new file mode 100644 index 0000000000..62a59a4688 --- /dev/null +++ b/build/NuSpecs/UmbracoCms.Core.nuspec @@ -0,0 +1,60 @@ + + + + UmbracoCms.Core + 4.9.0 + Umbraco Cms Core Binaries + Morten Christensen + Umbraco HQ + http://umbraco.codeplex.com/license + http://umbraco.com/ + http://umbraco.com/media/357769/100px_transparent.png + false + Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms-package to setup Umbraco in Visual Studio as an ASP.NET project. + Contains the core assemblies needed to run Umbraco Cms + en-US + umbraco + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/NuSpecs/UmbracoCms.nuspec b/build/NuSpecs/UmbracoCms.nuspec new file mode 100644 index 0000000000..0f7a4348c7 --- /dev/null +++ b/build/NuSpecs/UmbracoCms.nuspec @@ -0,0 +1,43 @@ + + + + UmbracoCms + 4.9.0 + Umbraco Cms + Morten Christensen + Umbraco HQ + http://umbraco.codeplex.com/license + http://umbraco.com/ + http://umbraco.com/media/357769/100px_transparent.png + false + Installs Umbraco Cms in your Visual Studio ASP.NET Webforms project + Installs Umbraco Cms in your Visual Studio ASP.NET Webforms project + en-US + umbraco + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/NuSpecs/tools/Readme.txt b/build/NuSpecs/tools/Readme.txt new file mode 100644 index 0000000000..0ecf3a894c --- /dev/null +++ b/build/NuSpecs/tools/Readme.txt @@ -0,0 +1,15 @@ +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 and the files will +be overwritten with those from the current release. This means that you'll have to merge the files if you made any +changes to the previous config files. + +It's not possible to create a deploy package from Visual Studio, which contains everything out of the box. This is +due to a number of files and folders that are not added to the Visual Studio project. These folders include: +install, umbraco and umbraco_client. +A custom deploy script will be added in a later release. + +Please read the release notes on Codeplex: +http://umbraco.codeplex.com/releases + +- Umbraco \ No newline at end of file diff --git a/build/NuSpecs/tools/install.ps1 b/build/NuSpecs/tools/install.ps1 new file mode 100644 index 0000000000..94449c1898 --- /dev/null +++ b/build/NuSpecs/tools/install.ps1 @@ -0,0 +1,24 @@ +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\*" + Copy-Item $umbracoFilesPath $projectDestinationPath -recurse -force +} \ No newline at end of file