Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Feedback about the ASP.NET Core tutorial #797

@pekspro

Description

@pekspro

I started to look at TypeScript for a few days core. I do develop applications in ASP.NET Core. I mostly use JavaScript to manipulate the DOM and using Ajax, nothing complicated.

It was way harder than I thought it to be :-( There is a couple of things I’m missing in the current tutorial (https://www.typescriptlang.org/docs/handbook/asp-net-core.html ):

  • How to use a common library (like jQuery).
  • How to communicate with a web service.
  • How to share code if you are using several TypeScript files.
  • How to use the debugger.
  • How to deal with library that doesn’t have a definition file. This is a problem I have when using signalR. If I add import * as signalR from '@aspnet/signalr' on the top of my file but then the browser complains about export etc isn’t defined. I could define that and some more stuff, but it feels like a strange solution. Another options I found is to add declare var signalR: any; instead. But then Intellisense doesn’t work properly. The is some instructions here about TypeScript and signalR but that also feels awkward: https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr-typescript-webpack?view=aspnetcore-2.1&tabs=visual-studio

These a probably basic things, but if you are a beginner like me that’s what you want :-) I have spent a lot of hours searching and guessing just to get something useful running :-(

To be fair, I haven’t used neither npm or gulp before and that also took a lot of me to get a grasp on. In the current tutorial gulp is used to copy files to wwwroot, and I don’t understand why. Can’t the files be added in wwwroot from the beginning? Then gulp won’t be needed at all, at least not for that part. The current tutorial also references and old version of “del” in packages.json, which I was stuck on for some time (it couldn’t be downloaded or something like that).

To summarize I’m asking for better tutorial for basic ASP.NET Core developers like me. It’s a bit overwhelming to get a decent start right now I think.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions