[英]adding a web app project to my solution, and the other projects in the solution already use .net framework, can I use .net core for the new project?
Ive build out a service as a console application, it exists across 2 different projects in the solution, both are in .NET framework.我已经将服务构建为控制台应用程序,它存在于解决方案中的 2 个不同项目中,两者都在 .NET 框架中。 I am wanting to add in an api level to this and am wondering if I should continue to use .NET framework for the web application project, or if I can use .NET Core without messing anything up.
我想为此添加一个 api 级别,并想知道我是否应该继续为 Web 应用程序项目使用 .NET 框架,或者我是否可以使用 .NET Core 而不会弄乱任何东西。
It all depends on the APIs you use in your application.这完全取决于您在应用程序中使用的 API。 If you only use APIs included in
.NET Standard
then no problem to use them in an application under .NET 6
.如果您只使用
.NET Standard
中包含的 API,那么在.NET 6
下的应用程序中使用它们就没有问题。 Otherwise I join Kirk Woll to migrate your code under .NET 6
especially since the unification of the platform.否则,我会加入 Kirk Woll 以在
.NET 6
下迁移您的代码,尤其是在平台统一之后。 I think it will remain only .NET 6
aka .NET core
in the future.我认为将来它只会保留
.NET 6
aka .NET core
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.