visual-studio

Unmanaged x64 assemblies in mixed .NET development environment

What do we do if we have some devs working on 64 bit machines and some on 32 bit machines, but we need to reference unmanaged assemblies that need to be in x86 for half the team and x64 for the other half? Is there a solution besides manually updating the references every time someone on a 64 bit rig gets latest? ...

Delphi and .NET. Using Visual Studio

Hi, I've got an old project written in Delphi 4. I'm looking for a way to: use that code with minimal changes from within .NET use other .NET assemblies from that Delphi code use Visual Studio to work on the solution which will contain Delphi project and C# projects. Is that possible? What will i need for that? Thanks ...

How do you change the default background color for menustrips and menus in .NET?

These days with Visual C# (Visual C# 2008 specifically) it seems that the default color for menustrips and menus is blue, which to me looks really strange and is something that I'd really like to override. I'm guessing that Visual Studio is picking up this blue color from my selected system theme or something, however no other Windows ap...

Scripting Visual Studio build, Clickonce deployment, Dotfuscator and Mage.

The process for releasing my application to the client is per the heading Build Clickonce deployment Obfuscating the main executable with Dotfuscator Signing the manifest and .application files with mage Zip for delivery I'd like to work on an opensource program to automate this as it uses a lot of time everytime a release is needed ...

How to get debug information for an abstract(?) pimpl in C++?

I have a wrapper class that delegates its work to a pimpl, and the pimpl is a pointer to a baseclass/interface with no data that is specialized in several different ways. Like this: class Base { void doStuff=0; }; class Derived { int x,y; void doStuff() { x = (x+y*2)*x; //whatever } }; class Wrapper { Bas...

.Net Scripting Engine (C#) - Is there some sort of "header file" or "dll references file" for .Net languages?

I'm making a small scripting engine in C# and I was wondering, is there some sort of #compiler directives or some sort of other header-like file I can compile with my script files to define what Managed Dlls my script files are referencing? public static CompilerResults LoadScript( string SourceCodeFile, string[] References) { v...

Unable to debug SQL Server 2005 stored procedures in Visual Studio Team System 2008

I have been trying to debug SQL Server 2005 stored procedures, in Visual Studio Team System 2008. I connected to the database server and did a right-click "Execute", on the stored procedure. I even tried "Step Into Stored Procedure", with no luck. The IDE shows it is running, but I can not seem to break or step into the stored proce...

Visual Studio Addin Development - How to resolve the "The process cannot access the file" problem after exiting visual studio?

I'm currently developing a visual studio add-in, however when I close visual studio and shutdown my machine and come back the next day, I cannot build the add-in because it is currently loaded in visual studio. How do i fix this problem so I don't have to manually remove delete and reinstall the add-in every time I wish to debug or chang...

Windows shortcuts without a path

Hi all 'Regular' windows application shortcuts have a target which is a path to an executable file. This path is visible (and editable) in the shortcut's properties dialog. But many shortcuts have no such path, only a (read only) application name is displayed. All the MS Office programs, for example, have such shortcuts. How do these ...

How to keep the document-tabs sorted by their last usage in Visual Studio 2008

What is the registry change to tell Visual Studio to always position the current document in the window to the left. The default implementation is such that if you have 10 documents open and you are editing the 5th one it's tab will be the 5th tab in the group. With the registry change when you click on the tab for the 5th document it b...

How do I tell VS 2008 to stop putting byte-order marks in front of my files?

By default, Visual Studio 2008 puts the Unicode byte-order mark in front of any file you save. You can override this on a per-file basis by going to File > Advanced Save Options and picking a different encoding. How do I tell VS to use a default encoding for all files in a particular project or solution? This is drastically screwing up ...

Know any C# syntax-highlighting tricks?

I usually prefer to code with a black background and white/coloured text but I had never taken the time to change my syntax-highlighting in Visual Studio. Yesterday, when I finally got around to it one of my changes was to change User Types and User Types (Value Types) to different colors. Without realizing it, I had been using a struct...

How do you find all implementations of an interface?

Suppose you have an interface defined in C#. What is the easiest method to find all classes that provide an implementation of the interface? The brute force method would be to use "Find References" in Visual Studio and manually look through the results to separate out the usages from the implementations, but for an interface in a large...

Is there anything similar to "Add Service Reference" in XCode?

My current place of employment is primarily a Microsoft shop and we use Visual Studio pretty extensively. I've grown fond of the laziness of using "Add Service Reference" (formerly "Add Web Reference" in VS2005) to download WSDLs and form classes and methods in nice, convenient namespaces for me. Since we have started to branch out into...

Installing a merge module as well as "consuming"

I've got a couple of solutions that represent a framework of code that I've built up at work. One solution called 'Framework' and another called 'Extensions'. The reason I split them is that the 'Extensions' solution contain projects that consist of extension methods, and the projects are organized so that the resulting assemblies mi...

Cannot add server to Visual Studio Server Explorer

I am unable to add a remote server to the Visual Studio Server Explorer for my ASP.Net website which has been running for about 9 months. I have added a connection to the database that is working well. The error message leads me to think I may not have the path entered correctly. I have tried a number of combinations, including usin...

How to set the output path of several visual C# projects

I have a solution that contains several c# projects and I would like to be able to set the output path and other properties on all the projects together in a single place. Property Sheets (vsprops) do not seem to be able available for C# projects and the $(SolutionDir) variable is ignored. Are there any other methods to set properties ac...

What are data breakpoints?

I just came to know that there are data breakpoints. I have worked for the last 5 years in C++ using Visual Studio, and I have never used data breakpoints. Can someone throw some light on what data breakpoints are, when to use them and how to use them with VS? As per my understanding we can set a data breakpoint when we want to check f...

What is the purpose of "remove unused references"

I have read that removing unused references makes no difference to the compiler as it ignores assemblies that are not being referenced in the code itself. But I find it hard to believe because then, what is the real purpose of Removing unused references? It doesn't have any noticeable effect on the size of the generated assembly or othe...

Why does Visual Studio use different indentation settings for C# and for C++?

For C# Visual Studio uses 4 spaces by default, whereas for C++ it is hard-tabs. Why is it so? Why is it different? My project consists of both C# and C++ code and the difference really annoys me. I want to set a common standard for all the sources, but I wonder if this would have any drawbacks. ...