visual-studio

In VS, how can i decide the order in which my overloaded methods are displayed

How can i decide the order in which my overloaded methods are displayed in visual studio, in the intellisense ...

Appverifier and Visual Studio for leak detection

Hi, I'm running Appverifier in an application. When it detects a memory leaks the logs saids "Address of the leaked allocation. Run !heap -p -a to get additional information about the allocation." I guess that's when you are running in Windbg, is there any way to access the allocation stack trace from inside Visual Studio ? ...

Execution output to text file

Hi all, I am writing a C program using Visual Studio 2008. I use F7 to compile and F5 to execute the program.When I press F5 an execution window contains the output. But I want the output to get saved to a text file. How to do this in visual studio. Please help me someone. ...

How to write a SourceControl Add-in for VS Express edition

As you all know Visual Studio Express edition do not support Source Control Integration and Add in As it is obvious there is a feature which allows VS tointegrate with any kind of source control. So I'm using VS express for myself (in home, and for my presonal Project and want to use a source control for my projects) So what should I Do...

Configuration manipulation over all Visual Studio projects

Hello, some one know how can I manipulate on some configuration over all projects in solution? For example, I create new configuration "Releas64" that means: "No debug, 64 bit, all files goes to c:\binaries", but I need to go over all 30 projects in our solution for to set those settings for every project. Is there some tool? Thank yo...

How can i return abstract class from any factory?

using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EfTestFactory { public abstract class _Company { public abstract List<Personel> GetPersonel(); public abstract List<Prim> GetPrim(); public abstract List<Finans> GetFinans(); } public abstract class _...

Can Visual Studio (should it be able to) compute a diff between any two changesets associated with a work item?

Here is my use case: I start on a project XYZ, for which I create a work item, and I make frequent check-ins, easily 10-20 in total. ALL of the code changes will be code-read and code-reviewed. The change sets are not consecutive - other people check-in in-between my changes, although they are very unlikely to touch the exact same file...

When do you decide to split up large projects into smaller projects?

When/where do you decide to split a large visual studio project into smaller multiple projects? if it can be reusable? when project is too big? (but how big is too big?) ..and When you do split the project, do you ... -group by database tables -group by similar functionality -other.. ...

Visual Studio PC benchmark

Hi: Is there a good way to benchmark a Visual Studio developer PC, instead of looking at the technical specs? Objective is to set a level and see every developer passes, if not upgrade them to new PC. Any thoughts and suggestions? ...

DragDrop registration did not succeed in Setup Project

Hello, we have some installation project in Visual Studio solution (Other project types -> Setup and deployment -> Setup project). This project have other library type project with Installation class named InstallationCore like project output. In user action I call to Install and Uninstall functions of installer of InstallationCore. Inst...

Custom Build Step Paths Between x86 and x64 in Visual Studio

For reference, I'm using Visual Studio 2010. I have a custom build step defined as follows: if exist "$(TargetDir)"server.dll copy "$(TargetDir)"server.dll "c:\program files (x86)\myapp\server.dll" This works great on my desktop, which is running 64-bit Windows. However, when I build on my laptop, c:\Program Files (x86)\ doesn't exis...

Using a .txt file Resource in VB

Right now i have a line of code, in vb, that calls a text file, like this: Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("data5.txt") data5.txt is a resource in my application, however the application doesn't run because it can't find data5.txt. I'm pretty sure there is another code for finding a .txt fi...

Visual C# 2008 Control to set a path.

Greetings, What control in Visual C# 2008 would allow me to set a path and get the value of that path. For example: I want the user to click a button then select a path where he/she would do the operation such as save a file in selected path. ...

Managed DirectX as a starting point

I know the difference between manage and unmanaged DirectX. My question is if I decided to do managed directX as a starting point, would it help me to better understand unmanaged DirectX. Honestly, the only thing I see different about the 2 is how you initiate and access resources. Matrix Math is Matrix no matter what so If I learn it in...

Error TF31004 when connecting to TFS2008

I'm trying to connect to a TFS2008 server through Visual Studio 2008 (Tools\Connect to Team Foundation Server) and get this error when trying to add our server: TF31004: Team Foundation encountered an unexpected error while connecting to Team Foundation Server . Wait a few minutes and try again. If the problem persists, contact your ...

How to use Visual Studio and IIS7 together?

Hi folks, I'm trying to use Visual Studio 2010 (but this also happens with VS2008) as my web server for all locahost development. When i go into the properties for my web application (sigh, it's a legacy web FORMS app) and check the Web tab .. then check the Use Local IIS Web Server option ... it only allows me to create a virtual dire...

Extracting an interface from .NEt System classes

When using Visual Studio it is easy to extract an interface from a class that I have written myself. I right click on the class and select 'Refactor' then select 'Extract Interface'. Let's assume for a second that I wanted to create a ConfigurationManager wrapper and write some tests around it. A quick way to do that would be to extract...

How do i add media files/folder to a winform app .NET

I am making an example app of a game. I have a folder i set as the current directory from within visual studios which includes pngs,ogg,config.json,etc. When i 'publish' these files are not included. How do i properly add a media files/folders into the project? ...

Visual Studio unable to open Web site error

Hello, I work with Visual Studio 2008 and work on a web project which contains a web site. When opening the solution file, I receive the error message: "Unable to open the Web site http://localhost/myWebsite.de. The Web site http://localhost/myWebsite.de does not exist." I can see the web site greyed out, with the remark "unavailable", i...

Visual Studio: Add necessary using directives with macro

Hello guys, I am trying to do the following. Imagine you are reading some LINQ article and you decide to copy/paste some code from the article to a newly created project. In most cases, if you directly compile you will probably get an error for missing a using directives or assembly reference. I am trying to optimize the process where I...