build: Copy configuration profiles to publish dir

This commit is contained in:
John Colvin committed 2024-10-30 19:31:39 +00:00
1 parent 5da807b5f0
commit 922cf3170b
1 file changed
+9
+9
View File
@@ -45,6 +45,15 @@
<Copy SourceFiles="%(ConfigurationProfile.FullPath)" DestinationFolder="%(ConfigurationProfile.OutDir)" />
</Target>
<Target
Name="CopyConfigurationProfilesToPublish"
AfterTargets="Publish"
Condition="'@(ConfigurationProfile)'!=''"
Inputs="%(ConfigurationProfile.Identity)"
Outputs="%(ConfigurationProfile.PublishOutDir)%(ConfigurationProfile.Identity)">
<Copy SourceFiles="%(ConfigurationProfile.FullPath)" DestinationFolder="%(ConfigurationProfile.PublishOutDir)" />
</Target>
<!--
Run this after GetAssemblyVersion because it happens after the Xaml compiler
and exists in both xaml and non-xaml projects. One of the (many) xaml compile