【发布时间】:2014-03-31 18:13:00
【问题描述】:
当我寻找我的 Web API 使用的端口号的硬编码来源时,我在项目的 *.csproj 文件中找到了它。然而,当我在 Visual Studio 的“查找结果”窗口中单击 2 次它时,它不会打开,而且我很粗暴地告知,“文档‘Bla*.csproj’已经作为项目或解决方案打开并且目前无法在编辑器中打开。"
要查看它,我必须用 Notepad++ 打开它,它显示了我想要的内容:
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>28642</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:28642/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
...但这有点痛苦。有没有更快的方法从项目/Visual Studio (2013) 中打开 .csproj 文件?
【问题讨论】:
标签: visual-studio-2013 notepad++ csproj web-development-server