VS 2005安装程序项目版本号

时间:2022-08-26 07:21:53

I am getting this error now that I hit version number 1.256.0: Error 4 Invalid product version '1.256.0'. Must be of format '##.##.####'

我现在遇到版本号1.256.0时出现此错误:错误4无效的产品版本“1.256.0”。格式必须为'##。##。####'

The installer was fine with 1.255.0 but something with 256 (2^8) it doesn't like. I found this stated on msdn.com: The Version property must be formatted as N.N.N, where each N represents at least one and no more than four digits. (http://msdn.microsoft.com/en-us/library/d3ywkte8(VS.80).aspx)

安装程序很好用1.255.0但256(2 ^ 8)它不喜欢的东西。我在msdn.com上发现了这一点:Version属性必须格式化为N.N.N,其中每个N代表至少一个且不超过四个数字。 (http://msdn.microsoft.com/en-us/library/d3ywkte8(VS.80).aspx)

Which would make me believe there is nothing wrong 1.256.0 because it meets the rules stated above.

这会让我相信1.256.0没有错,因为它符合上述规则。

Does anyone have any ideas on why this would be failing now?

有没有人对为什么现在会失败有任何想法?

2 个解决方案

#1


0  

This article says there is a major and minor max of 255.

这篇文章说有一个主要和次要的最大值为255。

http://msdn.microsoft.com/en-us/library/aa370859(VS.85).aspx

#2


0  

The link you reference says " This page is specific to Microsoft Visual Studio 2008/.NET Framework 3.5", but you're talking about vs2005.

您引用的链接显示“此页面特定于Microsoft Visual Studio 2008 / .NET Framework 3.5”,但您谈论的是vs2005。

My guess: a 0-based range of 256 numbers ends at 255, therefore trying to use 256 exceeds that and perhaps they changed it for VS2008

我的猜测:基于0的256个数字范围以255结束,因此尝试使用256超过了这个数字,也许他们改为VS2008

Edit: I looked again and see where that link can be switched to talk about VS2005, and gives the same answer. I'm still sticking to my 0-255 theory though. Wouldn't be the first time this week I came across something incorrect in MSDN docs.

编辑:我再看一遍,看看哪个链接可以切换到谈论VS2005,并给出相同的答案。我仍然坚持我的0-255理论。本周我不会第一次在MSDN文档中遇到不正确的内容。

#1


0  

This article says there is a major and minor max of 255.

这篇文章说有一个主要和次要的最大值为255。

http://msdn.microsoft.com/en-us/library/aa370859(VS.85).aspx

#2


0  

The link you reference says " This page is specific to Microsoft Visual Studio 2008/.NET Framework 3.5", but you're talking about vs2005.

您引用的链接显示“此页面特定于Microsoft Visual Studio 2008 / .NET Framework 3.5”,但您谈论的是vs2005。

My guess: a 0-based range of 256 numbers ends at 255, therefore trying to use 256 exceeds that and perhaps they changed it for VS2008

我的猜测:基于0的256个数字范围以255结束,因此尝试使用256超过了这个数字,也许他们改为VS2008

Edit: I looked again and see where that link can be switched to talk about VS2005, and gives the same answer. I'm still sticking to my 0-255 theory though. Wouldn't be the first time this week I came across something incorrect in MSDN docs.

编辑:我再看一遍,看看哪个链接可以切换到谈论VS2005,并给出相同的答案。我仍然坚持我的0-255理论。本周我不会第一次在MSDN文档中遇到不正确的内容。