With Visual Studio extensions and especially with Roslyn available there are lot of possibilities to improve how developers are working in their day to day activities and to simplify their work. Only problem is that there is no much documentation and examples available out there which will show how to write different type of extensions. Mostly even if something exist is very simple and not usable in real scenarios.
We need to write some extension which will be able to react to save operation in Visual Studio. During save notification system should detect what kind of file is saved and if file type is csproj it will do some custom actions when content of the file is not correct. Any suggestions where to start if I will want to write such extension ? Which services I need to listen to and how MEF composition should looks like ?