visual-studio-2010

View Complete WCF response on error using Visual Studio 2010

☆樱花仙子☆ 提交于 2020-01-02 00:56:12
问题 In Visual Studio 2010 I get an error which tells me the first 1024 bytes of a response from a WCF service when consumed, but no more. I would really like to see the entire response so I can work out what is going wrong, where can I get this info from? Is there a way of logging the full text of an error or are they all limited by the 1024 byte rule? How to View more than 1024 bytes of a wcf response when an error occurs in Visual Studio 2010? 回答1: If you are doing this in debugging mode, where

Assembly added via Add Reference not copied to output directory unless referred to in code

偶尔善良 提交于 2020-01-02 00:55:09
问题 Situation: Project 1 is an assembly in the solution Project 2 is an executable assembly project in the same solution Project 2 has a project reference (via Add Reference) to Project 1 Project 2 does not directly refer to namespaces/types in Project 1 in the code Project 2 uses Ninject to dynamically load Project 1 and use the implementation classes within it Problem: Even though Copy Local is set to True for the reference, and the referenced assembly does not exist in the GAC, the referenced

Visual Studio 2015 - command line retarget solution

你说的曾经没有我的故事 提交于 2020-01-02 00:52:07
问题 Trying to build an older project (VS2010) with Visual Studio 2015 - from the command line. But, I'm getting this: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(55,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right

Visual Studio creates invalid Resx files

蹲街弑〆低调 提交于 2020-01-02 00:51:13
问题 I have a pretty simple form that I am wanting to localize (I actually have quite a few in this project, they all have the same problem). When I set the form property Localizable to true Visual Studio generates a .resx file with the form name (as you would expect). The problem though is that it's adding all sorts of things to the .resx file that nothing else can open (eg WinRes, ResEx, Simple Resx Editor, RESX Editor etc). The error I get is: ResX file Type System.Drawing.Point, System.Drawing

Can I develop asp.net 3.5/2.0 projects using Visual Studio 2010?

旧巷老猫 提交于 2020-01-02 00:49:20
问题 Can I develop asp.net 3.5/2.0 projects using Visual Studio 2010? Or I will be stick on .Net Framework 4.0? 回答1: From MSDN VS 2010 The multi-targeting feature of Visual Studio lets you specify the version of the .NET Framework, or its profile, that is required for your application. The key benefit of multi-targeting is that you can use the current version of Visual Studio to create and develop projects that target earlier versions of the .NET Framework. For example, you can continue to develop

Moving focus to next tab group in Visual Studio 2008/Visual Studio 2010 via the keyboard?

倖福魔咒の 提交于 2020-01-02 00:48:23
问题 Is it possible to move to the next vertical tab group in Visual Studio 2008 or 2010 by using the keyboard? There are commands for moving the active window to the next or previous tab group, but I couldn't find one for moving the focus from one tab group to the next. The only workaround that I found is by using DPack's File Browser dialog, but it requires a lot of keystrokes and they depend on the name of file in the currently active windows in the tab groups. 回答1: The VSStreamliner extension

Visual Studio 2010: How Can I remap F2 to Rename File rather than Open Object Browser

岁酱吖の 提交于 2020-01-02 00:13:19
问题 In Visual Studio 2010 Solution Explorer tree view, how can I remap the F2 key to Rename the Selected File rather than open Object Browser? 回答1: Do the following Tools -> Options Expand Environment and select Keyboard Type "File.Rename" into the text box Put the Focus on the "Press Shortcut keys" box and hit F2 Click Assign 回答2: I don't know about you, but in my copy of VS2010, F2 in the Solution Explorer DOES rename the file. What exactly do you have selected when you hit F2 ? 回答3: To enable

Visual Studio 2010: How Can I remap F2 to Rename File rather than Open Object Browser

…衆ロ難τιáo~ 提交于 2020-01-02 00:13:03
问题 In Visual Studio 2010 Solution Explorer tree view, how can I remap the F2 key to Rename the Selected File rather than open Object Browser? 回答1: Do the following Tools -> Options Expand Environment and select Keyboard Type "File.Rename" into the text box Put the Focus on the "Press Shortcut keys" box and hit F2 Click Assign 回答2: I don't know about you, but in my copy of VS2010, F2 in the Solution Explorer DOES rename the file. What exactly do you have selected when you hit F2 ? 回答3: To enable

Add Visual C++ property sheets using CMake

无人久伴 提交于 2020-01-02 00:12:33
问题 I'm currently porting a gcc project to Visual C++. It's defined in a CMake file, and I have created a Visual C++ property sheet to aid in compatibility (GccCompat.props). Everytime the Visual C++ project files are regenerated by CMake, the property sheet has to be added manually, since I don't know how to add it automatically. So, the question is: How can I tell CMake to add a property sheet to the generated Visual C++ solution? 回答1: This functionality has made it into the nightly build of

Is there a way to comment out XAML that contains comments?

不想你离开。 提交于 2020-01-01 23:12:43
问题 I am fairly new to WPF and using XAML. I get really frustrated that I can not select a chunk of XAML and comment it out in Visual Studio 2010 using the comment button in the toolbar if the highlighted section already includes some comments. Other languages allow you to nest comments inside of comments with no issue. Is there a way to comment out a comment in XAML using Visual Studio 2010? 回答1: No, there is no way of having nested comments in XAML. You could use the mc:Ignorable attribute on