Skip to content

Outdated version of the Umbraco.TheStarterKit is being referenced when creating a project using the template #19389

Open
@lauraneto

Description

@lauraneto

Which Umbraco version are you using?

15.4.1

Bug summary

When creating a project using the project template and selecting Umbraco.TheStarterKit as starter kit, the version that is installed for v14+ is always 14.0.0.
This causes issues when trying to create a v15+ project, as it leads to version conflicts.

Specifics

The version in https://github.com/umbraco/Umbraco-CMS/blob/main/templates/UmbracoProject/.template.config/starterkits.template.json#L37 needs to be updated according to the CMS major version.

Steps to reproduce

Run the following commands to create a new 15.4.1 project using the starter kit.

dotnet new install Umbraco.Templates::15.4.1 --force
dotnet new umbraco -n "MyProject" --starter-kit "Umbraco.TheStarterKit"

Expected result / actual result

Expected: Project is created and can run without issues.
Actual:

error NU1107: 
  Version conflict detected for Umbraco.Cms.Api.Management. Install/reference Umbraco.Cms.Api.Management 15.4.1 directly to project MyProject to resolve this issue. 
   MyProject -> Umbraco.Cms 15.4.1 -> Umbraco.Cms.Targets 15.4.1 -> Umbraco.Cms.Api.Management (>= 15.4.1 && < 16.0.0) 
   MyProject -> Umbraco.TheStarterKit 14.0.0 -> Umbraco.Cms.Api.Management (>= 14.0.0 && < 15.0.0).
Restore failed.
Post action failed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions