Open Neutrino-Sunset opened 3 months ago
It seems there is a bug in the VS2022 task runner explorer. When the Verbose
toolbar button is selected verbose mode is disabled and vice-versa.
It seems there is a bug in the VS2022 task runner explorer. When the
Verbose
toolbar button is selected verbose mode is disabled and vice-versa.
For Visual Studio, use the Report a Problem
@mkArtakMSFT This is so out of date can we delete this article and redirect to
Description
In the section Preparing the Application creating an ASP Core project using the ASP Core (empty) template does not create a project containing
src
orwwwroot
directories.There is no
Tools > Options > Text Editor > Typescript > Project
section, it isTools > Options > Text Editor > JavaScript/TypeScript > Project
Selecting
Automatically compile TypeScript files which are not part of a project
has no effect.Firstly the files being added in this tutorial are part of a project, so they should be automatically compiled anyway, but they are not.
Secondly, enabling this option does not change the fact that the TypeScript files are still not automatically compiled when modified and saved.
The instructions to create a JavaScript file and then rename it to a .ts file serves no purpose whatsoever. It behaves exactly the same as if you had just created a TypeScript file in the first place.
In the section Configuring NPM saving
packages.json
does not automatically restore the dependencies, you have to do that manually.Running the
clean
task it appears to be defaulting toverbose
mode, so instead of the tidier output seen in the tutorial it instead outputs this messThe
clean
task also runs with--force
even though according to the docs the default isforce=false
.Attempting to explicity disable
verbose
andforce
using the following config has no effect.Nothing in the Watching for Changes section works, because it's waiting for changes to the
.js
files, which never happen because the TypeScript files aren't being automatically compiled.To get the TypeScript file compilation working you need to go to the file properties and select
Build Action=TypeScript
. Once you've done that the instruction to setAutomatically compile TypeScript files which are not part of a project
is pointles, since the TypeScript files are part of the project.Page URL
https://learn.microsoft.com/en-us/aspnet/core/client-side/using-grunt?view=aspnetcore-6.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/client-side/using-grunt.md
Document ID
5ea39e72-fcfc-ddbe-2f4d-f4166dfbe5a8
Article author
@Rick-Anderson