是否有可能设置OriginalFilename属性.NET程序集与Visual Studio? [英] Is it possible to set the OriginalFilename property for a .Net assembly with Visual Studio?

查看:254
本文介绍了是否有可能设置OriginalFilename属性.NET程序集与Visual Studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的理解(这很可能是错误的)是很容易通过在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.

这篇文章在这里计算器是非常有益的: <一href="http://stackoverflow.com/questions/284258/how-do-i-set-the-version-information-for-an-existing-exe-dll">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

这篇关于是否有可能设置OriginalFilename属性.NET程序集与Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆