visual-studio-2010

What kind of add-in / extension for VS 2010 should I create ?

I have managed to develop an extension for visual studio "Update web reference" action in form of a simple dll that takes care for some sharing of classes between different projects etc. Everything works at my local machine and now I would like to create some user-friendly package so that all the guys in our company can use it as well. S...

Configuration of Qt in Visual C++ 2010

I am using the Visual C++ 2010 compiler. How can Qt be compiled in Visual C++? ...

Is there a tutorial, code project, or example of using MEF to extend the Vs2010 solution explorer context menus?

I have an existing legacy style IDTExtensibility2, IDTCommandTarget Extension that I would like to remake using MEF for vs2010, but I can't find any resources concerning VS2010 MEF and context menu changes. If it happened to be deployable via .vsix all the better. Are there resources out there specific to MEF based context menu extensio...

Visual Studio 2010 & html entities?

I'm trying to insert a (») in a page in my VS2010 but it isn't recognized. Is there a way for this alias to be recognized or am I forced to use »? ...

visual studio 2010 static code analysis migration

I am updating my projects from visual studio 2008 to visual studio 2010, but I'm still using TFS 2008. I have a static code analysis in my TFS, and when I was using visual studio 2008 I was placing the rules from the server in my source code projects (right click on a solution->Code analysis for solution-> replace\merge with checkin pol...

How can I add a web service project using Visual Studio 2010?

I don't want WCF, I only want web service. Thank you. ...

Visual studio 2010 locking issue when developing user controls

I researched quite a lot on this but finally seemed to pin down on this issue. Visual Studio some times randomly locks the build dll/exe file if you have custom controls in your project. Steps to replicate: Create a winforms app/dll project Add a new class, say CustomButton that inherits from Button Build Create a form. Look in the too...

Extending VS 2010: to include additional items on Right Click context menu (add) on solution explorer?

Hi there, I wish to create an additional item on the context sensitive right click "ADD" on the solution explorer in vs 2010. Basically it currently looks like this New Item Existing Item New Folder Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB MENU Class What i am trying to do is create a new item similar to "Add asp.net...

Best Practices on using C# Intellisense Comments

We have a Visual Studio 2010 solution that contains several C# projects in accordance with Jeffery Palermo's Onion Architecture pattern (http://jeffreypalermo.com/blog/the-onion-architecture-part-1/). We want to add the Visual Studio Intellisense Comments using the triple slashes, but we want to see if anyone knows of best practices on ...

WCF REST : returning classes and rules / Pascal/Camel case for fields?

Hi there, Can anyone tell me the recomemended case (pascal or camel) for returning classes with fields... For example, the example that comes with vs 2010 uses Pascal Case like so // TODO: Edit the SampleItem class public class SampleItem { public int Id { get; set; } public string StringValue { get; set; } } Notice first cap...

Matching local javascript file to remote file for debugging in visual studio

I am working on a project in which javascript files are dynamically loaded into a page by the server using a python script. I am trying to use visual studio to debug these javascript files by attaching to the appropriate IE process for the loaded page and using the script debugger. The problem is that IE and Visual Studio identify the ...

Difference between two methods of creating a Web Service in VS2010?

Somebody asked a question about how to create a web service (as opposed to a WCF service) using VS2010, and I answered it HERE. My extended answer to the question wonders about the difference between a web service created using the .NET 3.5 Web Service template, and one created in a .NET 4 Web Application template. The former has assem...

Resource Compiler question (initially posed as "UAC together with Subst don't work well together")

I am trying to run VS2010 with UAC on. ResourceCompiler complains that it cannot find a file located on a subst'ed drive. Here's a fusion log. *** Assembly Binder Log Entry (8/16/2010 @ 1:54:39 PM) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Wind...

Microsoft Visual Studio C# 2010 Express: Can debug but not build

When I debug my C# program F5, my program will run as intended; however, upon building it CTRL+F5, my program immediately shuts down: "(Program) has stopped working". What are some possible explanations for this? ...

How do I alter Database Item templates in VS 2010?

I'd like to alter the "New Stored Procedure" template in VS 2010 so that it checks for the existence of the stored proc, deletes it if it exists, then does the Create. Where do I find that template in VS 2010? It seems like it was easy in previous versions to just alter the template. I found a template in "C:\Program Files (x86)\Micros...

Problem with System.Windows.Automation Namespace

I am implementing WPF Application and i want to use System.Windows.Automation Namespace to capture highlgihted text from applications. The Problem is that Visual Studio and Expression don't identfy AutomationElement, TreeScope, TextPattern and Red underlined it !! i am using Visual Studio 2010 Professional and Expression 4 on Windows 7....

WCF REST: specify content-type on WebGet Attribute doesn't seem to be working

Hi there, probably something i doing wrong, but i am returning XML from my WCF Rest service which is built with VS 2010. In fiddler you can see here that it returns test/html as the content-type HTTP/1.1 200 OK Cache-Control: private Content-Length: 222 Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 X-AspNet-Ver...

How do I force my TFS 2010 Build to build all projects in the solution to be built in Debug or Release Mode?

How do I force my TFS 2010 Build to build all projects in the solution to be built with Debug or Release Mode. I'm looking to pass in an Argument into the workflow. Do I need to use an MSBuild argument? Seems like a very common thing to do, but I'm not able to find a straight-forward way of getting it done. ...

system.diagnostics.contracts.contract exists in both v4.0 v3.5

I just upgraded to visual studio 2010 and installed the code contracts msi. When I try to use it I get a compiler error that the system.diagnostics.contracts.contract dll exists in both the v3.5 and v4 framework. Anyone know what I should do to resolve this? Thanks. ...

Why does visual studio ignore the tlb filename specified in the project file

I'm in the process of upgrading a Visual C++ 6 project to Visual Studio 2010, and I've been replacing the post-compile steps of copying files to a common location with having the output file put directly in the final location. However, for the *.tlb files that are being generated, there is an option (in project properties -> MIDL -> Outp...