VS2010 依赖于 SQL Server Compact 3.5 的 IntelliSense? [英] VS2010 depends on SQL Server Compact 3.5 for IntelliSense?

查看:37
本文介绍了VS2010 依赖于 SQL Server Compact 3.5 的 IntelliSense?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近刚刚在我的 WinXP 机器上安装了 VS2010 Professional(试用版).知道我只需要它用于 VC++ 项目(没有数据库),我未选中"SQL Server 的安装选项.

I've just recently installed VS2010 Professional (trial) on my WinXP machine. Knowing that I only needed it for a VC++ project (with no databases), I "unchecked" the install options for SQL Server.

然而,当我尝试创建一个新项目时(我已经尝试了 MFC 和 Win32 项目类型的所有变体),我看到了一个可爱的错误消息框:

However, when I try to create a new project (I've tried all variations of MFC and Win32 project types), I am presented with a lovely error message box:

创建或打开 C++ 浏览数据库文件 c:\path-to-project\testProject.sdf 时出错.C++ 项目将无法使用 IntelliSense 和浏览信息.

An error occurred while creating or opening the C++ browsing database file c:\path-to-project\testProject.sdf. IntelliSense and browsing information will not be available for C++ projects.

确保安装了 Microsoft SQL Server Compact 3.5 并且没有其他应用程序正在访问该文件.如果此问题仍然存在,请删除该文件并重新打开解决方案.

Ensure that Microsoft SQL Server Compact 3.5 is installed and that no other applications are accessing the file. If this problem persists, delete the file and reopen the solution.

如果我点击确定"VS 仍将允许我开发",除了当我尝试向控件添加事件处理程序时.然后我得到:

If I hit "Ok" VS will still allow me to "develop," except for when I try to add an event handler to a control. Then I am given:

此页面上的脚本发生错误.

An error has occurred in the script on this page.

解决方案的源代码数据库可能尚未打开.请确保该解决方案未在 Visual Studio 的另一个副本中打开,并且它的 .sdf 文件不是只读的.

The solution's source code database may not have been opened. Please make sure the solution is not open in another copy of Visual Studio, and this its .sdf file is not read only.

我应该检查安装 SQL Server 选项吗?如果是这样,为什么?我不想要它,也不会使用它.或者更确切地说,我需要做些什么才能使工作没有错误?

Should I have checked the install SQL Server option? If so, why? I don't want it, nor will I be using it. Or rather, what do I need to do to make things work without the errors?

编辑/解决方案所以,事实证明,由于我安装的机器没有连接到互联网,所以它没有得到那些精彩"的内容.Microsoft 更新,巧合的是它会为我安装 SQL Server Compact!非常感谢@ErikEJ 的澄清.

EDIT/Solution So, it turns out that since the machine I was installing on is not connected to the internet, it was not getting those "wonderful" Microsoft updates, which coincidentally would've installed SQL Server Compact for me! much thanks to @ErikEJ for the clarification.

推荐答案

您必须在 Visual Studio 中安装 Sql Server Compact 3.5,因为 MFC 应用程序项目默认使用临时数据库.没有此数据库,IntelliSense、F12Shift+F12 和查看类图将不可用.

You have to install Sql Server Compact 3.5 with your Visual Studio because MFC application projects use a temporary database by default. IntelliSense, F12, Shift+F12 and viewing class diagrams will not be available without this database.

IntelliSense 在开发 c# 应用程序时仍然有效,但在开发 MFC 应用程序时无效.

IntelliSense will still work when developing c# applications, but not when developing MFC applications.

这篇关于VS2010 依赖于 SQL Server Compact 3.5 的 IntelliSense?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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