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

后端 未结 10 2012
离开以前
离开以前 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条回答
  •  萌比男神i
    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.

提交回复
热议问题