简体   繁体   English

How to add .net core Web API project to an existing .NET core (3.1) Web Application project?

[英]How to add .net core Web API project to an existing .NET core (3.1) Web Application project?

I want to add .NET Core Web API project to an existing .NET core (3.1) Web Application project, with JWT Token Authentication with Identity Framework with routing and all.. I want to add .NET Core Web API project to an existing .NET core (3.1) Web Application project, with JWT Token Authentication with Identity Framework with routing and all..

Please Do we have any suggestion & is this possible & good idea to combine both the Projects?请问我们有什么建议吗?将这两个项目结合起来是否可行和好主意?

Its not good idea to add .NET Core Web API to an existing .NET core (3.1) Web Application project.. first of all you have to set "Default Project" from your solution, and both project have entry point or start up class. Its not good idea to add .NET Core Web API to an existing .NET core (3.1) Web Application project.. first of all you have to set "Default Project" from your solution, and both project have entry point or start up class. So if you want you can marge both project, you can move your controller and service from .NET Core Web API to .NET core (3.1) Web Application project, that may large work if your project size is big... So if you want you can marge both project, you can move your controller and service from .NET Core Web API to .NET core (3.1) Web Application project, that may large work if your project size is big...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Google身份验证添加到**现有** .net核心2 web api项目 - add google authentication to **Existing** .net core 2 web api project 如何在 api mvc 项目 net core 3.1 中向 controller 添加操作 - How to add action to controller in api mvc project net core 3.1 如何将 .NET Core 3.1 API web 应用程序作为 Z0F4137ED1502B5045426083AA258 服务托管? - How to host a .NET Core 3.1 API web application as windows service? 如何将 web api 添加到现有的 asp.net mvc core 6 web 应用程序 - How do i add a web api to an existing asp.net mvc core 6 web application OR/M 在 .NET Core Web API 项目中可用吗? - Is OR/M available in .NET core web API project? 如何将 Angular 项目添加到现有 .NET 核心 Web ZDB974238714CA8DE634A7CE1D08 项目? - How do I add an Angular project to an exisiting .NET Core Web API project? 如何在 .NET 核心 5 Web ZDB974238714CA8DE634A7CE1D083A1 项目中自动格式化 API 响应? - How to autoformat API response in .NET core 5 Web API project? 如何将Web API添加到现有的ASP.NET MVC(5)Web应用程序项目? - How to add Web API to an existing ASP.NET MVC (5) Web Application project? 如何将View返回到.net核心Web应用程序中的另一个项目(模块) - How to return View into another project (modules) in .net core web application 如何在 ASP.NET Core Web API 项目中设置 cookie - How to set a cookie in a ASP.NET Core Web API project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM