Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to listen for modifications of project files made from outside the environment?

$
0
0
Hi.

When I have a project opened in two or more instances in Visual Studio, when I change something in the first instance and save tha changes, as soon as I switch to the second instance I get a notification that the project file was modified. It asks me if I want to reload the project.

Is it possible to handle this event from my code? I need to do some additional things when a project is modified.

I suppose I can use the FileSystemWatcher to monitor changes in the file system. This seems ok, but I was wondering if there is some other way, using some API of Visual Studio?

Thanks.

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>