The problem with the default VS2015 templates is that the compiler isn’t
actually copied to the tfrbinroslyn directory, but rather the
{outdir}roslyn directory
Add this pre in your .csproj file:
<Target Name="CopyRoslynFiles" AfterTargets="AfterBuild" Condition="!$(Disable_CopyWebApplication) And '$(OutDir)' != '$(OutputPath)'"> <ItemGroup> <RoslynFiles Include="$(CscToolPath)*" /> </ItemGroup> <MakeDir Directories="$(WebProjectOutputDir)binroslyn" /> <Copy SourceFiles="@(RoslynFiles)" DestinationFolder="$(WebProjectOutputDir)binroslyn" SkipUnchangedFiles="true" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" /></Target>



