当我告诉VS进行调试时,它会说“验证网站”10分钟,它到底在做什么?

时间:2023-01-25 11:06:20

This drives me nuts. I have one third-party product in particular that has about 11,000 files in one of the directories. On sites using this system, from the time when I press the "Play" button to the time when it gets done "Validating Web Site" and recursing through the directory tree, it can often be 10 full minutes.

这让我疯狂。我有一个特别是第三方产品,其中一个目录中有大约11,000个文件。在使用此系统的站点上,从我按下“播放”按钮到完成“验证网站”并通过目录树递归的时间,它通常可以是10分钟。

What is VS doing, and can I prevent this delay in some way?

什么是VS,我能以某种方式防止这种延迟吗?

This is a Web site project (not a Web application project).

这是一个Web站点项目(不是Web应用程序项目)。

3 个解决方案

#1


Right-click the web site and choose "Property Pages". On the "Build" tab at the bottom, make sure the two check boxes for accessibility validation are clear.

右键单击该网站,然后选择“属性页”。在底部的“构建”选项卡上,确保清除可访问性验证的两个复选框。

#2


already got that one, too. i think it is validating links to files like CSS, images, javascript etc...

已经有那个了。我认为它验证了CSS,图像,javascript等文件的链接...

i've searched for a way to avoid it - without success.

我一直在寻找避免它的方法 - 没有成功。

#3


Also, if you are just trying to run a page to make sure it works, you can right-click on the .aspx file you want to open and click 'View in browser'. This will run that page alot quicker.

此外,如果您只是尝试运行页面以确保其正常工作,则可以右键单击要打开的.aspx文件,然后单击“在浏览器中查看”。这将更快地运行该页面。

Also, you can leave it open while you make changes to it in VS and then just refresh the browser instance to see the changes in the output.

此外,您可以在VS中对其进行更改时将其保持打开状态,然后只需刷新浏览器实例以查看输出中的更改。

#1


Right-click the web site and choose "Property Pages". On the "Build" tab at the bottom, make sure the two check boxes for accessibility validation are clear.

右键单击该网站,然后选择“属性页”。在底部的“构建”选项卡上,确保清除可访问性验证的两个复选框。

#2


already got that one, too. i think it is validating links to files like CSS, images, javascript etc...

已经有那个了。我认为它验证了CSS,图像,javascript等文件的链接...

i've searched for a way to avoid it - without success.

我一直在寻找避免它的方法 - 没有成功。

#3


Also, if you are just trying to run a page to make sure it works, you can right-click on the .aspx file you want to open and click 'View in browser'. This will run that page alot quicker.

此外,如果您只是尝试运行页面以确保其正常工作,则可以右键单击要打开的.aspx文件,然后单击“在浏览器中查看”。这将更快地运行该页面。

Also, you can leave it open while you make changes to it in VS and then just refresh the browser instance to see the changes in the output.

此外,您可以在VS中对其进行更改时将其保持打开状态,然后只需刷新浏览器实例以查看输出中的更改。