我试图从脱机安装程序(iso文件)安装Visual Studio 2015 Update 3并得到此错误:
我在第7窗口运行,我的系统上有Visual Studio 2013 Update 2013.
这是一些日志:
[0E68:1238][2016-07-05T17:24:07]i000: MUX: Detect Completed
[0E68:1238][2016-07-05T17:24:07]i000: MUX: Wait for View to be loaded
[0E68:1238][2016-07-05T17:24:07]i000: MUX: View loaded
[0E68:1238][2016-07-05T17:24:07]i000: MUX: Checking for update...
[0E68:1238][2016-07-05T17:24:07]i000: MUX: Setup update feature is enabled. Evaluating conditions to determine whether to run setup update.
[0E68:1238][2016-07-05T17:24:07]i000: MUX: Checking http://go.microsoft.com/fwlink/?LinkID=659005 for update.
[0E68:1238][2016-07-05T17:24:11]i000: MUX: Failed to download the update xml file from http://go.microsoft.com/fwlink/?LinkID=659005 Setup will not be updated.
[0E68:1238][2016-07-05T17:24:11]i052: Condition 'NOT (CurrentOperation = "Uninstall")' evaluates to true.
[0E68:1238][2016-07-05T17:24:11]i052: …Run Code Online (Sandbox Code Playgroud) 我需要将所有已注册为列表的区域及其所有控制器作为子列表以及相同的操作。像这样:
AdminArea
HomeController
Index
Add
...
OtherController
...
AnotherArea
HomeController
Index
...
...
Run Code Online (Sandbox Code Playgroud)
我已经检查的回答这个问题,而这一个,但他们不是我要找的。第一个返回所有已注册的路由,第二个一次返回所有控制器。
更新
好的,使用下面的代码我可以获得所有区域,并且通过第二个问题的答案我可以获得所有控制器,但我无法弄清楚每个控制器属于哪个区域。
var areaNames = RouteTable.Routes.OfType<Route>()
.Where(d => d.DataTokens != null && d.DataTokens.ContainsKey("area"))
.Select(r => r.DataTokens["area"]).ToList()
.Distinct().ToList();
Run Code Online (Sandbox Code Playgroud) 我已将 Visual Studio 更新到版本 16.10.2(企业版)。
现在,当我运行 Asp.net Core 5 Web API 时,每次我修改代码中的某些内容时,Visual Studio 都会在后台运行一个任务,然后 chrome 刷新我的 swagger UI,然后我的所有数据都会丢失。
我怎样才能阻止这种行为?
我一直使用 swagger UI 来测试我的 API,但是 Visual Studio 的这种行为真的很烦人!
请观看视频以更好地理解:视频