Skip to content

Typescript integration should include this snippet to make sure it removes outputs it deletes from the Content item group. #36543

@javiercn

Description

@javiercn

Description

The typescript integration should also include the following bit.

	<Target Name="RemoveDeletedTypeScriptOutputsFromContent" AfterTargets="TypeScriptDeleteCompilerOutput">
		<ItemGroup>
			<Content Remove="@(Content)" Condition="!Exists('%(FullPath)') And ('%(Extension)' == '.js' Or '%(Extension)' == '.map')" />
		</ItemGroup>
	</Target>

Page URL

https://learn.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-10.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

Platform Id

8edf3568-d182-224b-b7b2-4de60e04d74a

Article author

@tdykstra

Metadata

  • ID: 9fd019c7-ceb7-6ef3-26ba-6b44341b6fc5
  • PlatformId: 8edf3568-d182-224b-b7b2-4de60e04d74a
  • Service: aspnet-core
  • Sub-service: razor-pages

Related Issues

Metadata

Metadata

Assignees

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