在非开发机器上使用C#类库 [英] Using C# Class Library On Non-Development Machine
问题描述
我有一个COM可见的C#类库,可以从Visual C ++ 6中调用它.它工作正常.
I have a C# class library that is COM visible and can be called from Visual C++ 6. It works fine.
可能是一个愚蠢的问题,但是即使在谷歌搜索了一个答案之后,我也找不到.如何在另一台非开发机器上复制并注册它?我的机器上正在使用gacutil
和regasm
.但是,这些不在另一台计算机上.我似乎只能在Google上找到有关创建安装应用程序的唯一答案,但这对于只能在内部使用的东西来说是过大了.
Probably a stupid question, but even after Googling for an answer I can't find one. How do I copy and register this on another non-development machine? My machine has gacutil
and regasm
on it which I am using. However, these are not on the other machine. The only answers I seem to be able to find on Google talk about creating an installation app, but this is overkill for something that will only ever be used internally.
推荐答案
Regasm
和Gacutil
都与.NET Framework一起安装(例如,默认情况下,对于<3.5sp1,在C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
中).
Regasm
and Gacutil
are both installed with the .NET Framework (in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
for 3.5sp1, for example, by default).
由于仍然需要安装框架,因此该框架应该存在于每个系统上.
Since you'll need the framework installed anyways, this should exist on every system.
这篇关于在非开发机器上使用C#类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!