Microsoft.CodeDom.Providers.DotNetCompilerPlatform error while upgrading from 7.15.7 to 7.15.11
s
Hi, We're try to upgrade our solution from Umbraco 7.15.7 to 7.15.11 but getting the following error during the upgrade: **Attempting to gather dependency information for package 'UmbracoCms.7.15.11' with respect to project 'Umbraco.Site', targeting '.NETFramework,Version=v4.8' Gathering dependency information took 2.1 sec Attempting to resolve dependencies for package 'UmbracoCms.7.15.11' with DependencyBehavior 'Lowest' Unable to find a version of 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform' that is compatible with 'UmbracoCms 7.15.11 constraint: Microsoft.CodeDom.Providers.DotNetCompilerPlatform (>= 2.0.1 && < 3.0.0)'.** Microsoft.CodeDom.Providers.DotNetCompilerPlatform is already installed and on version 2.0.1. Tried to remove the package, but got an error that it can't be uninstalled because it depends on Umbraco 7.15.7 package. Also tried to delete my local C:\Users\[Your User]\.nuget\packages directory\ but with the same result. Hopefully someone can point us in the right direction? Thanks in advance! Grtz Sander
s
Sounds like this one https://github.com/umbraco/Umbraco-CMS/issues/14873 (and MySql is the problem here, not DotnetCompilerPlatform) - check Bjarke's reply here for guidance https://github.com/umbraco/Umbraco-CMS/issues/14873#issuecomment-1739291902 - try going to 7.15.10 first then 7.15.11.
Or even easier: downgrade the mysql dependency maybe.. if you already upgraded it above 6.9.9
s
Hi @Sebastiaan That was indeed the solution, downgrading the MySql.Data package to 6.9.9 🙂
r
I also noticed a difference that lower versions of 7.15.x rely on .NET Framework 4.5 7.15.11 requires 4.5.2 Check this line in the Web.Config
10 Views