简体   繁体   English

Visual Studio发布对话框需要很长时间才能显示

[英]Visual Studio publish dialog taking a long time to appear

We have a fairly large ASP.NET MVC solution (around 45 projects) and when I try and publish (web), the publish dialog takes around 5-10 mins to appear. 我们有一个相当大的ASP.NET MVC解决方案(大约45个项目),当我尝试发布(web)时,发布对话框大约需要5-10分钟才会出现。 Once it appears the publish itself is pretty quick and works fine. 一旦它出现,发布本身非常快,并且工作正常。 This happens on any server I point the publish to. 这发生在我指向发布的任何服务器上。

Does anyone else have this issue? 还有其他人有这个问题吗? or know of any reason why this might be happening? 或者知道为什么会发生这种情况?

We are using VS2015 (although we also had this problem before when using 2012/13). 我们正在使用VS2015(虽然我们在使用2012/13之前也遇到过这个问题)。

I've searched around but can't find anything relevant. 我四处搜寻但找不到相关的东西。

This worked for me, with the same issue Visual Studio Publish Web Dialogue takes excessive time to load 这对我有用,同样的问题Visual Studio Publish Web Dialogue需要花费很多时间来加载

TL;DR: As a workaround for this problem, find your DbContext class which inherit from IdentityDbContext<> and change base class constructor from base("DefaultConnection") to base("DefaultConnection", false) and do a full rebuild on your solution. TL; DR:作为此问题的解决方法,找到继承自IdentityDbContext <>的DbContext类,并将基类构造函数从base(“DefaultConnection”)更改为base(“DefaultConnection”,false),并对解决方案执行完全重建。 That will disable checking against Entity 1.0.0 which causes timeouts when run from Publish Web. 这将禁用对Entity 1.0.0的检查,这会导致从Publish Web运行时超时。

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

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