Skip to content

Commit ed16185

Browse files
committed
Auto-deploy plugin artifacts after build
1 parent 41869d7 commit ed16185

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

TurboSamplePlugin/TurboSamplePlugin.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<SelfContained>false</SelfContained>
66
<EnableDynamicLoading>true</EnableDynamicLoading>
77
<BuildProjectReferences>false</BuildProjectReferences>
8+
<TurboPluginDeployRoot Condition="'$(TurboPluginDeployRoot)' == ''">..\..\turbo-cloud\Turbo.Main\bin\$(Configuration)\net9.0\plugins\TurboSamplePlugin</TurboPluginDeployRoot>
89
</PropertyGroup>
910
<ItemGroup>
1011
<None
@@ -52,4 +53,12 @@
5253
ExcludeAssets="runtime"
5354
/>
5455
</ItemGroup>
56+
57+
<Target Name="DeployTurboPluginArtifacts" AfterTargets="Build">
58+
<MakeDir Directories="$(TurboPluginDeployRoot)" />
59+
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(TurboPluginDeployRoot)" SkipUnchangedFiles="true" />
60+
<Copy SourceFiles="$(MSBuildProjectDirectory)\manifest.json" DestinationFolder="$(TurboPluginDeployRoot)" SkipUnchangedFiles="true" />
61+
<Copy SourceFiles="$(TargetDir)$(AssemblyName).pdb" DestinationFolder="$(TurboPluginDeployRoot)" SkipUnchangedFiles="true" Condition="Exists('$(TargetDir)$(AssemblyName).pdb')" />
62+
<Copy SourceFiles="$(TargetDir)$(AssemblyName).deps.json" DestinationFolder="$(TurboPluginDeployRoot)" SkipUnchangedFiles="true" Condition="Exists('$(TargetDir)$(AssemblyName).deps.json')" />
63+
</Target>
5564
</Project>

0 commit comments

Comments
 (0)