简体   繁体   English

开始行动:不要在Visual Studio 2017中使用.NET Core打开页面

[英]Start action: Don't open page with .NET Core in Visual Studio 2017

In Visual Studio 2015 with an ASP.NET MVC project, we were able to set the start action to "Don't open a page": 在带有ASP.NET MVC项目的Visual Studio 2015中,我们能够将开始操作设置为“不打开页面”: 不要打开选择的页面选项

With a default .NET Core project in Visual Studio 2017, the web tab isn't available. 对于Visual Studio 2017中的默认.NET Core项目,Web选项卡不可用。 When I run my site, I just want to run IIS Express like before. 当我运行网站时,我只想像以前一样运行IIS Express。 Anyone have any idea how to achieve this? 任何人都知道如何实现这一目标吗?

Note that I did turn off the new Chrome debug option already (as highlighted below here): 请注意,我确实已经关闭了新的Chrome调试选项(如下所示): Chrome调试功能已禁用

右键单击项目core properties然后取消选中Launch URL ,保存并再次运行。

For me this was fixed by opening launchSettings.json under Properties and setting launchBrowser to false. 对我来说,这是通过在“属性”下打开launchSettings.json并将launchBrowser设置为false来解决的。

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM