visual-studio

Visual Studio on a Mac

My job is currently based on Visual Studio (ASP.NET). Looking for experiences using Visual Studio on a Mac. Does it work? ...

Visual Studio solutions - how to ensure project properties are shared?

If you use Visual Studio 2008 and have many project files within solutions how do you keep them in sync? In other words, if you change a property in one project, how do you ensure that this property is automatically changed in other projects? ...

How do you set up solution configuration specific config files?

I have a web service that needs different settings for different environments (debug, test, prod). What's the easiest way to setup separate config files for these different environments? Everything I find on the web tells me how to use configuration manager to retrieve settings, but not how to find particular settings based on the curren...

Need Visual Studio macro to add banner to all C# files

Can someone post a Visual Studio macro which goes through all C# source files in a project and adds a file banner? Extra credit if it works for any type of source file (.cs, .xaml, etc). ...

Visual Studio + Crystal Reports + SourceSafe = auto checkout

I have a simple VS2008 project with several crystal reports, created with Crystal Reports 2008 (outside Visual Studio). The solution is added to source control (Visual SourceSafe 6.0). Now every time I open the solution all the reports are checked out together with their corresponding cs files. No changes are made to the files, so I can ...

VisualStudio *.obj files size (513Mb objs and 534Mb lib)

Hi. I'm a C++ developer and using Visual Studio 2008. How can I reduce *.obj files size? I've read http://stackoverflow.com/questions/332946/why-are-my-visual-studio-obj-files-are-massive-in-size-compared-to-the-output-e but didn't find the answer. When I build project to a static lib total size of all *.obj files is 513Mb and resultin...

IDE Favorite Features Comparison (VS/Eclipse/IntelliJ/Others...)

I've been a Microsoft developer since VB 3, and always considered Microsoft development tools to be the best on the market. However, having used Eclipse for Java development over the last few months, I can see a lot of features that are missing in VS 2008 IDE. Yet I can't find any that I can't find alternatives for in Eclipse. Seems that...

Getting a Signature Mismatch Error when Compiling Even though it Matches in VS.NET 2005

I changed a reference in my project from pointing to a specific hard-coded DLL to a project reference and now I'm getting an error telling me that the signature for some event handlers don't match even though they do. Here's one exact message: Method 'Private Sub ObjectsGrid_CellChange(sender As Object, e As Infragistics.Win.UltraWinGr...

What should I look out for when migrating a project from VS2003 to VS2005

In the very near future I'll be migrating some web applications from VS2003 projects to VS2005 projects. What should I watch out for? Anyone done this in the past and have it go bad? How much time should I expect it will take to migrate a project? I know this is more than one question, but please provide your experiences with anythin...

How do I make the Enter key on intellisense when typeing in VB react the same way as in C# in Visual Studio?

I'm using Visual Studio 2008 and I'm used to C# where when Intellisense pops up, I select what I want by hitting enter and it doesn't skip down to the next line. In VB when I hit the enter on intellisense, I jump to the next line. Does anyone know where the setting for this intellisense option might be? ...

Visual Studio - rewrite / lifespan

FYI - I am a mainframer that moved to the .NET world a couple years ago and has a lot to learn. We are looking at rewriting a Visual FoxPro app into .Net (most likely VB). This project is projected at 4-6 years. We are at the very early stages of the preliminary design right now. I am seeing a LOT of information from Microsoft on VS 2...

VS2008 Crashes when adding a WCF service.

Hi guys, I have a Console application hosting a WCF service: Updated this code to run off the app.config file instead of initialising it programatically Uri baseAddress = new Uri("http://localhost:8000/ChatServer/Service"); ServiceHost myHost = new ServiceHost(typeof(ClientServerChat.ChatServer), baseAddress); myHo...

How to change the braces/parenthesis colors in Visual Studio

I am not talking about the highlight colors but the actual colors. I got a color scheme with light background color but the braces/parentheses are barely visible. Anyone knows how to change this? Btw this is for C# because C++ seems to color braces/parentheses using operator color. ...

Break at throw for excption that is caught

In the VS debugger, un-caught exceptions result in the program breaking at the point the exception is throw (or near enough) and in a state that lets you look at all the stack frames and there local variables up to that point. Is there a way to get this same result (break at throw) but for an exception is caught at a particular point? I...

How to call Nunit from Visual Studio in a batch file

I have set my Visual Studio to start Nunit as an external program to run all the tests written in a module. Now what I am trying to do is to create a batch file which will call Myproj.exe. What I am expecting is that it will run Nunit as I have set it to run an external program and execute all my tests in nunit.exe, but when I run that...

Visual Studio 2008 tries to convert a web deployment project every time I open the solution

I am using a web deployment project in Visual Studio 2008. Now, every time I open my ASP.NET web project solution which contains the web deployment, Visual Studio asks to convert the project (I guess from VS 2005 to 2008). I do the conversion and save, but if I close an re-open the solution, VS insists on trying to convert the project. ...

[Visual Studio 2003] Setting environment variables in pre-build event and using in compilation step

In Visual Studio 2003, I am trying to set an environment variable in the pre-build event that will then be used in the compilation step, but the value doesn't seem to be propagated. For example, if the pre-build event contains this (either directly or within a batch file): set MY_LIB_VERSION=1.0.0 and AdditionalIncludeDirectories has...

output window to file (visual studio 2005)

in visual studio 2005 how can i save whats written to the out put window to file (i cant change the code writing to the output window and it writes a lot i just want to save the output window content to file) thank you Arik ...

How to make file show when opening Visual Studio solution

I need to add a C# solution with examples that would be distributed as part of a software library installer. This solution would have various examples on how to use the product's API. I want to be able to display a simple "quick start" file explaining how to run the examples when the solution is opened in Visual Studio. Is there a way ...

Drawing a line in Visual Studio .net at design time

The owner of my company wants to be able to draw lines in Visual Studio.net as he did Visual Basic 6.0. So far the only method I have found is a runtime method using system.drawing which of course only work during runtime, and not quite practical for what he wants to do. Is there any third party control (free or otherwise) that will gi...