Files
Umbraco-CMS/templates/UmbracoProject/.template.config/template.json
Bjarke Berg 0ad0f86e6e Update to dotnet 8 preview 5 (#14492)
* Update to .net 8 preview 1

* Update npoco to 5.7.0

* Update pipeline to use .net 8

* Revert "Update npoco to 5.7.0"

This reverts commit f7795afa77a41ef2719f639405f73d9c21e4b12e.

* Fix tests and updated OpenApi.json

* use dotnet 8 in linux container

* Updated templates and docker image to dotnet 8

* Bugfix

* R
Updated docker images to 8.0 preview 1

* linux docker images updated

* Force use c# 11, in hope of the acceptance tests will pass

* Do not use C# 8 :)

* Update to preview 2

* CompatibilitySuppressions

* updated templates

* Disable package validation

* Update to .net8 preview 4

* change EnableStrictModeForCompatibleFrameworksInPackage to false

* Package validation

* Added CompatibilitySuppressions.xml

* Fix up IP networks

* Updated to preview 5

* Update docker images

* Post merge fixes

* Try to update dotnet version of codeql

* Delete empty suppression files

* Remove dependency

* Cleanup

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
2023-07-05 14:13:52 +03:00

299 lines
8.8 KiB
JSON

{
"$schema": "https://json.schemastore.org/template.json",
"author": "Umbraco HQ",
"classifications": [
"Web",
"CMS",
"Umbraco"
],
"name": "Umbraco Project",
"description": "An empty Umbraco project ready to get started.",
"groupIdentity": "Umbraco.Templates.UmbracoProject",
"identity": "Umbraco.Templates.UmbracoProject.CSharp",
"shortName": "umbraco",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "UmbracoProject",
"defaultName": "UmbracoProject1",
"preferNameDirectory": true,
"sources": [
{
"modifiers": [
{
"condition": "(ExcludeGitignore)",
"exclude": [
".gitignore"
]
}
]
}
],
"symbols": {
"Framework": {
"displayName": "Framework",
"description": "The target framework for the project.",
"type": "parameter",
"datatype": "choice",
"choices": [
{
"displayName": ".NET 8.0",
"description": "Target net8.0",
"choice": "net8.0"
}
],
"defaultValue": "net8.0",
"replaces": "net8.0"
},
"UmbracoVersion": {
"displayName": "Umbraco version",
"description": "The version of Umbraco.Cms to add as PackageReference.",
"type": "parameter",
"datatype": "string",
"defaultValue": "*",
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
},
"UseHttpsRedirect": {
"displayName": "Use HTTPS redirect",
"description": "Adds code to Startup.cs to redirect HTTP to HTTPS and enables the UseHttps setting.",
"type": "parameter",
"datatype": "bool",
"defaultValue": "false"
},
"SkipRestore": {
"displayName": "Skip restore",
"description": "If specified, skips the automatic restore of the project on create.",
"type": "parameter",
"datatype": "bool",
"defaultValue": "false"
},
"ExcludeGitignore": {
"displayName": "Exclude .gitignore",
"description": "Whether to exclude .gitignore from the generated template.",
"type": "parameter",
"datatype": "bool",
"defaultValue": "false"
},
"MinimalGitignore": {
"displayName": "Minimal .gitignore",
"description": "Whether to only include minimal (Umbraco specific) rules in the .gitignore.",
"type": "parameter",
"datatype": "bool",
"defaultValue": "false"
},
"ConnectionString": {
"displayName": "Connection string",
"description": "Database connection string used by Umbraco.",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "CONNECTION_STRING_FROM_TEMPLATE"
},
"ConnectionStringProviderName": {
"displayName": "Connection string provider name",
"description": "Database connection string provider name used by Umbraco.",
"type": "parameter",
"datatype": "string",
"defaultValue": "Microsoft.Data.SqlClient",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "CONNECTION_STRING_PROVIDER_NAME_FROM_TEMPLATE"
},
"HasConnectionString": {
"type": "computed",
"value": "(ConnectionString != '')"
},
"DevelopmentDatabaseType": {
"displayName": "Development database type",
"description": "Database type used by Umbraco for development.",
"type": "parameter",
"datatype": "choice",
"choices": [
{
"displayName": "None",
"description": "Do not configure a database for development.",
"choice": "None"
},
{
"displayName": "SQLite",
"description": "Use embedded SQLite database.",
"choice": "SQLite"
},
{
"displayName": "SQL Server Express LocalDB",
"description": "Use embedded LocalDB database (requires SQL Server Express with Advanced Services).",
"choice": "LocalDB"
}
],
"defaultValue": "None"
},
"DevelopmentConnectionString": {
"type": "generated",
"datatype": "string",
"generator": "switch",
"parameters": {
"cases": [
{
"condition": "(DevelopmentDatabaseType == 'SQLite')",
"value": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True"
},
{
"condition": "(DevelopmentDatabaseType == 'LocalDB')",
"value": "Data Source=(localdb)\\\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\\\Umbraco.mdf;Integrated Security=True"
}
]
},
"replaces": "CONNECTION_STRING_DEVELOPMENT_FROM_TEMPLATE"
},
"DevelopmentConnectionStringProviderName": {
"type": "generated",
"datatype": "string",
"generator": "switch",
"parameters": {
"cases": [
{
"condition": "(DevelopmentDatabaseType == 'SQLite')",
"value": "Microsoft.Data.Sqlite"
},
{
"condition": "(true)",
"value": "Microsoft.Data.SqlClient"
}
]
},
"replaces": "CONNECTION_STRING_PROVIDER_NAME_DEVELOPMENT_FROM_TEMPLATE"
},
"HasDevelopmentConnectionString": {
"type": "computed",
"value": "(DevelopmentConnectionString != '')"
},
"UnattendedUserName": {
"displayName": "Unattended user name",
"description": "Used to specify the name of the default admin user when using unattended install on development (stored as plain text).",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "UNATTENDED_USER_NAME_FROM_TEMPLATE"
},
"UnattendedUserEmail": {
"displayName": "Unattended user email",
"description": "Used to specify the email of the default admin user when using unattended install on development (stored as plain text).",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "UNATTENDED_USER_EMAIL_FROM_TEMPLATE"
},
"UnattendedUserPassword": {
"displayName": "Unattended user password",
"description": "Used to specify the password of the default admin user when using unattended install on development (stored as plain text).",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "UNATTENDED_USER_PASSWORD_FROM_TEMPLATE"
},
"UsingUnattenedInstall": {
"type": "computed",
"value": "(UnattendedUserName != '' && UnattendedUserEmail != '' && UnattendedUserPassword != '' && (HasConnectionString || HasDevelopmentConnectionString))"
},
"NoNodesViewPath": {
"displayName": "No nodes view path",
"description": "Path to a custom view presented with the Umbraco installation contains no published content.",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "NO_NODES_VIEW_PATH_FROM_TEMPLATE"
},
"HasNoNodesViewPath": {
"type": "computed",
"value": "(NoNodesViewPath != '')"
},
"PackageProjectName": {
"displayName": "Umbraco package project name",
"description": "The name of the package project this should be a test site for.",
"type": "parameter",
"datatype": "string",
"defaultValue": "",
"replaces": "PACKAGE_PROJECT_NAME_FROM_TEMPLATE"
},
"Namespace": {
"type": "derived",
"valueSource": "name",
"valueTransform": "safe_namespace",
"replaces": "Umbraco.Cms.Web.UI"
},
"HttpPort": {
"type": "generated",
"generator": "port",
"parameters": {
"fallback": 5000
},
"replaces": "HTTP_PORT_FROM_TEMPLATE"
},
"HttpsPort": {
"type": "generated",
"generator": "port",
"parameters": {
"low": 44300,
"high": 44399,
"fallback": 5001
},
"replaces": "HTTPS_PORT_FROM_TEMPLATE"
},
"TelemetryId": {
"type": "generated",
"generator": "guid",
"parameters": {
"defaultFormat": "d"
},
"replaces": "TELEMETRYID_FROM_TEMPLATE"
}
},
"primaryOutputs": [
{
"path": "UmbracoProject.csproj"
}
],
"postActions": [
{
"condition": "(!SkipRestore)",
"description": "Restore NuGet packages required by this project",
"manualInstructions": [
{
"text": "Run 'dotnet restore'"
}
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}