来自的"OSVersion"的值无效 [英] Invalid value for 'OSVersion' from

查看:492
本文介绍了来自的"OSVersion"的值无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi ,

语言:C#

.NET 4.0框架

Windows应用程序.

Windows application.

VS2012

我从Microsoft.Common获取了'OSVersion'的无效值.vs2012中的Targets构建错误

 I am getting a Invalid value for 'OSVersion' from Microsoft.Common.Targets build error in vs2012

我尝试了以下一个

I tried the below one

http://social .msdn.microsoft.com/Forums/zh-CN/msbuild/thread/d1117ffb-de40-4c4f-88c3-77214208ac9f

添加

<PropertyGroup>
    <OSVersion></OSVersion>
</PropertyGroup>

suppress the error when you build solution .But while publising it gives

签名时发生错误:密钥在指定状态下无效."-它来自Microsoft.Common.Targets文件.

"An error occurred while signing: Key not valid for use in specified state."--It is orginating from Microsoft.Common.Targets file.

   .过去的6个月中,我一直没有出现此问题.今天浮出水面.

   .I have been working on last 6 months without this issue .It surfaced today.

http://social.msdn.microsoft.com/Forums/zh-CN/vssetup/thread/53185c7b-4b7e-4693-ba98-1e1d583661d2/?prof=required

我尝试了以上解决方案中,我打开文件并查找属性.但是我找不到.

I tried the above  solution, i opened the file and looked for the attributes .but I could not able to find .

它不存在.请让我知道其他处理问题的方法.

It dosen't exist .Please let me know other way to handel issue.

Harishankar

Harishankar

推荐答案

你好Harishakar,

Hello Harishakar,

谢谢您的发帖.

我们有一个针对此问题的MSBuild论坛.为了提供更好的支持,我将移动此线程.

最诚挚的问候,


这篇关于来自的"OSVersion"的值无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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