I created a branch in my system from vsts and now i am facing issue with csc.exe error. The error is following-
The specified task executable location "E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools\csc.exe" is invalid.
I wondered that last time this project was running in my machine and when i took this code from vsts now getting this error. I checked many solutions in internet but there was no luck to running my application.
Later i checked about this csc.exe file and i found its available in following location.
C:\Users\manoj\Documents\Visual Studio 2017\Projects\WebApplication1\packages\Microsoft.Net.Compilers.1.3.2\tools
Now i again check my problem and i found that visual studio is looking for csc.exe file and this file should inside E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools folder location.
So I just copied tools folder (which contains csc.exe file and other executable files) from C:\Users\manoj\Documents\Visual Studio 2017\Projects\WebApplication1\packages\Microsoft.Net.Compilers.1.3.2\tools location and copied in my error location i.e. E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools location.
Wow now my problem is fix and i am able to run my web application. Following csc.exe file is getting add in Micsosoft.Net.Compliers..../tools folder.
Commit the source code now after build in vsts branch.
Now try to build the solution. csc.exe related error will be fix in pipeline build also.
The specified task executable location "E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools\csc.exe" is invalid.
I wondered that last time this project was running in my machine and when i took this code from vsts now getting this error. I checked many solutions in internet but there was no luck to running my application.
Later i checked about this csc.exe file and i found its available in following location.
C:\Users\manoj\Documents\Visual Studio 2017\Projects\WebApplication1\packages\Microsoft.Net.Compilers.1.3.2\tools
Now i again check my problem and i found that visual studio is looking for csc.exe file and this file should inside E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools folder location.
So I just copied tools folder (which contains csc.exe file and other executable files) from C:\Users\manoj\Documents\Visual Studio 2017\Projects\WebApplication1\packages\Microsoft.Net.Compilers.1.3.2\tools location and copied in my error location i.e. E:\ProjectLocation\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools location.
Wow now my problem is fix and i am able to run my web application. Following csc.exe file is getting add in Micsosoft.Net.Compliers..../tools folder.
If the same error of csc.exe is invalid error comes in vsts pipeline build.
Commit the source code now after build in vsts branch.
Now try to build the solution. csc.exe related error will be fix in pipeline build also.