fix: do not publish manifest.json to static files folder.

This commit is contained in:
lchen committed 2026-10-21 14:57:52 +08:00
1 parent 5c81ed18b2
commit 27623a4e93
4 files changed
+16 -18

No files matched your search

+6 -3
View File
@@ -16,9 +16,6 @@
<None Update="Templates\**\*.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="wwwroot\dist\.vite\manifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
@@ -32,6 +29,12 @@
<Message Importance="high" Text="Changes detected. Running npm run build..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
<Touch Files="$(FrontendStampFile)" AlwaysCreate="true" />
<ItemGroup>
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)\wwwroot\dist\.vite\manifest.json">
<RelativePath>Templates\manifest.json</RelativePath>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>