Skip to content

Adding PrepareForBuildDependsOn section as instructed disables PreComputeCompileTypeScriptWithTSConfig task #34415

@JeroMiya

Description

@JeroMiya

Description

The documentation suggests adding a <PrepareForBuildDependsOn>...</PrepareForBuildDependsOn> section to integrate TypeScript compilation into the project, however doing so will cause the PreComputeCompileTypeScriptWithTSConfig task to be skipped, possibly because the tsconfig.json file is not yet available in the content file list at that stage in the build? The end result is that tsconfig.json cannot be used when the PrepareForBuildDependsOn 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions