Visual Studio 2012 csc.exe Error. Executable not valid for OS

后端 未结 10 2014
离开以前
离开以前 2020-12-20 14:21

I am getting the following error when trying to compile and test any type of project in Visual Studio 2012 Professional.

Error 1 The specified task executable \

相关标签:
10条回答
  • 2020-12-20 14:55

    I am on Visual Studio 2017 but this is the first google result that pops up for "csc.exe not found"

    When I got this error I had to restart Visual Studio, being sure to select 'Run As Administrator'. Everything worked after that

    0 讨论(0)
  • 2020-12-20 14:55

    Check your solution properties (right-click on Solution and select 'Properties') and make sure that the 'platform' field (Configuration Properties) is set correctly.

    0 讨论(0)
  • 2020-12-20 14:57

    The problems associated with csc.exe in Visual Studio 2012 can mostly be solved by repairing Visual Studio.

    You need to repair Visual Studio. Go to Control Panel -> Programs. Then select your version of Visual Studio you are using and press "Change"(or right click it and press "Change"). When the setup appears, click "Repair".

    0 讨论(0)
  • 2020-12-20 14:57

    I've faced this problem while i am trying to move Asp.Net Mvc Project from one computer to another ; error message was : The specified task executable location "c:\users\mypcname\documents\visual studio 2015\Projects\TestMVC\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools\csc.exe" is invalid. I solved this by

    1. Creating new Mvc Project ;
    2. going to that folder \Microsoft.Net.Compilers.1.0.0\build..\tools
    3. and Copied the csc.exe file to my Projets >> \Microsoft.Net.Compilers.1.0.0\build..\tools\

    i think when i was copying the project from the original Computer i left that csc.exe file in the specified folder.

    Hope this will help someone.

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