build: Copy configuration profiles to build dir
So they are readily available to publish/deploy scripts.
This commit is contained in:
1 parent
4272f6dc41
commit
b6ee5335e5
5 files changed
+33
No files matched your search
@@ -29,6 +29,10 @@
|
||||
<ProjectReference Include="..\..\client\spark_websocket\spark_websocket.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ConfigurationProfile Include="Configurations\*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- <ItemGroup>
|
||||
<Content Update="wwwroot\alt-index.html" CopyToPublishDirectory="Never" />
|
||||
</ItemGroup> -->
|
||||
|
||||
@@ -20,4 +20,8 @@
|
||||
<ProjectReference Include="..\PubSub\PubSub.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ConfigurationProfile Include="Configurations\*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -15,4 +15,8 @@
|
||||
<ProjectReference Include="..\PubSub\PubSub.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ConfigurationProfile Include="Configurations\*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -88,4 +88,10 @@
|
||||
</ProtoService>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
<ItemDefinitionGroup>
|
||||
<ConfigurationProfile>
|
||||
<OutDir>$(OutputPath)\Configurations\$(MSBuildProjectName)</OutDir>
|
||||
</ConfigurationProfile>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
</Project>
|
||||
@@ -36,6 +36,14 @@
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target
|
||||
Name="CopyConfigurationProfiles"
|
||||
AfterTargets="Build"
|
||||
Condition="'@(ConfigurationProfile)'!=''"
|
||||
Inputs="%(ConfigurationProfile.Identity)"
|
||||
Outputs="%(ConfigurationProfile.OutDir)%(ConfigurationProfile.Identity)">
|
||||
<Copy SourceFiles="%(ConfigurationProfile.FullPath)" DestinationFolder="%(ConfigurationProfile.OutDir)" />
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
Run this after GetAssemblyVersion because it happens after the Xaml compiler
|
||||
@@ -157,6 +165,13 @@
|
||||
<Delete Files="$([MSBuild]::MakeRelative(%(Parser.RootDir)%(Parser.Directory), $(ParserOutputPath)))\%(Parser.FileName).Parser.g.cs" />
|
||||
</Target>
|
||||
|
||||
<Target
|
||||
Name="CleanConfigurationProfiles"
|
||||
AfterTargets="Clean"
|
||||
Condition="'@(ConfigurationProfile)'!=''">
|
||||
<Delete Files="%(ConfigurationProfile.OutDir)\%(ConfigurationProfile.Identity)" />
|
||||
</Target>
|
||||
|
||||
<Target
|
||||
Name="Test"
|
||||
DependsOnTargets="Build"></Target>
|
||||
|
||||
Reference in new issue
Block a user