有没有办法将 Razor Class 库加密到 .NET Core MVC 应用程序?

Is there a way to encrypt Razor Class Library to .NET Core MVC application?

我依赖翻译。 请原谅。

我在想办法解决这个问题。 link

我从头再想想

我的目标是加密 RCL 的 View.cshtml 个文件。

我用谷歌搜索过。而我找不到答案。

请帮助我..

即使您可以加密 Razor Class 库,也没有任何意义。它们旨在被覆盖。

https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-2.1&tabs=visual-studio#override-views-partial-views-and-pages

When a view, partial view, or Razor Page is found in both the web app and the Razor Class Library, the Razor markup (.cshtml file) in the web app takes precedence.