[英].NET Framework 4.7.2 Class Library and .NET 6.0 Razor project
We have a deployed Razor project on our IIS server.我们在 IIS 服务器上部署了 Razor 项目。 We also have a separate DLL project used by a desktop based application.我们还有一个单独的 DLL 项目由基于桌面的应用程序使用。 There is functionality in the DLL that we would like to call from our Razor web site. DLL 中有我们想从我们的 Razor web 站点调用的功能。 Is this possible given that the Razor web site is.Net 6 and the class library is.Net framework 4.7.2?鉴于 Razor web 站点是.Net 6,而 class 库是.Net 框架 4.7.2,这是否可能?
No, it's not possible.不,这是不可能的。 What you might be able to do is change your class library to target .NET Standard 2.0, and then your .NET Framework 4.7.2 app and your .NET 6 app should both be able to reference it. What you might be able to do is change your class library to target .NET Standard 2.0, and then your .NET Framework 4.7.2 app and your .NET 6 app should both be able to reference it.
Some more details on .NET Standard compatibility here: https://docs.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0有关 .NET 标准兼容性的更多详细信息: https://docs.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.