roslyn compiler not copied to AspnetCompileMerge folder using msbuild

后端 未结 3 1688
栀梦
栀梦 2021-01-11 11:21

I have a .NET MVC project that I\'m trying to deploy using Jenkins.

I had been letting Jenkins run msbuild, then copying the resulting files out using RoboCopy. I wa

3条回答
  •  长发绾君心
    2021-01-11 11:44

    Just putting this here, because I spent two days trying to resolve this same issue (roslyn csc.exe not copied), but none of these answers solved my problem.

    It turns out that Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.6 (and 1.0.7) is broken. Downgrade to 1.0.5.

    I was getting the same errors as everyone else here, but I'm using VS 2017, and both local WebDeploy as well as AzureDeploy were broken (no csc.exe found). I tried all the suggestions that I could find on the internet (most of them redirect back to this SO post) but nothing worked until I downgraded to 1.0.5.

    So I hope this is helpful to anyone who is struggling and has just recently upgrade to 1.0.6!

    See: https://github.com/aspnet/RoslynCodeDomProvider/issues/13 and https://github.com/dotnet/roslyn/issues/21340

提交回复
热议问题