BuildTasks.Csc task could not be loaded from the assembly?

后端 未结 21 911
北荒
北荒 2020-12-13 05:15

I feel guilty asking a question like this around here, but I\'m at a loss and would appreciate some help.

A proof-of-concept like web application was built on one PC

相关标签:
21条回答
  • 2020-12-13 05:47

    Problem hides on TFS, you need to remove folder TestProject...\packages from TFS, check in, delete it from your local dir and build again. Worked!

    0 讨论(0)
  • 2020-12-13 05:48

    In my case: this works for me.

    It turns out my teammate had already started looking into Windows 10 development and had Microsoft Build Tools 2015 installed on his machine.

    I installed the software from https://www.microsoft.com/en-us/download/details.aspx?id=48159 and the problem was solved.

    0 讨论(0)
  • Deleting the package and cleaning the solution solved it for me.

    0 讨论(0)
  • 2020-12-13 05:49

    Use the below step:

    1) Delete the package folder.
    2) close the visual studio.
    3) open the project and rebuild the project.

    0 讨论(0)
  • 2020-12-13 05:49

    In vs2017 community there appeared a new item in the "build" menu. It disappeared after I used it and was called something like "Optimise project build packages". I clicked it and it fixed everything, just restart etc. I did it on two machines.

    What it did was removed Microsoft.net.compilers 2.10.0 and replaced with Microsoft.CodeDom.Providers.DotNetCompilerPlatform 2.0.1

    So there you go - more automagic...

    0 讨论(0)
  • 2020-12-13 05:50

    Re-build, clean solution and restart Visual Studio worked for me.

    0 讨论(0)
提交回复
热议问题