错误“MSB3176:指定的最低所需版本大于当前发布版本”
我有运行 CruiseControl.NET 的构建服务器,最近它开始在我的一个项目(.NET 2.0、C#)上抛出此错误:
MSB3176:指定的最低所需版本高于当前发布版本。 请指定小于或等于当前发布版本的版本。 在 Microsoft.Common.targets(2238, 9)
我已经搜索网络,但找不到解决方案。
有什么建议么?
I've got build server running CruiseControl.NET and recently it started throwing this error on one of my projects (.NET 2.0, C#):
MSB3176: Specified minimum required version is greater than the current publish version. Please specify a version less than or equal to the current publish version. in Microsoft.Common.targets(2238, 9)
I've search the net, but could not find a solution.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
检查您的项目的属性。 版本号位于“发布”选项卡上。 您应该将发布版本与最低版本进行比较(“更新”按钮)。
Check the properties of your project. The version numbers are on the 'publish' tab. You should compare the publish version with the minimum version ('Updates' button).
项目属性具有发布版本(在“发布”选项卡上)和(可选)最低版本(在“发布”选项卡上的“更新”按钮上)。 两者都与任何程序集版本无关,仅用于 ClickOnce。 如果指定了最低版本,则它必须符合逻辑(即不高于主版本)。
在 csproj 中,这是 ApplicationVersion/ApplicationRevision 和 MaximumRequiredVersion 元素。
The project properties have a publish version (on the Publish tab), and an (optional) minimum version (on the Updates button on the Publish tab). Neither is related to any assembly version, and is just used for ClickOnce. If a minimum version is specified, it must be logical (i.e. not higher than the main version).
In the csproj, this is the ApplicationVersion/ApplicationRevision and MinimumRequiredVersion elements.
对我来说,有人将发布选项更改为“该应用程序仅在线可用”。 从而导致了上述错误。 如果他们也删除了发布位置中的文件,也许它会起作用,但由于它是离线应用程序,因此不会仅切换到在线状态,只会给出错误。 我们手动卸载并重新安装它们,然后下次发布时我们会再次收到错误。 切换到“该应用程序也可以离线使用”,问题得到解决。 如果最初将其设置为在线,那么它可能会工作得很好。
For me, someone had switched the publish options to be "The application is available online only". Which caused the above error. Maybe it would have worked if they had also deleted the files in the publish location, but as it was the offline application wouldn't switch to online only and would just give the error. we manually uninstalled and re-installed them and then the next time we published we'd get the error again. Switched to "The application is available offline as well" and the problem was fixed. If it had been originally setup to be online only it probably would have worked fine.