Skip to content

Commit 5dbd102

Browse files
committed
Streamline Publish process
1 parent 915ab6e commit 5dbd102

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CompactGUI/CompactGUI.vbproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
45
<OutputType>WinExe</OutputType>
56
<TargetFramework>net9.0-windows</TargetFramework>
67
<RootNamespace>CompactGUI</RootNamespace>
@@ -72,4 +73,25 @@
7273
<ProjectReference Include="..\CompactGUI.Watcher\CompactGUI.Watcher.vbproj" />
7374
</ItemGroup>
7475

76+
<Target Name="RenamePublishedExe" AfterTargets="Publish" Condition="'$(IsMonolithic)' == 'true'">
77+
<Move SourceFiles="$(PublishDir)CompactGUI.exe"
78+
DestinationFiles="$(PublishDir)CompactGUI.mono.exe"/>
79+
80+
</Target>
81+
82+
<PropertyGroup>
83+
<FinalPublishDir>$(ProjectDir)bin\publish\FinalOutput\</FinalPublishDir>
84+
</PropertyGroup>
85+
86+
<Target Name="MovePublishedFiles" AfterTargets="Publish">
87+
<Message Text="Moving published files to FinalOutput..." Importance="high" />
88+
89+
<ItemGroup>
90+
<PublishedFiles Include="$(PublishDir)**\*" />
91+
</ItemGroup>
92+
93+
<Copy SourceFiles="@(PublishedFiles)" DestinationFolder="$(FinalPublishDir)" SkipUnchangedFiles="true" />
94+
</Target>
95+
96+
7597
</Project>

0 commit comments

Comments
 (0)