Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error Build: File 'COMPUTE_PATHS_ONLY.ts' not found in visual studio

I received the following error after the repair of visual studio 2015.

Error       Build: File 'COMPUTE_PATHS_ONLY.ts' not found.

COMPUTE_PATHS_ONLY.ts is not from my Git repo. Other files in the Git repo have not changed. What could it be?

like image 932
Rajab Shakirov Avatar asked Mar 18 '16 11:03

Rajab Shakirov


2 Answers

This answer helped me a lot, I could solve my problem this way

When I removed "COMPUTE_PATHS_ONLY" from the line Configurations="$(TypeScriptBuildConfigurations) COMPUTE_PATHS_ONLY" in the file Microsoft.TypeScript.targets, my problem was solved.

like image 126
Julian Avatar answered Oct 29 '22 17:10

Julian


I found answer here, it works for me: https://github.com/Microsoft/TypeScript/issues/7445

the error indicates that there is a mismatch between your targets (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets) and the tasks dll (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\TypeScript.Tasks.dll); this would be an issue with the installer not handling a specific order of installing different versions.

Can please try:

  • uninstall TS 1.8.* from Add/Remove Programs
  • uninstall TS 1.7.* from Add/Remove Programs
  • make sure the folder C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript is empty, if not remove it manually
  • install TS 1.7.6 again, you should see the folder created in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript
like image 41
Rajab Shakirov Avatar answered Oct 29 '22 15:10

Rajab Shakirov