简体   繁体   English

如果可能,您可以从其解决方案/项目文件夹中托管一个.Net核心Web API并通过IIS进行调试

[英]If possible can you host a .Net core web API from it's solution/project folder and debug though IIS

I am wondering if it is possible to run a .net core Web API application from its solution/project folder in IIS. 我想知道是否有可能从IIS中的解决方案/项目文件夹中运行.net核心Web API应用程序。

Currently, I can do this with standard .net and IIS and it works great but I've had no luck doing this .net core or able to find any information regarding this. 目前,我可以使用标准的.net和IIS来完成此任务,并且效果很好,但是我对使用.net核心或找到任何与此相关的信息并不满意。

I have been successful in publishing and hosting the API, I imagine I can debug using that method? 我已经成功发布和托管了API,我想我可以使用该方法进行调试吗? but may not be ideal. 但可能并不理想。 (just tested this with no luck but will continue to follow up) (只是对此进行了幸运的测试,但会继续跟进)

(I'm fairly new .net core as I've inherited a .net core API) (由于继承了.net核心API,因此我是一个相当新的.net核心)

Thanks in advance. 提前致谢。

https://blogs.msdn.microsoft.com/webdev/2017/07/13/development-time-iis-support-for-asp-net-core-applications/ https://blogs.msdn.microsoft.com/webdev/2017/07/13/development-time-iis-support-for-asp-net-core-applications/

Thanks, Lexi, just what I was looking for. 谢谢,Lexi,正是我想要的。

I hope this helps someone else with the same question. 我希望这可以帮助其他有同样问题的人。

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

相关问题 从 .NET 核心 2.1 启动 SignalR Web API 项目在 IIS - Launch SignalR from .NET Core 2.1 Web API project inside IIS .Net Core Web Api项目无法使用Visual Studio代码进行调试 - .Net Core Web Api project Can't Debug with Visual studio code 无法在本地iis上发布.net Core Web API - Can't publish .net core web api on local iis 使用HTML5 / Javascript项目部署解决方案,并在IIS上单独部署ASP.NET Web API项目 - Deploy a solution with HTML5/Javascript project and separate ASP.NET Web API project on IIS 无法在IIS上托管ASP .NET Web API - Not able to host asp .net web api on IIS ASP.Net Core - 从“调试”文件夹创建本地 IIS 网站 - ASP.Net Core - Create Local IIS Website From 'Debug' Folder 将 .NET Core Web API 部署到 IIS 服务器 - Deploying .NET Core Web API to IIS Server Blazor 和 Web API 解决方案中的 .NET 核心标识 - .NET Core Identity in Blazor and Web API Solution 将 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? IIS可托管Web Core主机ASP.NET MVC - IIS Hostable Web Core host ASP.NET MVC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM