visual-studio

How to detect running program and ask to close it from VS Msi project?

I have a simple Visual Studio MSI project. I want to HALT the installation if I detect a running program of a certain type (e.g. "aaa.exe") and wait until the user closes it before proceeding. how do I do that? ...

How do I get Visual Studio to output new files in a different directory (ideally the source directory from a out of source cmake build).

I am in the process of adding cmake support to a project and noticed that, after generating an out of source Visual Studio project, adding new files through Visual Studio puts them in the Build directory, and not in the Source directory. This is suboptimal. Is there any way to change where VS adds new files, and can I set this in a CMak...

Error while importing Work Item Type - TFS

When I import a Work Item Type from Team Review, I get this error: TF218007: Cannot import the work item type. It changes fields in team projects in which you do not have permissions to make changes. Correct this problem by changing the definition of the work item type so that it does not change the name or reporting behavior of these f...

debugging both managed c# code and unmanaged c++ code in one solution

I have a solution with an unmanaged c++ dll project in it and a c# managed project that calls dll using PInvoke. Is it possible to debug both managed and unmanaged code so that I see what is going on "inside" of that dll? ...

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. ...

Migrate a VS project to a web site

If you started developing as a project, how difficult is it to migrate into a web site development process? ...

XAP files for silverlight 4

Can you imbed silverlight 4 xap files into an aspx page and then view them in vs 2008? If so how do you do this? Any sample code would be appreciated. Thanks! ...

WPF C#: Rearrange items in listbox via drag and drop

I am trying to figure out how to move the items in a pre-populated listbox up and down via mouse drags. I have looked at the Control.DoDragDrop method from microsoft's api, but I still can't get it to do anything. I would appreciate any help since I am new to the visual studios environment, thanks. ...

Sort selected text from Visual Studio context menu

Currently VS has a very useful feature: sort usings (C#). I want the same functionality for any random text, for example - XML nodes in config files. How complex to implement that? VS addin, right? Is it possible to call some VS API which is used for sorting usings? ...

How to define regular expression patterns like {min,max} repeats in SSMS or VS "Find and Replace" ?

I knew that we have something like this in regular expression syntax world. *The syntax is {min,max}, where min is a positive integer number indicating the minimum number of matches, and max is an integer equal to or greater than min indicating the maximum number of matches. So {0,} is the same as , and {1,} is the same as + http://ww...

Debug C++ code in visual studio from python code running in eclipse

Does any one know how we can do this? I have python code in eclipse and whenever it calls c++ functions, i want the break point to go to the visual studio c++ project. ...

Create Resource from asp.net page

Hi is it better to create one resource for every asp.net page application. or to create a global resource for all pages? my application has about 100 pages and 200 usercontrols. if i want to create global resource can how can i use this Feature of visual studio that able us to generate resource file automatically from every page with thi...

problem with reading program arguments in Visual Studio C++

I'm running C++ program in VS2005, and I've set only one argument in project properties-> debug-> command line args, and it's named profile1.dll for example. here's a code snippet cout<<"number of arguments:" << argc<<endl; for (int i=0; i<argc; i++) cout << "argument " << i << ": " << argv[i] << endl; In the output I get ...

Debugging in Visual Studio

what is the difference between start Debugging and Start Without Debugging in Visual Studio while running a program ? ...

VS Macro/Add-in to convert string concatenations to string.format style

I have project in development where string operations like "Hi " + variable + ", welcome to Project" are used at many places (given example is very minor one). One of the requirement is to convert it to string.format style. It is very long and tedious job, where I would not like to break earlier working code due to any human error migh...

How to eliminate certain annoying message during framework source code debugging.

Dear ladies and sirs. While debugging the framework source code I always get this annoying message from the studio: Some bytes have been replaced with the Unicode substitution character while loading file C:\Users\markk\AppData\Local\Temp\SymbolCache\src\source.NET\4\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\Core\Microsoft\S...

Unit testing a Data Access Layer

I've been reading up on unit testing the data access layer of a project. Most options boil down to: Use a dedicated test database but cleanup in the finalizing phase of all unit tests (or do it manually) Use the database but don't commit or simply roll back Mock the database In a former project we used to use the rollback way but I l...

Visual Studio Test Project

I've created a new MVC2 project as well as a Tests project within my solution. I have not yet done anything to the default tests nor am I experienced with them. I've seen a webinar on web tests and measuring performance using Test Professional. Are these completely different? Can the Tests project inside my solution be used by Test Prof...

In visual studio 2010 how can you debug a class

When I set a breakpoint in a class then access a method, debugger does not hit breakpoint. What would be best way to debug a class? ...

How do I disable Votive (Wix) from copying all the source files to the project directory?

Why does the Wix Visual Studio plugin, Votive, think it's necessary to copy ALL my source files to the current Wix project's directory? How can I disable this? I've had no luck searching the docs, web, or project settings. I would like to keep things uniform and keep the "wxs" files in a "src" directory and my Wix project in the "build"...