910802-$ Assembly在AssemblyInfo.cs中转换为-1 [英] 910802 - $Build is converted into -1 in AssemblyInfo.cs

查看:99
本文介绍了910802-$ Assembly在AssemblyInfo.cs中转换为-1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

i get this error:

error CS0647: Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '1.0.-1.2552' is invalid'


在AssemblyInfo.cs中.在$ Build部分中似乎有问题,该部分转换为-1!
它来自哪里?
我该如何解决这个问题?
thx


in AssemblyInfo.cs. it seems that something is wrong in $Build section which is converted into -1!
where does it come from?
how can i resolve this problem?
thx

推荐答案

将构建部分转换为-1!
它来自哪里?
我该如何解决这个问题?
thx
Build section which is converted into -1!
where does it come from?
how can i resolve this problem?
thx


转到位于解决方案属性"文件夹中的AssemblyInfo.cs.在这里可以找到版本属性(类似于[assembly:AssemblyVersion ...]).
另一种方法是右键单击您的项目->属性->发布.
检查那里是否出了问题...如果版本号对您来说不重要,那么也许重置值会有所帮助.

如果版本对您很重要,那么也许此链接可以帮助您
Go to your AssemblyInfo.cs located in the Properties folder of your solution. There you can find the version attribute (something like [assembly: AssemblyVersion ...]).
Another way would be to right-click on your project -> properties -> publish.
Check if something went wrong there ... if the version number is not important to you then maybe resetting the value would help.

If the version is important to you then maybe this link can help you http://insomniacgeek.com/error-emitting-system-reflection-assemblyversionattribute-attribute-the-version-specified-1-0-080928-1-is-invalid/


这篇关于910802-$ Assembly在AssemblyInfo.cs中转换为-1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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