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

后端 未结 21 912
北荒
北荒 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 06:02

    Right Click on Solution. Go to Manage Nuget Packages for this Solution. Search forMicrosoft.Net.Compilers on Browse Section.

    0 讨论(0)
  • 2020-12-13 06:02

    For me I was trying to open a MVC5 project in VS 2013 and I was getting this error, Opened it in VS 2017 and up it worked just fine.

    0 讨论(0)
  • 2020-12-13 06:03

    I got this error when I created a new branch for my project.

    It drove me crazy for an hour. I tried most of the suggestions over the internet including the accepted answer to this question.

    I then closed the project, opened it again, cleaned it and the error is gone. So this means this could be cache issue.

    Anyways, just wanted to share.

    0 讨论(0)
  • 2020-12-13 06:04
    • Right-click on your solution.
    • Go to Manage Nuget Packages.
    • Search for Microsoft.Net.Compilers.
    • Install or update on dependent projects as necessary.
    0 讨论(0)
  • 2020-12-13 06:06

    Deleting these three directories solves the problem.

    • /packages
    • /bin
    • /obj

    NOTE: delete both /bin and /obj from all projects included in the solution (including Test projects).

    0 讨论(0)
  • 2020-12-13 06:08

    In my case, the solution was:

    1. Right Click on Solution.
    2. Go to Manage Nuget Packages for this Solution.
    3. Search for Microsoft.CodeDom.Providers.DotNetCompilerPlatform.
    4. Uninstall the searched Package.
    5. Restart the Visual Studio.
    0 讨论(0)
提交回复
热议问题