Update dotnet version in template (#17170)
This commit is contained in:
@@ -108,15 +108,19 @@
|
|||||||
"type": "generated",
|
"type": "generated",
|
||||||
"generator": "switch",
|
"generator": "switch",
|
||||||
"datatype": "text",
|
"datatype": "text",
|
||||||
"description": "Not relevant at the moment, but if we need to change the dotnet version based on the Umbraco version, we can do it here",
|
"description": "Used to calculate the dotnet version to use, for latest we want to use dotnet 9 and for LTS we want to use dotnet 8",
|
||||||
"replaces": "DOTNET_VERSION_FROM_TEMPLATE",
|
"replaces": "DOTNET_VERSION_FROM_TEMPLATE",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"evaluator": "C++",
|
"evaluator": "C++",
|
||||||
"datatype": "text",
|
"datatype": "text",
|
||||||
"cases": [
|
"cases": [
|
||||||
{
|
{
|
||||||
"condition": "(true)",
|
"condition": "(UmbracoRelease == 'Latest')",
|
||||||
"value": "net9.0"
|
"value": "net9.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "(UmbracoRelease == 'LTS')",
|
||||||
|
"value": "net8.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
|
||||||
<TargetFramework>DOTNET_VERSION_FROM_TEMPLATE</TargetFramework>
|
<TargetFramework>DOTNET_VERSION_FROM_TEMPLATE</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|||||||
Reference in New Issue
Block a user