visual-studiobuildpost-build-event

VS Post Build Event


I would like to implement a post build event that performs the following actions

  1. A relative path copy of the DLL output (1 file, not all the debug jazz)
  2. A register the output DLL to GAC

How is this done?


Solution

  • Does that do you want?

    copy $(TargetPath) $(TargetDir)..\..\someFolder\myoutput.dll
    regasm $(TargetPath) 
    

    (Entered into the field for post-build step under project properties)