Visual Studio often freezes when a solution opens from the network.

I had a problem when Visual Studio performance was horrified when the solution loaded from a network drive. This is not like other developers, only me.

After running procmon and monitoring the devenv process, I notice that one key difference between a project opened from the local path and the network path is that the project opened from the network path is trying to execute the "CreateFile" operation in the path ", C: \ Windows \ CSC \ v2.0.6 \ namespace \ kpg.apps' 1000 seconds of time. The result is "NAME NOT FOUND".

Does anyone know why the visual studio is trying to do this for a project open from the network, and how can I solve or at least stop him from trying this operation?

thanks

+4
source share
2 answers

This can help disable offline files (which are stored by default at the location you specify): go to the control panel, synchronization center, to manage this.

In addition, some servers may be configured to force the use of offline files on a shared resource - but this may not be the case if it works for other users.

+5
source

It looks like you have:

  • A sparkling virus scanner or external application that interacts with Visual Studio
  • or, disgusting add-on / extension for Visual Studio

The easiest way to determine which of these two is to open the solution in safe mode, which you can make from the Visual Studio command line:

Setting environment for using Microsoft Visual Studio 2010 x86 tools. X:\>devenv /safemode \\unc\path\to\your\solution.sln 

When you download your solution, all calls and whistles will be disabled.

If it is still slow, this is most likely not a problem with Visual Studio. Keep in mind that network resources and Windows rarely work together. Numerous trusted settings affect the behavior of files loaded from UNC paths.

This folder is cached by the client side of Windows , so this is not a VS problem.

+4
source

Source: https://habr.com/ru/post/1482418/


All Articles