visual-studio

How to change "devenv" command location?

I have two versions of Visual Studio 2005/208 installed in my system (windows7), when I am opening Visual Studio with "devenv" command from "Run" window then its opening Visual Studio 2005 but I want when I open it using "devenv" command so Visual Studio 2008 should open by default. How can I do this in windows. Thanks Note: I am not ...

How to stop "Just In Time Debugging" messages blocking a buildserver

Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program. Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build marked as failed,...

Disable Casini for certain Web Application Project

I've got one Web Application project (A) referencing another Web Application Project (B). Project A is set to use the local IIS server. Project B doesn't have to do anything. The pages inside project B are compiled to embedded resources and loaded by project B. But when running the application the Casini webserver starts for project B. E...

Expand/Collapse all regions in project using Visual Studio?

Is there away to expand and collapse all the regions, at the same time, in a project using Visula studio 2008? ...

How do you separate unit tests from integration tests in Visual Studio?

I've been using Visual Studio 2008 Test projects to store my tests. Lately I've realized that a lot of my unit tests are in fact integration tests because they rely on external sources (e.g. file system, SQL server, registry). My question is, what is a good approach to separating out integration tests from unit tests? Ideally I want...

C# - Set path to pdb

Is there any way to set a custom path to Program Database files (*.pdb) in C# under Visual Studio 2008? With C++ this was quite simple (Project settings -> Linker -> Debugging -> Generate Program Database File), but for some reason Microsoft seems to have removed (or hidden) it for C#. I'm aware that the "standard" usage is to have pdb...

GitHub and Visual Studio

What's the most painless way for the Visual Studio developer to start using GitHub? Ideally the answer would involve a Visual Studio plugin, or some other integration app? What solutions are available today to view/update GitHub repositories? Can you rely or expect the same functionality as compared to other VS integrated source contr...

AutoHotKey. Hotstrings and Auto-replace not working in Visual Studio 2008

Is it any possibility to persist work of Hotstrings in Visual Studio 2008. For instance, I want to get following results: "ras" => replace to runat="server" I use following script, which work in another application, except VS 2008. ::ras::runat="server" ...

Error while opening file in VS2010 Beta 2

I installed VS2010 B2 on my Win 7 machine. I create a simple DLL project and try to open the file Class1.cs that gets created by Default. I get a error message "The operation could not be completed. Invalid Pointer. So far i have seen this and similar error messages on previous versions of VS2010. Anyone else faced and solved this proble...

What software I'll need to become proficient in the Microsoft endorsed languages?

I have a free MSDN account and now that I am proficient in C/C++/Java, and know some JavaScript, PHP and MySQL, I want to learn some proprietary languages from Microsoft. I am looking to experiment with everything within the next several months - C#, ASP, VB, things I haven't even heard of [insert suggestions here], what have you. Howe...

linking assembly and c problem

Trying to understand how to link a function that is defined in a struct, the function is in the assembly code, and am trying to call it from c. I think am missing a step cause when I call the function, I get an unresolved external symbol... ;Assembly.asm .686p .mmx .xmm .model flat include Definitions.inc .code ?Initialize@Foo@@SIXPA...

Finding all the classes that inherit an interface in Visual Studio

Hello everyone, If I find out about a new interface,does Visual Studio provide any means to find out all the classes that have inherited that interface? No,I don't want the C# code to do that..I know that's available at stackoverflow itself.I just want to know if Visual Studio has any functionality to findout this info for any interfac...

how to convert a VS 2010 soultion back to 2008

We started using VS 2010 and were very happy with it, so we converted our project into a 2010 solution (still .net 3.5) and continued our development in 2010. however, we are getting a lot of bugs recently and want to go back to 2008. the solution files have changed (new projects and files added everywhere), but everythihng is still in ....

Distributing F# based libraries

I have a program written c# that references an assembly written in F#. If I want to distribute it, I need to include the FSharp.Core.dll assembly right? (Assuming the user didn't install F# already) Problem is, Visual Studio doesn't copy this dll (or any other related F# dlls) when I build my solution. How can I instruct it to copy the ...

Is there a "skip all breakpoints" command in VS(2008) ?

As title, is there a quick way to run through the code once without stopping on breakpoints? ...

Changing DateTimePickers Default Color?

Is there anyway to change the dropdown button of the datetimepickers color to look like the attached image? If I have to use WPF I will, but I was hoping there would be a way to do it through code. Thanks ...

Does the visual studio 2008 profiler work with unmanaged C++?

I know that VS 2008 Team Edition has a profiler, but I'm also aware of the recent trend they have at Microsoft of completely ignoring unmanaged languages (what's the last time unmanaged C++ got something cool in the IDE?!).. For example I know for a fact that the IDE "Unit Tests" and "Code Metrics" features don't work with unmanaged code...

CUDA: Getting linking error only in device emulation mode

I am compiling a dll which goes just fine unless I use the -deviceemu mode. In this case I get several of the following linking errors: CUDAKernel_ColourHist.obj : error LNK2019: unresolved external symbol ___cudaMutexOperation@4 referenced in function ___uAtomicAdd 1>CUDAKernel_1.obj : error LNK2001: unresolved ext...

Visual Studio autoclean?

Hello, I have a solution with multiple projects - executable, library, and others(unimportant right now). Library contains EF entity classes and executable uses them. When I'm working on some code from the executable then every entity that I use is marked as an error and compiler says that I should check usings and references. Reference...

What shall I do while waiting in a thread.

I have a main program which creates a collection of N child threads to perform some calculations. Each child is going to be fully occupied on their tasks from the moment their threads are created till the moment they have finished. The main program will also create a special (N+1)th thread which has some intermittent tasks to perform. Wh...