visual-studio-2010

VS 2010 custom code snippet loses focus when typing

I created a custom HTML code snippet in Visual Studio 2010 to insert a form field with label, textbox and RequiredFieldValidator. I specified Declaration tags for the control IDs, label text and validator ErrorMessage property. The snippet has been imported into the My HTML Snippets folder with the Code Snippet Manager in VS 2010. When ...

adding/removing a file in VS2010 causes "WebDev.WebServer20.exe has stopped working" error

This is driving us crazy... In VS2010, MVC2 projects, not all projects.... both on a project that was upgraded from 2008/mvc1 and on a brand new project created within 2010/MVC2, we have the following behavior: 1) develop as normal.. 2) hit F5 or CTRL-F5 to open up a browser 3) works great! 4) add a CSS file (or JS file or any file...

What is causing Thread Contentions with my Azure Queue code?

I just ran the Visual Studio 2010 Thread Profiler against my Azure code and noticed I'm getting a LOT of contentions. My code is blocked more often than it is running! My worker has no custom threading logic in it at all. It is a simple While loop which asks various queues if they have work. I make an instance of the QueueRepositoryClas...

How can I make the SourcePath property of a file in a Visual Studio Setup and Deployment project (Windows Installer) relative rather than absolute?

I've got a relatively simple project that is under source control (svn), and I wanted to create an installer. I know that I could (should) use WiX, but as I'm new to creating installers I thought it'd be easier to just use the built-in Visual Studio (2010) Setup and Deployment Wizard. Unfortunately, it seems that files including externa...

Test Case Work Items in Visual Studio 2010

I am running TFS 2008 and plan to upgrade to TFS 2010. There is no Test Case work item in TFS 2008 (only in TFS 2010) and I am wondering what is best, to create a Test Case work item in TFS 2008 and later import in TFS 2010, or, create the test cases in Excel and use the CodePlex utility to import into TFS 2010? ...

Where is the extension/extensibility point for vs2010 code metrics?

I'd like to extend the 2010 static code analysis metrics (mostly fix it so the rollup is max instead of sum). Where is the extensibility point? Is it an MEF component somewhere? ...

Upgraded VS 2010 Ultimate - Modeling Project - Layer Diagram freezes visual studio

I just updated VS 2010 from Professional to Ultimate, specifically to gain access to the Architecture Modeling utilities. After successfully creating a new Modeling Project, I have been unable to create a usable Layer Diagram. Each time the VS designer shows the diagram, VS freezes, requiring a forced close via Task Manager. I have don...

Visual studio 2010 IDE layout

My current visual studio panel layout looks similar to the drawing below: ----------------- | | | | | | | | | | | | | | |--| | | | | | |---------| | | | | | ----------------- I really don't need the full height of the screen for the toolbox or server explor...

How to create a dataset from an xsd schema in Visual studio 2010

I searched for this here and on msdn but didn't find a satisfactory answer either because things changed from 2005/2008 to 2010 or I don't know how to use VS IDE. So, here is what I am trying to I have an xsd file and I want to perform searching operations on that. For that I figured that I would need corresponding classes and dataset i...

Why doesn't checking out in TFS 2010 give me write permissions? It causes an exception in my project at the target of invocation

Hi, I just moved my code from subversion to TFS. When I get latest version, I understand that I can't get write permissions. However, when I check out and choose the option to take the exclusive lock, a check mark appears next to my files and I am able to edit them. When I look in Windows explorer, however, some files are still marke...

NUnit 2.5.6 + PartCover 2.0/4.0 = My Classes Not Shown

Summary: I can run unit tests and code-coverage, but the report only includes NUnit classes, not my application classes. I have successfully used PartCover in the past. Not so this time. I tried the latest PartCover (4.0), downgraded to the next latest (2.0), both with NUnit 2.5.6. I created a simple .NET 4.0 class library (also tried ...

Start Internet Explorer on debugging

I am currently write an ASP.NET WebApplication in Visual Studio 2010. My default browser is Firefox. If I start an WebApplication, the WebApplication starts up in the same instance of Firefox. How is it possible to avoid it? How do I configure Visual Studio that the WebApplicaton starts in an new instance of Internet Explorer? Thanks in...

Add .xml to a Installer, without It being ReadOnly.

I have a WPF (C#) project that has a Installer project. The thing is that one layer (UI) has a XML file that I wan't to be included in the Install. That is to say, I wan't the file to appear in "C:\Program Files\appName\" when I Install the app on a client computer. I have tried to change the "Build Action" but that doesn't work. I have...

Where can I download the Java.Net install

This may actually show how much of a Noobie I am but does anyone know where I can grab Java.net from? I don't really like eclipse and would like a version integrated with my Visual Studio environment. ...

How much Entity Framework is good for database that contains tables with large records ?

Hi guys, I am working with VS 2010, Entity framework, SQl-Server 2005, ASP.Net web forms. Currently, I am working on the Data access layer library which soon will be a web service, using Entity Framework collaboration with different design patterns like repository pattern and some best practices that posts in different blogs. I am also ...

Edit $(IncludePath) "macro" in Visual Studio 2010

Visual Studio 2010 ("Project Properties" dialog) I've installed Visual Studio 2010 Ultimate and it has apparently imported the default directories for my Win32 C++ includes and libraries. Every new Win32 C++ project I create automatically adds my old include/library directories which screws up my build. Here is the "Project Properties...

Dealing with VB.NET Linq formatting in Visual Studio?

Does anyone else wrestle with getting VB.NET Linq code formatted the way they want it in Visual Studio? What are some tricks you have for how do you deal with it? I know that Visual Studio lets you uncheck the option for "Pretty listing (reformatting) of code", but most of the time it's a really handy setting to keep on. And with a te...

How to change the header background of a listview?

I want to change the gray default background of the header of a listview but I don't know how to do it. Please help! To clarify my needs, I put a screenshot here. ...

'Add Config Transforms' and One Click Publish option not working when upgraded from Visual Studio 2005 to Visual Studio 2010

I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where ...

How to force Sgen to create .net 3.5 serializers assembly

I have a sgen build step in my .NET 3.5 library. In VS2010 this generates .NET 4 MyLib.XmlSerializers.dll, which cannot be loaded from .NET 3.5 apps. Does anyone know how to change build step to get correct version of the assembly? Is it possible to IL merge serializers assembly and library into single dll? This is my sgen build step: ...