简体   繁体   English

.NET 框架 4.7.2 Class 库和 .NET 6.0 Razor 项目

[英].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.

相关问题 .NET Standard 2.0 Class 库能否依赖于 .NET Framework 4.7.2? - Can .NET Standard 2.0 Class Library depend on .NET Framework 4.7.2? 在.Net Framework 项目中使用带有部分视图的 Razor Class 库 - Consuming a Razor Class Library with Partial Views in .Net Framework Project ASP.NET Core项目无法引用具有简化的csproj格式的.NET 4.7.2类库 - .NET 4.7.2 Class Library with simplified csproj format can't be referenced by ASP.NET Core project .NET Framework 4.7.2 和 MoreLINQ - .NET Framework 4.7.2 with MoreLINQ 在 .Net Core 项目中使用 .Net Framework dll (v4.7.2) - Use .Net Framework dll (v4.7.2) in .Net Core project .Net Framework 4.7.2 引用.Net Standard 2.0 项目 - .Net Framework 4.7.2 Referencing .Net Standard 2.0 project EntityFramwork 与 .net 框架 4.7.2 项目和 .net 标准 2.0 项目的兼容性 - EntityFramwork compatibility with .net framework 4.7.2 projects and .net standard 2.0 project Razor 的可路由 comp.net Class 库未显示在 ASP.NET Core 6.0 WebAssembly - Routable componet of Razor Class Library not displayed in ASP.NET Core 6.0 WebAssembly Razor class 库不兼容monoandroid13.0 only supports.net6.0问题? - Razor class library not compatible with monoandroid13.0 only supports net6.0 issue? 无法在.NET Framework 4.7.2项目中安装Nuget软件包 - Unable to install a Nuget Package in a .NET Framework 4.7.2 project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM