简体   繁体   English

VS.Net发布后事件

[英]VS.Net Post Build Event

I have a very simple problem. 我有一个非常简单的问题。

My VS.Net output DLL needs to be registered as a COM Callable Wrapper. 我的VS.Net输出DLL需要注册为COM可调用包装器。 This is a DLL that takes forever to unregister and register. 这是一个DLL,需要永久注销和注册。

Is there any way I can do this unregister and register in the post build event only when I run the application rather than doing it after everytime I compile successfully? 有什么方法可以让我仅在运行应用程序时注销并在构建后事件中注册,而不是每次成功编译后都进行注册?

Thanks 谢谢

Narayanan 那拉雅南

Create a second empty project file. 创建第二个空项目文件。 Add a Reference to your original project. 添加对原始项目的引用。 Put your post-build scripts in the second project file. 将构建后脚本放在第二个项目文件中。

Choose the original project to compile without post-build. 选择原始项目进行编译,而无需后期构建。

Choose the second project to compile with post-build. 选择第二个项目以进行后期编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM