-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The target "CompileTypeScript" does not exist in the project #231
Comments
I've also encountered this issue with .NET 6. |
@Snazzie @andersstorhaug I also encountered similar issue during build after installing VS2022 (on .NET Core 3.1 project, in fact). What helped for me was opening the installer for VS2022 and installing the "TypeScript SDK 4.4" component. Maybe it will work for you as well? |
@Alphish Ive replaced this library with openapi-generator as dealing with this bug for about half a year has got to me especially because it prevents me from publishing. I also wanted to generate more languages, which forced me to look into alternatives. |
This issue is also blocking me from publishing my code. The error in question is the following:
Will this be fixed anytime soon? Thanks in advance. |
Same here. I'm having the same behavior that @pdsrebelo is experiencing. |
By the way, I was also able to quickly reproduce this problem just by creating a default .NET6 web app on Visual Studio 2022. You can pull the repository here (and if you don't have any Typescript SDK's installed via VS Installer), it will fail on the build: https://github.com/pdsrebelo/ReinforcedTypingsBug The build error is the following: |
same pb here when bumping from .net 5 to 6 |
Installing the Microsoft.TypeScript.MSBuild nuget package into the same project as Reinforced.Typings fixed this issue for me. |
I have been able to get rid of the error by adding <Target Name="CompileTypeScript" /> to my .csproj |
I got this error message when upgrading from Visual Studio 2022 17.5.3 to 17.7.3 . For my .NET 7 project, adding |
Updated VS to latest |
Thanks @xhafan - I encountered the same issue with Visual Studio 2022 Version 17.10.2, and your fix worked for me. |
in aspnet core .net 5 and 6 i get the error
The target "CompileTypeScript" does not exist in the project
on build when reinforced typings is being used.This error isnt thrown 100% of the time i build. usually the build after the one that errors will succeed.
If i were to publish an app, it will be thrown 100% of the time.
im using vs 2022 if thats any help.
Seems to be fine via cli route.
https://github.com/Snazzie/reinforcedTypingsIssueDemo
The text was updated successfully, but these errors were encountered: