visual studio 2010中的警告 [英] Warnings in visual studio 2010
问题描述
亲爱的每个人
i使用visual studio 2010制作一个更新程序,连接到PHP网络服务并获取PC更新
一切顺利,但我在视觉工作室程序中得到4警告,我无法解决,所以请尽可能建议我
警告1 无法解析此引用。无法找到程序集Microsoft.VisualStudio.QualityTools.UnitTestFramework,Version = 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a。检查以确保磁盘上存在程序集。如果您的代码需要此引用,则可能会出现编译错误。
警告2 引用找不到组件Microsoft.VisualStudio.QualityTools.UnitTestFramework。
警告3 不能在路径'c:\Program Files(x86)中找到先决条件'.NET Framework 2.0(x86)'\\'Microsoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ br $> b $ b
警告4 项目中.NET Framework的目标版本与.NET Framework启动条件版本2.0.50727不匹配。更新.NET Framework启动条件的版本,以匹配高级编译选项对话框(VB)或应用程序页面(C#,F#)中的.NET Framework的目标版本。
谢谢提前和美好的一天
Dear everyone
i am using visual studio 2010 to make an updater application that connects to PHP web-service and get updates to PC
everything is going well but i get 4 warning in visual studio program and i can not solve it, so please advice me if possible
Warning 1 Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Warning 2 The referenced component 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' could not be found.
Warning 3 Could not find prerequisite '.NET Framework 2.0 (x86)' in path 'c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\'
Warning 4 The target version of the .NET Framework in the project does not match the .NET Framework launch condition version '2.0.50727'. Update the version of the .NET Framework launch condition to match the target version of the.NET Framework in the Advanced Compile Options Dialog Box (VB) or the Application Page (C#, F#).
thanks in advance and have a nice day
推荐答案
警告1:看起来像一个参考这个DLL丢失了。再次添加此框架DLL。请注意,安装Visual Studio时需要安装单元测试框架。
警告2:与警告1相同
警告3:您是否安装了框架2.0?尝试更改项目的运行时版本。
警告4 :与3.相同更改运行时版本。
Warning 1: Looks like a reference to this dll is missing. Add this framework dll again. Note that you will need the Unit Testing framework installed when you installed Visual Studio.
Warning 2: Same as Warning 1
Warning 3: Have you got framework 2.0 installed? Try changing the runtime version of your project.
Warning 4: Same as 3. Change the runtime version.
for 1st你没有提到dll
第3和第4个检查项目属性中的目标.net框架
for 1st and you have not reffered dll
for 3rd and 4th check the target .net framework in project properties
这篇关于visual studio 2010中的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!