是否有可能设置OriginalFilename属性.NET程序集与Visual Studio?有可能、属性、程序、OriginalFilename

2023-09-06 14:18:39 作者:再没有了痴狂

我的理解(这很可能是错误的)是很容易通过在Visual Studio中建立一个VERSIONINFO资源文件设置为C ++ DLL或EXE的OriginalFilename属性。

My understanding (which may well be faulty) is that it is easy to set the OriginalFilename property for a C++ DLL or EXE by including a VERSIONINFO resource file in the Visual Studio build.

但我找不到任何办法设定OriginalFilename一个C#编译的。它显然是始终设定为正在构建的输出文件的名称。

But I can't find any way of setting OriginalFilename for a C# build. It is apparently always set to the name of the output file being built.

我真的希望能够如果可能的话指定。有任何想法吗?谢谢你。

I'd really like to be able to specify this if possible. Any ideas? Thanks.

推荐答案

OK,没有答案,现在我已经找到了一个解决办法。

OK, no answers, and now I've found a workaround.

这篇文章在这里计算器是非常有益的: How做我设置的版本信息现有的名为.exe,.dll?

This article here at StackOverflow was very helpful: How do I set the version information for an existing .exe, .dll?

害得我用C#编写这个资源处理项目: HTTP://resourcelib.$c$cplex.com/

Which led me to this resource manipulation project written in C#: http://resourcelib.codeplex.com/

所以,我要做的就是修改DLL文件,他们已经建成之后。

So what I'm going to do is to modify the DLLs after they've been built.

编辑(2015年三月):这是一个老帖子,但我可以看到仍然有它的一些兴趣。自从四年前的ResourceLib C#文件资源管理库开源项目已移动,并且现在在这里:的https:/ /github.com/dblock/resourcelib

Edit (March 2015): This is an old posting, but I can see there is still some interest in it. The "ResourceLib C# File Resource Management Library" open source project has moved since four years ago, and is now here: https://github.com/dblock/resourcelib

 
精彩推荐