visual-studio

XML From a Web Service Call

Visual Studio makes calling a web service easy, trying to figure out what is going on under the covers is difficult. How can I see the actual XML generated from my .Net app when making a call to a web service? ...

How can I use Visual Studio's "Code Snippet" feature while editing a .aspx file?

I use Visual Studio's "Code Snippet" feature pretty heavily while editing c# code. I always wished I could use them while typing out my aspx markup. Is there a way to enable code snippet use in an aspx file editor window? Are there any third party tools that perform this? If you're familiar with code snippet definitions, this is ex...

Are Microsoft's Own Implementations of Their OpenSource Counterparts Better, and Why?

Microsoft like implementing their own versions of popular open-source frameworks and assemblies, for example: Microsoft's MVC Framework vs MonoRail Microsoft's Unity IoC container vs Castle Windsor / Spring.net / Ninject etc Microsoft's VS Unit Test framework vs nUnit (and various others) Questions: What else has Microsoft 'borrowed...

Ambiguous class members in vb.net

I am trying to use a class from a C# assembly in vb.net. The class has ambiguous members because vb.net is case insensitive. The class is something like this: public class Foo { public enum FORMAT {ONE, TWO, THREE}; public FORMAT Format { get {...} set {...} } } I try to access the enum: Foo.FORMAT.ONE This is not p...

How to get the Silverlight XAP copied to the clientbin on build

I am just getting started with Silverlight and have recently added a Silverlight project to an established solution. In this particular scenario my solution included an existing ASP.NET web site (not application) which Visual Studio kindly offered to integrated my Silverlight application into, which I accepted. So everything is fine and...

Prevent Visual Studio from automatically creating "Mixed Platforms" solution configuration

How do I prevent Visual Studio 2008 from automatically creating the "Mixed Platforms" and "Any CPU" solution configurations? We have "Win32" and "x64" configurations and a developer needs to choose between them. However, as soon as anyone makes any changes to the solution VS automatically creates "Mixed Platforms" and it seems to be the ...

Visual Studio 2008 Setup Project is not generating Setup.exe anymore.

I have a Visual Studio 2008 Setup Project that when compiled in the past would generate a Setup.exe in the output directory along with the .msi output file. Now it no longer generates the Setup.exe which I actually do need. Did I change a project setting without realizing? How do I get it to generate it again? ...

How do i specify a bold version of the theme's default font?

Hi Guys, I'm having problems with cross theme compatibility in windows forms. If you don't set the font for a control on a windows form, it will use the system font with correct typeface and size. If you want to make the font bold, it hard codes in the rest of the system font values for the current theme you're programming with. For ...

Is there a tool to alphabetize CSS definitions in Visual Studio?

Eric Meyer's advice to keep individual rules alphabetized in a CSS style definition makes sense - there's no "natural" way to order rules, and this makes it easy in a complex definition to make sure you don't define the same thing twice. div.Foo { background:Green; border:1px solid Khaki; display:none; left:225px; ma...

Visual Studio (6.0, 2003 & 2008) compatibility with Windows Vista 64-bit (x64)

Are there any compatibility issues with running Visual Studio 6.0 (including Visual SourceSafe 6.0 Client), Visual Studio 2003 & Visual Studio 2008 on Windows Vista 64-bit? Can I interactively debug the applications with the Vista Web Server? Can I still make/compile projects? Is it correct to assume that Visual Studio 6.0 & 2003 will ...

Is there a devenv flag to disable pdb generation at compile time?

Our continuous integration system currently runs a perl script to parse our sln/proj files to set the following options: DebugInformationFormat="0" GenerateDebugInformation="FALSE" Preventing generation of pdbs allows us to increase the parallelization of the CIS compile. However, this method seems hacky and occasionally fails - is th...

Why is Clover.NET ignoring a referenced project?

I am using the Clover.NET plugin for Visual Studio. When I attempt to "Clover Solution" it always fails trying to build one project. I inspected the command line it is using to build that project, and it is leaving one of the referenced projects out of the arguments. The only thing I can find that is different about this other project...

Tracking down intermittent 'Object reference not set to an instance of an object.' error on build

I could use some help trying to track down an intermittent error that I've been having with our ASP.Net project for quite some time. Intermittently when building the solution, the build will fail with the error "/: Build (web): Object reference not set to an instance of an object." The error has no associated file, line, column or proje...

How do you move visual studio DataTip window

The window pops up below the variable, and obscures the code I want to look at. Can I move the window without loosing my place in it? I seem to remember there is a way to do it. ...

For a typical Web 2.0 Social Application - Java vs C#

For a product in long run (may be 0.5-1 million users) is it good to use java instead of .net from the cost/profitability perspective. To elaborate more..consider web farm scenario in which one will have to purchase windows + Sql server + some antivirus licenses for .net applications. But for java it's almost free. What points should I c...

What is the easiest way to add a Visual Studio 2008 Context Menu Item?

I would like to add a custom menu item when you right-click a certain file extension in Visual Studio. There seem to be some helper open source projects to accomplish this, but I'd like to ask if anyone has ever used them, and how easy were they - and can you help me and provide a starting point? One I've researched is: http://www.code...

Help documenting Javascript in Visual Studio?

I'm trying to get my Javascript documentation in order so that my comments can be used by Intellisense), for example displayResults = function(msg, filterParams) { /// <summary> /// Gathers inputs and refreshes the grid and map /// </summary> /// <param name="msg">JSON data returned by GetConcessions ajax call</param> ...

Displaying Japanese fonts in source code using Visual Studio

I have some source files that have comments written in Japanese. When I open these files in Visual Studio they appear like this: à–¾FNCAP‰¹—p‚̃XƒŒƒbƒh I am using the English version of WinXP, but is there a way to get Visual Studio to display the actual Japanese characters rather than the random jibberish it currently is? ...

visual studio enable assert

I am trying to add assert statements to a project but they keep being skiped is there an option I need to enable somewhere. The assert statement is: Debug.Assert(false, "Deserialization failed", "Deserialization failed"); and I am running in debug mode. I could be doing something silly not sure. ...

Calling batch/script files from VC6/VC2005/VC2008 project files.

Is there a way to invoke an external script or batch file from VC6 (and later) project files? I have a background process that I need to kill before attempting to build certain projects (DLLS, executables) and haven't found a way to successfully do so from the project itself. I'd like simply to call a batch file with a taskkill command...