s4lv0
s4lv0

Reputation: 1

Asp.net Core 2 - Angular template (One Solution)

I have some problems to start the project after downloading the ASP.NET Core with Angular One soluton template. I start it with iis express but the client app don't start. https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Core Any suggestion?

Upvotes: 0

Views: 401

Answers (2)

Alper Ebicoglu
Alper Ebicoglu

Reputation: 9624

Merged solution is a structure where angular and host project files are located in the same directory. that doesn't mean host and client app start within IIS Express. So you cannot run Angular in IIS Express. Just run npm start.

Upvotes: 0

Vivek Nuna
Vivek Nuna

Reputation: 1

You cannot run/debug angular project from VS. Because the Angular project is running with using Angular-CLI. For debugging check following links.

  1. How to debug Angular JavaScript Code
  2. https://www.pluralsight.com/guides/front-end-javascript/debugging-angular-2-applications

Try Visual Studio Code and add the Chrome debugging extension and add a configuration to launch.json something like this.

{  
    "version": "0.2.0",  
    "configurations": [{  
        "name": "Launch Chrome against localhost",  
        "type": "chrome",  
        "request": "launch",  
        "url": "http://localhost:4200",  
        "sourceMaps": true,  
        "webRoot": "${workspaceRoot}",  
        "sourceMapPathOverrides": {  
            "webpack:///./*": "${workspaceRoot}/*"  
        }  
    }]  
}

You can also refer this document for more details. https://code.visualstudio.com/docs/languages/typescript

Upvotes: 1

Related Questions