Whole bunch of errors when upgrading from 12 to 13 with Visual Studio
Hello,
I wanted to upgrade umbraco from 12 to 13 as ususal with nuget GUI in visual studio, but encountered many errors:
First, you cannot upgrade umbraco from 12 to 13 when you do not have the latest upgrade of System.Security.Cryptography.Pkcs, VS simply cancels the Installation of umbraco.
2) You cannot use the latest version of Microsoft.ICU.ICU4C.Runtime (Umbraco does not start)
So I left Microsoft.ICU.ICU4C.Runtime to the old version 68.2.0.9 and upgraded System.Security.Cryptography.Pkcs to 8.0.0.0
Then changed to .NET Core 8.0 in the project settings, then upgraded umbraco from 12.1.2 to 13.0.3 with nuget GUI, recompiled and run the project (on the VS built-in IIS Express) ...
... and the trouble began. The debugger stopped many times in code files like semphoreslim.cs or list.cs, basically throwing null excpetions or signalisiing that some kind of operation has been cancelled a.s.o. .... after clicking the green arrow multiple times, the maintainance page came up, I did the updgrade, but after that again error: "cannot find complilation library location for package "System.Security.Cryptography.Pkcs".
I experienced similar difficulties in an older upgrade attempt but could overcome them in not upgrading System.Security.Cryptography.Pkcs to a newer version, but this this does not work.
P.S.: I work on Windows 10, using the latest version of VS
I did the update in this order and had no problems.
1 - start "clean solution" in VS.
2 - Convert the "Umbraco" project to the .NET 8 version
3 - Build and start "Umbraco". --> No errors should occur here. If any libraries are too old, they should be replaced and the code adapted. So that the next step runs without errors.
4 Update Umbraco.CMS to Version 13 as a Nuget package.
5 Build and start Umbraco. --> Everything should now run smoothly.
Do not update "Microsoft.ICU.ICU3C.Runtime (68.2.0.9)"
We dont needed extra "System.Security.Cryptography.Pkcs" in our project
Hi, just delete this portion from csproj file and uppdate ICU to latest version and everything will work
<ItemGroup>
<!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.9" />
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2.0.9" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
</ItemGroup>
A. Tkacuk gave the right hint - System.Security.Cryptography.Pkcs is not needed.
I uninstalled it and then did the upgrade via Nuget as usual - everything worked fine. Do not upgrade Microsoft.ICU.ICU3C.Runtime.
I also had issues with ICU package, so the issue was that I had wrong version set in <RuntimeHostConfigurationOption>. After I synced it with the version of the package (72.1.0.3) the solution run normally.
Had this issue recently as well. Best way around this is not to use the package manager GUI in VS. Update the project directly in the project file. So:
1) Use the VS Package Manager to find out the version number that you want to upgrade to for each package in your solution and write it down. For example Umbraco.CMS v. 13.4.1.
Whole bunch of errors when upgrading from 12 to 13 with Visual Studio
Hello,
I wanted to upgrade umbraco from 12 to 13 as ususal with nuget GUI in visual studio, but encountered many errors:
First, you cannot upgrade umbraco from 12 to 13 when you do not have the latest upgrade of System.Security.Cryptography.Pkcs, VS simply cancels the Installation of umbraco. 2) You cannot use the latest version of Microsoft.ICU.ICU4C.Runtime (Umbraco does not start)
So I left Microsoft.ICU.ICU4C.Runtime to the old version 68.2.0.9 and upgraded System.Security.Cryptography.Pkcs to 8.0.0.0
Then changed to .NET Core 8.0 in the project settings, then upgraded umbraco from 12.1.2 to 13.0.3 with nuget GUI, recompiled and run the project (on the VS built-in IIS Express) ...
... and the trouble began. The debugger stopped many times in code files like semphoreslim.cs or list.cs, basically throwing null excpetions or signalisiing that some kind of operation has been cancelled a.s.o. .... after clicking the green arrow multiple times, the maintainance page came up, I did the updgrade, but after that again error: "cannot find complilation library location for package "System.Security.Cryptography.Pkcs".
I experienced similar difficulties in an older upgrade attempt but could overcome them in not upgrading System.Security.Cryptography.Pkcs to a newer version, but this this does not work.
P.S.: I work on Windows 10, using the latest version of VS
I am having a similar issue
Hello
I did the update in this order and had no problems.
1 - start "clean solution" in VS.
2 - Convert the "Umbraco" project to the .NET 8 version
3 - Build and start "Umbraco". --> No errors should occur here. If any libraries are too old, they should be replaced and the code adapted. So that the next step runs without errors.
4 Update Umbraco.CMS to Version 13 as a Nuget package.
5 Build and start Umbraco. --> Everything should now run smoothly.
Do not update "Microsoft.ICU.ICU3C.Runtime (68.2.0.9)" We dont needed extra "System.Security.Cryptography.Pkcs" in our project
Hi there, i had similar issues. I suggest checking the .csproj file. Some entries there may still be referencing the "old" version numbers.
Hi, just delete this portion from csproj file and uppdate ICU to latest version and everything will work
Regards
Just followed this advice and it worked for me. No idea why it works, but I am on the latest version now and the solution still works
Thank you all for your replys.
A. Tkacuk gave the right hint - System.Security.Cryptography.Pkcs is not needed. I uninstalled it and then did the upgrade via Nuget as usual - everything worked fine. Do not upgrade Microsoft.ICU.ICU3C.Runtime.
Stephan
I also had issues with ICU package, so the issue was that I had wrong version set in
<RuntimeHostConfigurationOption>
. After I synced it with the version of the package (72.1.0.3) the solution run normally.Had this issue recently as well. Best way around this is not to use the package manager GUI in VS. Update the project directly in the project file. So:
1) Use the VS Package Manager to find out the version number that you want to upgrade to for each package in your solution and write it down. For example Umbraco.CMS v. 13.4.1.
Edit the project file and add the update numbers:
Change:
to:
Do the same for all your other installed packages. Make sure you change each of your projects to .Net 8 and build/run. Should upgrade without issue.
is working on a reply...