One way to do this is to set the msbuild CscToolPath variable to the new bin bin directory for the assembly.
I found the msbuild command line (e.g. Start> Developer Command Prompt), the most convenient for this. You can simply cd to any solution directory at startup:
msbuild /p:CscToolPath=<PathToYourRoslynBinDir>`
You can also do this inside .csproj if you do this more often:
<PropertyGroup> <CscToolPath>C:\your\roslyn\bin</CscToolPath> </PropertyGroup>
Obviously, this only affects the assembly, not Visual Studio or Intellisense. To intercept this, you should follow the guide βTrying your changes in Visual Studioβ in the Roslyn repo. You must build one of the VSIX projects in the Roslyn solution. Launching one of these projects launches an experimental instance of Visual Studio, where you can play with your changes.
source share