Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The target "TypeScriptClean" does not exist in the project

Tags:

typescript

I'm using Visual Studio 2017 Professional. When I build, I am getting a lot of TypeScript-related errors even though I don't have any typescript in my solution. The main one is:

The target "TypeScriptClean" does not exist in the project.

However, there are no references to anything called "TypeScriptClean" - or typescript at all - in my solution.

I also get:

The target "CompileTypeScriptWithTSConfig" does not exist in the project.

Both these errors are occurring in the file Microsoft.Common.CurrentVersion.targets.

Anyone know what is going on here? I basically can't build anything in Visual Studio.

like image 445
tuseau Avatar asked Mar 22 '18 17:03

tuseau


2 Answers

I added this to my .jsproj file and it worked. at least it gets past this issue and my project builds again. It's just an empty target, since I do not use typescript.

<Target Name="TypeScriptClean">
</Target>

I do not see where the typescript version is located for my older cordova project.

like image 140
Jacob Clark Avatar answered Nov 19 '22 16:11

Jacob Clark


in visual studio 2017

changing the typescript version to Use latest available on the project properties fixed the issue

use latest

like image 27
Nerdroid Avatar answered Nov 19 '22 17:11

Nerdroid