Assemblyinfo.vb信息未更新为输出 [英] Assemblyinfo.vb info not updating to output

查看:54
本文介绍了Assemblyinfo.vb信息未更新为输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新信息(版本编号/文件信息等等)在发布期间更新AssemblyInof.vb文件,以解决解决方案中的所有项目..

此部分似乎工作得很好..问题是,在构建项目时,新信息不会被不再复制到输出文件



- 这个使用早些时候工作大约1年左右



现在看来,更新AssemblyInfo.vb文件的唯一方法是通过Project设置??? - 好像输出中使用的实际数据现在是从另一个文件中提取的?



格式似乎没问题,因为My Project正确选择了格式窗口......(检查它是百万次..)



任何想法缺少什么或如何让工作室使用更新的AssemblyInfo.vb文件?< br $>




I'm updating the AssemblyInof.vb file during post build with new Info (version Number / File Info and so on ... ) for all my projects within a solution ..
This part seems to work just fine .. the problem is, that when building the project, the new info will not get copied "Anymore" to the output files

- This used to work earlier about 1 Years or so

It now seems , that the only way to update the AssemblyInfo.vb file is trough the Project settings ??? - It seems as if the actual data used in the output, is now pulled from another file?

The formatting seems OK as it is picked up properly by the My Project window ...(checked it a "million" times..)

Any ideas what's missing or how to get studio to use the updated AssemblyInfo.vb file ?


<Assembly: AssemblyVersion("2.0.1.10")>
<Assembly: AssemblyFileVersion("2.0.1.9")>

推荐答案

你所要求的根本没有意义。这是您不理解的:此文件是常规的源文件,与任何其他源代码文件没有区别。它将程序集级属性应用于程序集。除了由项目生成的PE文件(EXE,DLL等)之外,没有任何东西可以用于输出或更新到输出。您可以在OS shell上看到的文件属性中看到这部分源代码的结果。



这里没有功能问题。你唯一的问题就是理解。您需要清楚地了解什么是项目,装配,装配模块以及构建的实际功能。请学习它,克服这种困惑。



-SA
What you are asking makes no sense at all. This is what you don't understand: this file is a regular source file, no different from any other source code file. It applies assembly-level attributes to your assembly. Nothing is supposed to go to output, or "update to output", except the PE file which is produced by your project (EXE, DLL, etc.). You can see the result of this part of source code on the file Properties you can see through the OS shell.

You have no functional problem here. You only problem is just understanding. You need to get clear understanding what is project, assembly, assembly modules, and what build really does. Please learn it, to overcome this confusing.

—SA


这篇关于Assemblyinfo.vb信息未更新为输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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