2011年5月10日更新的Visual Studio Productivity Power Tools版本10.0.20427.1正在创建<solution> .sln.docstates文件.
该文件的目的是什么?
我应该检查版本控制吗?
我有一个Windows服务解决方案,我正在尝试在VS2010中向Hermes(Opensource ebms消息服务器)Web服务添加服务引用.
我可以使用它的URL找到Web服务,但是当我尝试填充服务引用时,我在Visual Studio中遇到以下错误:
Error 8 Custom tool error: Failed to generate code for the service reference 'testService'. Please check other error and warning messages for details. C:\Users\Admin\documents\visual studio 2010\Projects\MyProject\MyProject.MessageHandler\Service References\testService\Reference.svcmap 1 1 MyProject.MessageHandler
Warning 6 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://service.ebms.edi.cecid.hku.hk/']/wsdl:portType[@name='EbmsStatusQuery']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://service.ebms.edi.cecid.hku.hk/']/wsdl:binding[@name='EbmsSoapHttpStatusQuery'] C:\Users\Admin\documents\visual studio 2010\Projects\MyProject\MyProject.MessageHandler\Service References\testService\Reference.svcmap 1 1 MyProject.MessageHandler
Warning 7 Custom tool warning: Cannot import wsdl:port …Run Code Online (Sandbox Code Playgroud) 我在Visual Studio 2010中的IntelliSense有一个非常烦人的问题:
偶尔(但并非总是 - 只是出于我的控制)Intellisense引擎选择"标记"一个选项,而不是实际选择它.这意味着我不必键入e n Enter以访问以"En ..."开头的默认选项,而是键入e n down Enter.
通常它会像这样工作一段时间,然后,突然间,我想要的行为又回来了.我的结论是有一些选项可以自动设置,而且我不知道如何控制.
如何确保始终选择默认选项,而不仅仅是"标记"?
供参考:这是Visual Studio 2010 RC,带有CodeRush Xpress 10.1.
intellisense visual-studio-2010 coderush-xpress visual-studio visual-studio-2010-rc
我安装了Microsoft SQL Server 2008.
当我启动SQL Server Management Studio(SSMS)时,我得到Connect to Server一个带有空白文本框的登录窗口Server name.我尝试了很多名字,但我无法解决.
如何查找/获取服务器名称?
我有一个包含3个项目的解决方案.我需要将视图从一个项目复制到另一个项目.我可以通过post build事件复制创建的DLL,如下所示:

所以我想将项目中的文件'/Views/ModuleHome/Index.cshtml'复制到项目2中的文件夹中.如何通过post-build事件将文件复制到我想要的项目?谢谢
以下代码使用gcc 4.5.1编译,但不使用VS2010 SP1编译:
#include <iostream>
#include <vector>
#include <map>
#include <utility>
#include <set>
#include <algorithm>
using namespace std;
class puzzle
{
vector<vector<int>> grid;
map<int,set<int>> groups;
public:
int member_function();
};
int puzzle::member_function()
{
int i;
for_each(groups.cbegin(),groups.cend(),[grid,&i](pair<int,set<int>> group){
i++;
cout<<i<<endl;
});
}
int main()
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
这是错误:
error C3480: 'puzzle::grid': a lambda capture variable must be from an enclosing function scope
warning C4573: the usage of 'puzzle::grid' requires the compiler to capture 'this' but the current default capture mode does …Run Code Online (Sandbox Code Playgroud) 我正在使用VS 2012进行VB项目,完成后我尝试添加安装项目.
我没有找到它(因为安装项目在VS2010之后停止了)所以我切换到了VS2010,但问题是项目不会打开,我收到此消息:
所选文件是解决方案文件,但是由此应用程序的较新版本创建,无法打开.
我尝试了这篇文章:http://www.codeproject.com/Tips/80953/Converting-VS2010-Solution-to-VS2008 并试图从2012年转换到2010年,但出现了相同的消息.
多年来我一直在使用F5(开始调试)来构建代码(如果它已过时),然后进行调试.这也适用于VS 2010,但是今天它只是在没有构建的情况下开始调试.假设我对项目执行了清理,然后点击F5而不是构建它以便它可以运行它会抛出一条错误消息,指出exe不存在运行.我如何让它先建立?有什么可以改变的?
我想删除一行,就像没有选择任何内容时点击Ctrl+ X,但不保存行到副本堆栈.这可能吗?
我正在使用Visual Studio 2010.
有没有办法在VS2010/VS2012/2013中保存(后来还原为)给定的窗口布局?
c# ×2
.net ×1
build ×1
c++ ×1
c++11 ×1
debugging ×1
intellisense ×1
lambda ×1
ssms ×1
vssettings ×1
web-services ×1