visual-studio-2010

Running unit tests on more than five cores in parallel

I've followed the instructions on http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx to the letter and I can execute tests in parallel. So far so good. Now the problem: I can't set the parallelTestCount to zero (Auto configure) or to a value above 5. Running fiv...

Can static combinable<T> be used as a placeholder to thread_local?

C++0x adds a new storage specifier thread_local which is not yet implemented in VS10. However the Parallel Programming Library defines a Concurrency::combinable class which has a local() function which Returns a reference to the thread-private sub-computation. Are there semantics for thread_local that can't be (easily) covered by havin...

How to Make a Nice Block of Commenting in Visual Studio

I just switched back to c++ after leaving it for awhile and I can't seem to remember how to make nice function/class comment boxes in VS. What I'm looking for is something like this: /** * Convenience struct: coord * ------------------------- * Simple C++ struct (which is like a class, except there are * no methods and everything...

How do I force Visual Studio 2010 and Team Build 2008 to use 64-bit version of SGEN tool?

(renamed from "Why does my c# project build successfully under Debug/x64, but fail under Release|x64?") Here's my problem... One of the projects in my solution builds just fine under Debug|x64, but when I switch to Release|x64, my build fails (both locally and on my CI build server) with the following error: An attempt was made to l...

Why are schema capitalizations inconsistent in Visual Studio database projects?

So I've run into a somewhat maddening bug (perhaps) with Visual Studio database projects, specifically in 2010 Ultimate. Basically, let's say I have two .schema.sql files, like so: File 1 CREATE SCHEMA [Test] GO File2 CREATE SCHEMA [AuditTest] GO This compiles down and is deployed as: PRINT N'Creating [AuditTest]...'; GO CREAT...

How do I specify parameters to a SP and to the report?

I think I've got a fundamental misunderstanding going on, concerning a SQL Server Reporting Services report, which I'm trying to make run locally in a WinForms app (eventually it will be in a WPF app, but that's later). I'm don't write many reports, and whenever I have in the past, I've used Crystal Reports. But we're trying to get awa...

enabling XML comments in C++ in Visual Studio 2010

How can one enable/achieve XML comments for C++ methods ala C# and VB in Visual Studio 2010? It appears this functionality isn't enabled/available by default. Targeting initially managed C++ projects. ...

VS2010 command prompt gives error : Cannot determine the location of the VS Common Tools folder.

I have recently installed VS2010. The installation creates the short cut for VS2010 command prompt but when I open up the command prompt I get the error: Cannot determine the location of the VS Common Tools folder. I checked the environment variable VS100COMNTOOLS and it has value: C:\Program Files\Microsoft Visual Studio 10.0\Common7\To...

Am I implementing this simple contract incorrectly?

This is my code: public class RegularPolygon { public int VertexCount; public double SideLength; public RegularPolygon(int vertexCount, double sideLength) { Contract.Requires(vertexCount >= 3); VertexCount = vertexCount; SideLength = sideLength; } [ContractInvariantMethod] private vo...

Resgen a folder of .resources files to .resx?

How can I convert a folder of .resources files to .resx? I don't want to have to manually convert each file. ...

How to remove a empty folder from a project under TFS control?

Suppose I have a project MyLib, under that, I created a folder say Folder1. No file under this folder. The project is connected to TFS. Then I want to remove this folder Folder1. I deleted it from context menu and checked the project into TFS. Then I check the data on TFS with Team Explore->Source Control, Folder1 is deleted. But it...

How can I build VS 2010's C Runtime Library?

I need to modify the C runtime which ships with VS2010 because the 2010 CRT relies on functions released in Windows XP SP2, and I need to be able to deploy to Windows 2000. Specifically, I need to remove any and all calls to EncodePointer and DecodePointer. The source for the C runtime is included in C:\Program Files (x86)\Microsoft Vi...

Visual Studio 2010 debugging ASP .NET MVC 2 app is slow

Hey folks, Asp .NET MVC 2 apps started from Visual Studio 2010 are damn in my opinion. It takes 2-5 seconds to refresh or open a new page. Do you have the same problem? Do you know if this ASP .NET MVC 2 debug mode can be somehow sped up? I work at 64 bit computer, Windows 7 and Visual Studio 2010. ...

Moving Copied snippets to different Visuals Studio 2010 Installs.

I have created a presentation and have commented out areas in the code for snippets to be dropped in. I cut out all of the code and pasted the snippets into my toolbox. How can I export the snippets from the tool box for use in other isntallations of visual studio? I know that I can obviously copy them out of the toolbox and save them ...

Strongly-typed assembly not being found despite being correctly referenced

We have a project which utilizes Sharp Architecture. For the purposes of some testing, we made some adjustments to strongly type some assemblies. Following this, the project would no longer build. VS2010 complained that: error CS0012: The type 'SharpArch.Core.PersistenceSupport.IRepositoryWithTypedId`2' is defined in an assembly that i...

What is the best way to include references to my own assemblies in a project template?

Guess the question says it all. We have developed a library in C#, and now I wish to create a project template to aid in using the library correctly. I want new projects to include a reference to the library assembly, but would prefer not to have to deploy the assembly to the GAC, or to depend on the assembly residing in some specific ...

Code coverage missing when building .NET 4 apps on Team Build 2008

I'm building VS2010 solutions on a TFS2008 build agent with VS2010 Ultimate installed; code compiles fine, and the tests all run fine, but when it comes to code coverage, nothing is being reported. I've checked that the .testsettings file has Code Coverage enabled and that I have selected some assemblies to instrument, and if I run the t...

How to get the list of members (properties/methods) that are not used anywhere in the solution?

Hi everyone, I would like to explain my needs by a sample context below. I have a C# class ClassC which does task TaskT. I've just updated ClassC to fullfill TaskT in a second approach but still keep the first/old one intact. Now I finished coding and want to remove all of the old codes related to the first approach. How can I do this i...

how to start two instances of pageant from putty

Hey I'm having the same issue as John from this post http://stackoverflow.com/questions/935057/how-to-make-ankhsvn-remember-my-svn-ssh-password/3464910#3464910 but I can't start two instances of pageant, someone please help me. Thanks. ...

Visual Studio Navigation Short Cuts

In the Visual Basic 6.0 IDE, it was possible to navigate to the start of the next (previous) subroutine or function by pressing CTRL + Down Arrow (Up Arrow). This does not work in VS2010. Is there another key combination for this? Can it (has it) be (been) implemented? ...