Typescript TS5042 Build: Option 'project' cannot be mixed with source files on a command line

前端 未结 7 979
北恋
北恋 2021-02-18 22:23

I am receiving the following error across all typescript projects that I am trying run.

TS5042  Build: Option \'project\' cannot be mixed with source files on a          


        
7条回答
  •  醉酒成梦
    2021-02-18 23:13

    If could be of help I have a little update. As explained in the previous issues, after I've seen the problems with 1.8 I tried to uninstall it and reinstall 1.7 to continue to work to my projects, but even the installation was ok I had different problems compiling these asp.net 5 apps. I tried repairing vs, uninstalling and reinstalling 1.7 and 1.8 in any order without any changes. In the end I checked the directory C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript and I found that at the end of the uninstall of every version of typescript I have this

    search for this folder and delete At this point I tried to remove this directory completely and retried to uninstall typescript 1.7.6. and now it works fine. I tried doing this cleaning up and installing 1.8 beta, but I continue to have the same problem, but at least now I can work on asp.net 5 projects. I think that the problem rolling back to previous version was unable to overwrite at least the TypeScript.Tasks.dll generating an inconsistent behavior. Could be possibile that to make work nightly builds of 1.8

    and the error TS5042 solve. I hope this help you.

提交回复
热议问题