简体   繁体   English

将 Web 应用项目添加到我的解决方案中,并且解决方案中的其他项目已经使用 .net 框架,我可以将 .net 核心用于新项目吗?

[英]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.否则,我会加入 Ki​​rk 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.

相关问题 如何从我的解决方案中的其他项目中使用我的Web Api项目? - How can I use my Web Api project from other projects inside my solution? 将新项目添加到asp.net核心解决方案 - Adding new project to asp.net core solution 面向 .NET Standard 时,我到底可以在我的项目中使用 .NET Core 和 .NET Framework 中的哪些内容? - When targeting .NET Standard, what exactly can I use from .NET Core and .NET Framework in my project? 我可以在一个解决方案中的其他项目中使用主项目中的类和控件吗? - Can I use classes and controls from main project in other projects within one solution? 为什么使用旧版本的.NET Framework(2.1)在我的解决方案中创建一个NUnit项目? - Why creating an NUnit project into my solution it use an old version of .NET framework (2.1)? .net核心解决方案 - 项目结构 - .net Core Solution - Project stucture 使用 VS 2017 映像,无法在具有一个 .NET Core 3 项目的解决方案中构建其他项目 - Using VS 2017 image, unable to build other projects in a solution which has one .NET Core 3 project 我有两个项目的解决方案,如何在Winforms项目中使用库类型项目中的方法? - I have a solution with two projects how can i use methods from the library type project in the winforms project? 我可以在我的 ApplicationLogic 项目(net standard 2.1)中的 MVC(.net core 3.0)项目中使用视图模型吗? - Can I use viewmodels in my MVC(.net core 3.0) project in my ApplicationLogic project (net standard 2.1) .NET解决方案 - 许多项目与一个项目 - .NET solution - many projects vs one project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM