1

I've installed Visual Studio 2017(v15.9.3).

I downloaded Asp.net core Boilerplate template project with Angular (from https://aspnetboilerplate.com/Templates). It's server side project working with Asp.net Core 2.1 and client side with Angular, under Asp.net core framework. Server side project working properly and it's run with IIS Express with Chrome.

The issue is, in Angular project I need to debug Typescript in VS with Chrome or whatever browser. But, this Angular project not allowed to run it with any browser. It shows only "IIS Express" and "MyProjectName.AngularUI".

enter image description here

(1) When click on "IIS Express" -> Gives error

The project doesn't know how to run the profile IIS Express

(2) When click on "MyProjectName.AngularUI" -> Gives error

A project with an output type of class library cannot be started directly

My problem is, how to debug typescript inside this Angular project (comes with Asp.net core Boilerplate framework) inside VS with browser ?

(My contrib. :- In normal Asp.net core Angular projects, Typescript debugging is working correctly). Any solution or clue may highly appreciate.

NOTE : Not a possible duplicate of "How do I debug typescript code in VS 2017?" Because I can debug normal typescript code in VS. But I cannot debug typescript code which is comes with Asp.net Core Boilerplate framework.

5
  • Appreciate your suggestion @James P . I know that, Angular apps can run using Angular CLI. But then I couldn't debug Typescript inside Visual studio. That's why I'm trying to run inside VS. Commented Dec 7, 2018 at 3:38
  • Possible duplicate of How do I debug typescript code in VS 2017? Commented Dec 7, 2018 at 4:01
  • That question is not specific. And also that is not I'm asking. So, it'll not give solution to my question. Commented Dec 7, 2018 at 4:18
  • Can you include your launchsettings.json file? That's where the IIS Express and project profiles are defined. Commented Dec 7, 2018 at 16:06
  • The same error occurred to me in Visual Studio 2019, see how I solved it: stackoverflow.com/a/63102683/868526 Commented Jul 26, 2020 at 16:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.