Visual Studio 2010 SDK Scanning Source Files in a Project

I am working with the 2010 SDK and I am trying to figure out how to associate VS with somehow that I have a background process that constantly analyzes .CS files in the current project and adds them to the dictionary, so I can show some graphic hints in the editor of a custom text document that I have.

I have done quite a bit of research here: http://msdn.microsoft.com/en-us/library/bb166441.aspx

But I can’t find a way to β€œsnap” to VS ... like an entry point so that this service can run in the background while the project is open.

I still have an Editor Editor project, I made some changes to the editor with ... how can I control files in the background?

+3
source share
2 answers

Have you started with the Visual Studio Managed Extensibility Framework ? I found downloading samples from http://learnvsxnow.codeplex.com

Perhaps of particular interest is the "Automatic download of packages": http://dotneteers.net/blogs/divedeeper/archive/2008/03/23/LVNSideBar1.aspx

And then you can start a new thread for your actual workflow.

Hope this helps.

+2
source

You can implement an interface IVsTrackProjectDocumentsEvents2for listening to project events, such as adding a file to a project.

OnAfterAddFilesEx, OnAfterRemoveFiles OnAfterRenameFiles - , .

+1

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


All Articles