build: Copy configuration profiles to publish dir

This commit is contained in:
John Colvin committed 2024-11-29 14:57:44 +00:00
1 parent 8933523731
commit bcbcdfcfa5
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