VS 2012 RC中的sn.exe和代码约定 [英] sn.exe and Code Contracts in VS 2012 RC

查看:56
本文介绍了VS 2012 RC中的sn.exe和代码约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我全新安装了Windows 8 Build 8400 64位


我安装了SQL Server 2012 LocalDB


已安装VS 2012 RC


安装代码合同1.4.50327.0


构建失败,并显示:


错误  3 命令"" C:\Program Files(x86)\ Mysoftoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\ / R"obj \Debug \ AsycudaLibrary.dll" " ASYCUDALibrary.snk""使用代码9009退出。  AsycudaLibrary


我可以编辑C:\Program Files(x86)\ Mycoftoft \Contracts\MsBuild\v4.0 \ Microsoft.CodeContracts .targets指的是sn.exe的正确位置(即"C:\Program Files(x86)\ Macrooft SDKs \ Windows \\\\\\\\\\\\\\\\\\\ ; C:\Program Files
(x86)\ Mycoftoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ;&NBSP;&NBSP;&NBSP;&NBSP; < CodeContractsSnExe>" $(CodeContractsSdkPath)Bin\sn.exe"< / CodeContractsSnExe>



&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < CodeContractsSnExe>" $(CodeContractsSdkPath)Bin\NETFX 4.0 Tools\sn.exe"< / CodeContractsSnExe>


但是这是非常稀松的装置,以及每一个开发人员遇到此问题需要花一些时间来找到解决方案,这确实很昂贵。因此,一个适当的,开箱即用的解决方案将是伟大的。是否有意这样做?

解决方案

同样的问题。希望MS能解决这个问题。



欢呼


Hi,

I have a fresh installation of Windows 8 Build 8400 64 bit

I installed SQL Server 2012 LocalDB

Installed VS 2012 RC

Install Code Contracts 1.4.50327.0

Build fails with:

Error 3 The command ""C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bin\sn.exe" /R "obj\Debug\AsycudaLibrary.dll" "ASYCUDALibrary.snk"" exited with code 9009. AsycudaLibrary

I can edit C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v4.0\Microsoft.CodeContracts.targets to refer to the correct place for sn.exe (which is "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools" rather than "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bin\sn.exe") by changing

      <CodeContractsSnExe>"$(CodeContractsSdkPath)Bin\sn.exe"</CodeContractsSnExe>

to

      <CodeContractsSnExe>"$(CodeContractsSdkPath)Bin\NETFX 4.0 Tools\sn.exe"</CodeContractsSnExe>

but this is very sloppy, and means every developer encountering this problem needs to spend some time finding the solution, which is really costly. So, a proper, out of the box solution would be great. Is there any intention to do this?

解决方案

Same issue. Hope that MS will fix this problem.

cheers


这篇关于VS 2012 RC中的sn.exe和代码约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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