1
deltavision created
14 Answer(s)
-
0
After spending few hours or research here is my work around until Microsoft stops experimenting with us.
Rolling back the sdk or VS did not help at all.
--
We Fixed this by adding global.json to force the application to use last working SDK.
- open solution\src\xxx.xxx.web.mvc in CLI
- Find latest working SDK other than 7.0.200 ( you can find using CMD - dotnet --list-sdks)
- run dotnet new global.json --sdk-version 2.1.402
See this link. https://www.learnrazorpages.com/publishing/publish-to-iis#fixing-the-sdk-version-used-for-publishing
also, for SDK impacted/working https://github.com/dotnet/razor/issues/8281#issuecomment-1455780747
-
0
Hi,
eg. for the Account Languages in ...Mvc\Views\Account_Layout.cshtml
instead of using:
<vc:account-languages></vc:account-languages>
use:
@await Component.InvokeAsync("AccountLanguages")
https://learn.microsoft.com/en-us/aspnet/core/mvc/views/view-components?view=aspnetcore-7.0
Have an answer to this question?
Log in
and write your answer.