For my master's thesis, I am creating a Visual Studio plugin that should do some code analysis of the current open solution. For this, I decided to try using Roslyn using the appropriate nuget package .
Everything works fine (SyntaxTree for code navigation ...) until I tried using MSBuildWorkspace.Create(). This last call raises the following exception:
Could not load file or assembly "Microsoft.Build, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or one of its dependencies. The system cannot find the file specified.": "Microsoft.Build, Version = 14.0.0.0 , Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a
I found these two posts:
from which I understand that I need the MSBuild tools for Visual Studio 14 that are in the corresponding iso.
I do not want to install the full Visual Studio 14, this is also because the plugin I am writing should run under Visual Studio 2013. From two messages it seems that I can install only this part of VS 14.
My question really is: if I install MSBuild Tools for Visual Studio 14, what happens to all the other Visual Studio projects I'm working on now? They are currently using MSBuild for Visual Studio 2013. Is it possible to use this?
Update
What I'm really trying to get is to find out if the given method has links within the project. The idea was to continue, as in this post .
source share