Skip to content

Instantly share code, notes, and snippets.

@Calabonga
Created August 16, 2024 00:17
Show Gist options
  • Save Calabonga/237b84b50bd7cea2a0fb014244836b50 to your computer and use it in GitHub Desktop.
Save Calabonga/237b84b50bd7cea2a0fb014244836b50 to your computer and use it in GitHub Desktop.
Copy DLLs after Visual Studio Build
<Target Name="CopyDLLs" AfterTargets="Build">
<Message Text="Executing Copy Command Task" Importance="High" />
<PropertyGroup>
<PublishedCommandsDir>..\..\..\..\Calabonga.Commandex.Shell\PublishedCommands</PublishedCommandsDir>
</PropertyGroup>
<Copy SourceFiles="$(TargetDir)$(ProjectName).dll;$(TargetDir)$(ProjectName).pdb" DestinationFolder="$(PublishedCommandsDir)" />
<Message Text="Command $(ProjectName) successfully copied" Importance="High" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment