visual-studio

Active configuration

Where exactly in Visual Studio project stored active configuration ( release , debug etc) ? Your help will be valuable Thanks ...

Stop Visual Studio sorting my imported interface members in C#?

When I design interfaces, I don't tend to order their members in alphabetical order - I come up with an order that is logical and readable for the solution. Whenever I implement an interface I use the "smart tag" for the interface name to get Visual Studio to implement skeleton methods / properties for me. This is a neat feature and it ...

How to hide Web Reference from another project

I have two Visual Studio 2008 projects which are in the same solution. How can I add a Web Reference to project A so that project B doesn't see it? Project A needs web reference to WebService1 Project B shouldn't be able to see A.WebService1.* but needs reference to project A I don't want to manually modify the generated classes for ...

Copy local and system dlls' - what is the point?

Visual studio by default copies all dlls' to each project's bin folder. This also includes system dlls' (with the exception of mscorlib.dll and System.dll), such as System.Xml.Linq, System.ComponentModel.Composition (included since SL4) etc. Since these files are included in each XAP, XAP sizes grow considerably. In my limited testing, ...

How can I detect if my .NET assembly is running from web site or from a desktop machine?

I just want to write code inside my assembly to detect whether it is running on a "desktop machine", or inside the context of an ASP.NET application. This is crucial guys, (licensing purposes), and I don't want to get fired because I did a mistake. So, please, be direct and if you please give me some code snippet. EDIT: I depend on you...

TypeLoadException while calling C++ method in C# file

Hi, I have a main program written in C# which creates and uses objects written in C++. One of these objects, MODULE, uses a Behavior class (C++), which contains a lot of parameters, initialized by an interface managed by the C# main. One of these parameters is a system::Collection::Generic < AnotherObject>, let's call it LIST. The beh...

Visual Studio on an USB key?

Is this possible or does it require a local install? ...

Is there any way to make newly generated threads automatically suspend in Visual Studio?

Hi, Debugging a multithreaded app. I'm freezing threads as I see them created, but I wonder if there is a setting so that newly generated threads are suspended by default? I keep glancing up and seeing new threads running which I don't want! Thanks ...

Looking for guidance with reporting in Business Intelligence Development Studio

Hi all, I've been using Microsoft SQL Server Management Studio for multiple manual SQL queries for Excel reports up until this point. I'd now like to automate my processes further with Microsoft Business Intelligence Development Studio and generate reports using this rather than Excel. Here's a rough overview of what I'm looking to do...

getting code coverage data from build machine

I'm able to get the data.coverage file when the solution is built through visual studio. But the file is not created while running the same on the build machine. I've enabled code coverage in the LocalTestRun.testrunconfig file. Do I have to do anything else to enable code coverage on the build machine? ...

code helper for c programming

Are there any plugins for visual studio (any version) or any other ide that can show you the standard library function prototypes and their (examples) , return etc for the standard c library... much like the java code helper found in eclipse if I am not mistaken (I am not a java developer but I think I saw something similar to what I des...

Change Default Shell for Command Line Application Run From Visual Studio

When debugging or running command line applications from inside Visual Studio (2008 or 2010 in my case). It is possible to switch the default shell from cmd.exe to a something else? ...

Get cursor location when running Macro in visual Studio

I've got a Macro that I run that writes a copyright header to my document. Currently when the header is written, the cursor is left at the end of the header. What I'd like to be able to do is capture the current location, write the header, and then return the cursor to the original location. Does anyone know how this can be accomplish...

Get Company name from Assembly in Macro IDE - Visual Studio

I've got a macro that I need to be able to get the "Company Name" from the project assembly. Can anybody tell me how I can reference the assembly to get the "Company"? ...

Why on earth is a "-" displaying as a question mark?

My WPF application is reading a text file and populating a listbox. Whenever I have text surrounded by a dash symbol i.e. "-", the line in notepad will look like this for e.g. "SAMPLE - TEXT" When it displays it in the application, the dash turns into a question mark !?!?!? I then have an Export button, which writes these back to a text...

Visual Studio 2008 ProjectTemplates

Is there anywhere I can download the ProjectTemplates folder for Visual Studio 2008? I accidently deleted it and the cache folder so need to get a copy of it! ...

Windows 7 How to write to "Programs Folder\app directory" using visual studio

I have developed software and am trying to protect it from being copied from one machine to another by writing all of the machine MAC addresses to a text file in the root apps folder for the program on the first run of the app. Everytime the app is run thereafter it checks to see if the text file is there and compares data in the text f...

What Visual Studio plugins would you consider essential for a new(ish)/returning C# developer?

I've been a developer for about 20 years now, and did some C# about 5 years ago. What Visual Studio plugins would you say I couldn't/shouldn't live without? They could help with: Language Constructs .Net Framework Generating stub code to speed things up Thanks! ...

Recommendations for VS2010 solutions that contain both AnyCPU and x86 projects

It often happens that a single C# solution contains some projects that are x86-specific (usually by having native dependencies) and others that are AnyCPU. Up until recently I've always gone into the configuration manager and made sure that the solution platform was AnyCPU. This isn't too much of a problem; it requires occasional tweaks...

VS 2008 : See the elements referred to pointer

Hi, This seems to be a rather stupid question, but I create a pointer to an array of doubles : double* tab = new double[10]; Then I fill the double array, but when I expand the tab pointer in Debug Mode, I only *tab which gives me the value of first element, which is normal. But how do I see the other elements? thanks ...