Take a look at the CompilerPackage sources to see how we install the compiler on your machine when you install the preview VSIX. The trick is we drop some MSBuild files in AppData\Local\Microsoft\MSBuild\12.0\<target name>\ImportAfter
. These files are loaded automatically in any C# or VB.NET build. In them, we change the corresponding CscToolPath
or VbcToolPath
to a path that contains the Roslyn compilers. There's also some additional trickery to deal with multiple hives in the scenario if you had different versions of the compilers installed in different experimental hives in VS.
So if you take a look at that, create those same .target files and edit them to point to some place where you've dropped rcsc
and rvbc
, it should work.