有没有人知道在Visual Studio解决方案中更改所有Web项目以便他们使用IIS Express的技巧。
想象一下,通过单击每个“属性”来转换100个Web应用程序项目......
答案 0 :(得分:3)
您可以直接编辑.csproj文件,也可以查找并替换所有文件。我确信这是一种更优雅的方式。
这些设置存储在:
下<ProjectExtensions>
<VisualStudio>
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>56051</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
...
答案 1 :(得分:0)
目前没有简单的方法来转换很多项目。 PowerShell脚本可以完成这项工作,但我找不到一个,我暂时不打算写它。
答案 2 :(得分:0)
使用像记事本++这样不错的编辑器来执行&#34;替换文件&#34;,然后在所有<UseIIS>True</UseIIS>
上使用*.csproj
全局替换*.csproj.user
目录树中的let request = GADRequest()
request.testDevices = [kGADSimulatorID, // All simulators
"2077ef9a63d2b398840261c8221a0c9b"]; // Sample device ID
个文件。