Advertisement
apieceoffruit

post build step

Apr 16th, 2023 (edited)
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1.   <Target Name="CopyOutputDllsToPlugins" AfterTargets="Build">
  2.         <PropertyGroup>
  3.             <PluginsFolder>..\..\U.SearchingAndCaching\Assets\Plugins\JasonStorey</PluginsFolder>
  4.             <OutputDll>$(TargetDir)$(TargetName)$(TargetExt)</OutputDll>
  5.         </PropertyGroup>
  6.         <ItemGroup>
  7.             <DllToCopy Include="$(OutputDll)" />
  8.         </ItemGroup>
  9.         <MakeDir Directories="$(PluginsFolder)" Condition="!Exists('$(PluginsFolder)')" />
  10.         <Copy SourceFiles="@(DllToCopy)" DestinationFolder="$(PluginsFolder)" SkipUnchangedFiles="true" />
  11.         <Message Text="Output DLLs have been copied to the 'plugins' folder" Importance="high" />
  12.     </Target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement