© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
40 replies
İrşat

✅ Upgrading Javascript to Typescript in MVC project

I globally installed npm and typescript. Then created a tsconfig.json in my project. But I have no idea what to do after that.
"include": ["TypeScript"],
"compilerOptions": {
    "outDir": "./wwwroot/js",
"include": ["TypeScript"],
"compilerOptions": {
    "outDir": "./wwwroot/js",

I am trying to put my .ts files in TypeScript folder directly under the App.Web. Both TypeScript folder and tsconfig.json are right under App.Web.
(I have 2 apps in one project. App.Web and App.Api)

App.Web
    MVC structure
    TypeScript
        firsttry.ts
    tsconfig.json
App.Api
App.Web
    MVC structure
    TypeScript
        firsttry.ts
    tsconfig.json
App.Api


Installing typescript in App.Web was a torture. I gave up and installed it globally.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Javascript not working on my MVC project
C#CC# / help
3y ago
✅ Path Resolution in .NET MVC Project
C#CC# / help
15mo ago
.NET MVC Project Issue
C#CC# / help
17mo ago