-
Hello, We've been using orchard core since 1.0 already and have been building out our own platform over the passed time. Had some issues with references to some other packages but everything has been updated and upgraded to .net 6. I've looked through the release notes, and other .net 6 breaking changes and I've been trying to add and remove references if something would be missing but to no avail so far. I can run a clean .net 6 project referencing the Orchard.Application.Cms.Core.Targets no problem. From other searches updating from 1.0 to 1.5 is some undertaking and noted to be done in steps. However, I could not find the steps unless meant to first go to 1.1, 1.2, .... So we straight went for 1.5. Not sure if anyone has seen this before and can help me out or nudge me in the right direction because I just don't see it what is missing. For reference I've added some screenshots of the error messages I get on the page, and also added the log that's created when the application is started. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This looks like a compilation issue related with the new Global Using Statements In C# 10. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for the suggestion. I had already added RazorRuntimeCompilation as false and PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Condition="'$(RazorRuntimeCompilation)' == 'true'". But when looking at those settings I noticed the following setting. I removed this and then no more errors... |
Beta Was this translation helpful? Give feedback.
Hello, thanks for the suggestion. I had already added RazorRuntimeCompilation as false and PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Condition="'$(RazorRuntimeCompilation)' == 'true'".
But when looking at those settings I noticed the following setting.
PreserveCompilationReferences as true
I removed this and then no more errors...