This project aims to:
Creates a fresh Visual Studio solution that contains a Web and Logic project. Give a good starting point for creating your own template, feel free to fork!
In this example we create some scaffolding for strongly typed Models and include build tasks that ensure that permissions (ACL's) are correctly set when deploying to Azure. The build tasks also handle the automatic deployment of files required to run Umbraco. This means that you do not need to include every file within the Visual Studio project.
- Use the same starting point for all your projects
- Contains sensible gitignore files
- Automatically handles renaming and GUID replacement
web.config transform
urlrewrite useful outboundRules
urlrewite useful rules
Windows
Visual Studio
Node.js
Npm
- Run
Create Visual Studio Project.bat
- Enter directory -
c:\git\
- Enter company -
Acne
- Enter project -
Site
- Enter full project name -
Acne Inc.
This will create the following: c:\git\Acne.Site\
This will contain:
Src\
++Acne.Site.Logic\
- Business Logic (e.g. POCO's, Helpers, Services)
++Acne.Site.Web\
- Served Website
- This is a great time to make a Git Commit.
- Run the Visual Studio Solution (should open automagically)
- Open the Nuget Package Manager, and set the Project to 'Logic'
- Run
Install-Package UmbracoCms.Core
Install-Package Our.Umbraco.Ditto
Install-Package Our.Umbraco.Slimsy
Install-Package nuPickers
- Open the Nuget Package Manager, and set the Project to 'Web'
- Run
Install-Package UmbracoCms
Install-Package ImageProcessor.Plugins.WebP
Install-Package ImageProcessor.Web.PostProcessor
Install-Package Our.Umbraco.Slimsy
Install-Package Our.Umbraco.StackedContent
Install-Package uSync
Install-Package uSync.ContentEdition
Install-Package uSync.ContentMappers
Install-Package nuPickers
Install-Package Umbraco.ModelsBuilder.Api
Firstly see: Our Umbraco - Upgrades in General
- Git Commit
- Delete the shared build directory
src\bin
to ensure the old binaries are not copied back into your web project - In Visual Studio using the Package Manager Console run
Install-Package UmbracoCms.Core
in Logic project - In Visual Studio using the Package Manager Console run
Install-Package UmbracoCms
in Web project - Review your conflicts using a good merge tool (SmartGit or BeyondCompare)
- Stage and Commit files (tip: merge files directory by directory, e.g. first the root, then config, etc)
- Build solution
- Git Commit
Project uses a common directory for binaries which are used for build. Package DLL's from any project are copied into this directory. On a successful build these are then copied into the Web project. This avoids issues with missing DLL's when rebuilding and deploying the project.
- Robocopy will fail if
node_modules
if present. Userimraf
to remove.
- robots.txt - Indexing is automatically disabled when not on production domain.
Security Headers Test
Qualys SSL Test
TomSSL - Article - How to Fix HTTP Response Header...