我在C#中有一个解决方案,我需要更新资源文件中的版本(.resx文件是xml文件),我已经在C ++资源文件(不是xml文件)中做到了,我想知道是否可以使用类似在我的C#项目中
You can't do it directly from Visual Studio.
If you invoke the csc
compiler directly, you can embed a .res file using the /win32res:
flag on the command line. (Use the rc
tool to generate a .res from a .rc.)
Alternatively, you could build your EXE through Visual Studio as normal, then add a post build step that invokes ildasm
followed by ilasm
. ilasm
supports the /resource=
command line flag.
不,您不能,但是有一些转换方法,请参见此链接: 从Win32资源构建托管资源
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.