dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
34.79k stars 9.83k forks source link

TS/JS Warnings after creating a .NET 8 ASP.NET Core Web App #56471

Open sayedihashimi opened 6 days ago

sayedihashimi commented 6 days ago

Is there an existing issue for this?

Describe the bug

REPRO STEPS: 1.File > New > Project > ASP.NET Core Web App (Model-View Controller)>Select .NET 8.0 > Create. 2.Open Views->Shared->_Layout.cshtml file, TypeScript typings will be installed automatically, then observe error list window

image

We have discussed internally and have a few proposals to consider in that thread.

cc @artak

Expected Behavior

No warnings

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

v-Lily commented 2 days ago

This issue also reproduces on .NET 6.0 ASP.NET Core Web App.