This is just a simple post for me to update and come back to as a reference when working with v9.

This installs a valid dev certificate for using localhost with https

dotnet dev-certs https --trust

This clears the local nuget cache

dotnet nuget locals all --clear

This is the v9 dev branch appsettings.json file if I ever want to do PR for it

https://github.com/umbraco/Umbraco-CMS/blob/v9/dev/build/templates/UmbracoProject/appsettings.Development.json

If you want the site to run and build when changes are made whilst it is running you can use this

dotnet watch run

From the Discord Server. Ronald said this:

If you like the CLI, this is a great way to get started with RC4, LocalDB and The Starter Kit

# Ensure we have the latest Umbraco templates
dotnet new -i Umbraco.Templates

# Create solution/project
dotnet new sln --name MySolution
dotnet new umbraco -n MyProject --friendly-name "Admin User" --email "[email protected]" --password "1234567890" --connection-string "Data Source=(localdb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Umbraco.mdf;Integrated Security=True"
dotnet sln add MyProject
dotnet add MyProject package Portfolio

# Run
dotnet run --project MyProject

If you would prefer to use SQLCE you can just change the connection string and add the -ce flag like this:

# Ensure we have the latest Umbraco templates
dotnet new -i Umbraco.Templates

# Create solution/project
dotnet new sln --name MySolution
dotnet new umbraco -n MyProject --friendly-name "Admin User" --email "[email protected]" --password "1234567890" --connection-string "Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1" -ce
dotnet sln add MyProject
dotnet add MyProject package Portfolio

# Run
dotnet run --project MyProject

If you are experiencing examine issues after installing RC4, it could be a nuget caching issue. Try this from Warren:

dotnet nuget locals all -clear
dotnet restore
dotnet build
dotnet run

Ronald also told us this:

We don't need to specify --SqlCe anymore and it works with unattended install as well, so you can already provide a connection string, set the Umbraco:CMS:Unattended settings and have Umbraco create the database file, install the database tables, create the local user and have an Umbraco backoffice ready to login on the first request!

Adding field definitions in Examine

https://shazwazza.github.io/Examine/configuration

Then add it in startup like this

https://github.com/umbraco/Umbraco-CMS/blob/v9/dev/src/Umbraco.Examine.Lucene/DependencyInjection/UmbracoBuilderExtensions.cs#L31

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Proudly sponsored by

Moriyama

  • Moriyama build, support and deploy Umbraco, Azure and ASP.NET websites and applications.
AppVeyor

  • CI/CD service for Windows, Linux and macOS
  • Build, test, deploy your apps faster, on any platform.
stkrs

  • Custom stickers for startups, artists and brands.
  • Bespoke easy-apply, removable, custom brand stickers printed in the UK.
elmah.io

  • elmah.io is the easy error logging and uptime monitoring service for .NET.
  • Take back control of your errors with support for all .NET web and logging frameworks.
uSync Complete

  • uSync.Complete gives you all the uSync packages, allowing you to completely control how your Umbraco settings, content and media is stored, transferred and managed across all your Umbraco Installations.
uSkinned

  • More than a theme for Umbraco CMS, take full control of your content and design with a feature-rich, award-nominated & content editor focused website platform.
UmbHost

  • Affordable, Geo-Redundant, Umbraco hosting which gives back to the community by sponsoring an Umbraco Open Source Developer with each hosting package sold.