简体   繁体   中英

.NET Framework 4.7.2 Class Library and .NET 6.0 Razor project

We have a deployed Razor project on our IIS server. We also have a separate DLL project used by a desktop based application. There is functionality in the DLL that we would like to call from our Razor web site. Is this possible given that the Razor web site is.Net 6 and the class library is.Net framework 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.

Some more details on .NET Standard compatibility here: https://docs.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM