Detect save from a VS2005 add-in
.NET (Core and Framework)
2
Posts
2
Posters
0
Views
1
Watching
-
Is it possible to detect that a file in a project is saved from a VS2005 add-in?
-
Is it possible to detect that a file in a project is saved from a VS2005 add-in?
As from any program, you can detect that using a FileSystemWatcher. This won't indicate if the file changed in Visual Studio or somewhere else, but it will give you a notification whenever the file changes on disk. Also, depending on what your plug-in is, it may be that it should not be a plugin at all but rather a "custom tool". If so, VS will re-run the tool whenever a file associated with the tool is saved. Look for example at the Coco/R for Visual Studio article here on CP.