Signing a vb.net class using a post build event macro

  • Thread starter Thread starter Graham
  • Start date Start date
G

Graham

We use buildit to automatically build all of our solutions every
night. In C# we are able to call a batch file for the post build
event and sign the assembly for the GAC using our private/public key
pair.

Now, in VB.net there's no easy way to do this. I saw that you can
create a macro that catches the bldevents.OnBuildDone event, but this
is only for when the solution finishes. We have an InstallShield X
project as part of the assembly, so signing the assembly after the
solution finishes building is too late. Also, I don't see any real
documentation on this EnvDTE class, how can I get the path to a
certain project's output?

Does any have any experience or suggestions with how to proceed? I
think we will just separate the installer project from the solution,
but it'd be nice to just have one solution either build or not...

Thanks,
Graham
 
I'd just create a "dummy" c# project in the solution with a dependency on
the VB project that has a post-build event. It's a little bit of a hassle,
but hopefully that'll be fixed in the next version.
-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top