Umbraco-CMS: v10.0.0-rc upgrade Error: Conflicting assets with the same target path 'umbraco/assets/css/canvasdesigner.min.css'.
Which exact Umbraco version are you using? For example: 9.0.1 - don’t just write v9
10.0.0-rc
Bug summary
I have upgrade a simple v9.4.3 or v9.5.0 site without any 3rd party packages to v10.0.0-rc. Building the solution leads tor error: Conflicting assets with the same target path ‘umbraco/assets/css/canvasdesigner.min.css’. …
Having the new templates installed with dotnet new -i Umbraco.Templates::10.0.0-rc1 I can not even build newly created v9.5.0 sites.
I get the erro:
CS0234 The type or namespace name ‘Hosting’ does not exist in the namespace ‘Umbraco.Cms.Web.Common’ (are you missing an assembly reference?)
Restoring with dotnet new -i Umbraco.Templates fixes the second issue and I can again create and build v9.5.0.
Specifics
No response
Steps to reproduce
- Create a new version 9.5.0 Umbraco site
- Update to 10.0.0-rc NuGet
- Build -> Error
Expected result / actual result
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (15 by maintainers)
The main changes between v9 and v10 templates
Program.csUpdated to
wwwroot/*Remove:
wwwroot/umbracofolderumbraco/*Remove:
umbraco/config/langumbraco/PartialViewMacrosumbraco/UmbracoBackOfficeumbraco/UmbracoInstallumbraco/UmbracoWebsiteThe documentation is online https://our.umbraco.com/documentation/Fundamentals/Setup/Upgrading/version-specific#version-9-to-version-10
So I’ll close this issue.
If you omit this value, it indeed defaults to
Microsoft.Data.SqlClientand therefore is only required when using SQLite right now (but it’s still best practice to explicitly set it, so you’re aware of this setting/value).When using Umbraco Deploy using an empty connection string, it will default to using SQLite, even when you already have a LocalDB file in your data directory. As Andy mentioned you can either explicitly configure the connection string or enable the
PreferLocalDbConnectionStringsetting. Using the setting has the benefit of being able to use the same settings for both Windows and Mac/Linux environments, as the explicitly configured LocalDB connection string won’t work cross-platform.That’s correct yes - see some notes here in the upgrade to 10 details.
There’s also a config setting you can use to “prefer LocalDb” - documented here.
Yes, I’ve found the same here. An alternative I understand is to do a
dotnet cleanon your V9 install before upgrading to V10.I think this is related to v10 changing to use embedded resources - I’ve found that deleting wwwroot/umbraco fixes the build.