Adding PrepareForBuildDependsOn section as instructed disables PreComputeCompileTypeScriptWithTSConfig task #34415
Labels
aspnet-core/svc
razor-pages/subsvc
Source - Docs.ms
Docs Customer feedback via GitHub Issue
waiting-on-feedback
Waiting for feedback from SMEs
Description
The documentation suggests adding a
<PrepareForBuildDependsOn>...</PrepareForBuildDependsOn>
section to integrate TypeScript compilation into the project, however doing so will cause thePreComputeCompileTypeScriptWithTSConfig
task to be skipped, possibly because thetsconfig.json
file is not yet available in the content file list at that stage in the build? The end result is thattsconfig.json
cannot be used when thePrepareForBuildDependsOn
element is added as instructed in the documentation.This is potentially additionally a more critical issue in the .net 9 SDK, as it appears the build will error at the static file fingerprinting stage if the
PrepareForBuildDependsOn
element is NOT added.Page URL
https://learn.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-8.0&tabs=visual-studio#typescript-integration
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/razor-pages/ui-class.md
Document ID
fd116d00-0dc7-efaf-c714-34d77b345a05
Article author
@tdykstra
Related Issues
The text was updated successfully, but these errors were encountered: