Is it possible to call Assembly Patching from Powershell

jeavon's Avatar


07 Mar, 2017 09:41 AM

I have a scenario where I would like to call Assembly Patching from Powershell, is this possible?

I use the in built patching perfectly but after a "release build" I would like to patch the assembly for the next version, I will then commit the AssemblyInfo.cs back to git.



  1. Support Staff 1 Posted by Ilya Finkelshte... on 07 Mar, 2017 07:15 PM

    Ilya Finkelshteyn's Avatar

    Hi Jeavon,

    Currently AssemblyInfo patching happens at specific moment in build pipeline. This year we plan to implement goto functionality to allow more flexible scenarios.

    For now I can propose 2 workarounds:

    • Do it manually, this gist can be useful
    • Create separate project which will just patch the assembly and and commit it back to git. Call this project build with PowerShell using AppVeyor API at on_success stage of Release build.

    Sorry for not providing with straightforward solution, hope one of workarounds helps.

    Thank you,

  2. 2 Posted by jeavon on 06 Apr, 2017 10:08 AM

    jeavon's Avatar

    Thanks for this, I'm going to give it a try

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac