visual-studio-2008

How to deploy my asp.net project in IIS ?

I have windows 2003 server , and a asp.net project developed in VS2008 developer edition how to deploy this website in the server? ...

Where can I find the schema (XSD) for a .csproj file?

Where can I find the W3C XML Schema (XSD) for a .csproj file, for Visual Studio 2008? It seems like this should be obvious, but I spent some time and haven't found one. I looked in %VS2008%\xml\Schemas, no joy. no joy searching the 'tubes either. ...

Silverlight color resources using A="" R="" G="" B="" cause exception in app

When defining a color resource in a Silverlight app using the syntax A="" R="" G="" B="" (any order of parameters) an exception is caused, even though the application will compile fine and display properly in Blend. Example: <UserControl.Resources> <Color x:Key="BlackBG" A="255" R="35" G="35" B="35"/> </UserControl.Resources> Th...

"Folding" long sections of code in Visual Studio 2008

I have lengthy functions in VB.NET (VS2008) and I'd like to shrink them down. I know about the #region directives, but they don't work inside functions. I was wondering if anyone knew of any plugins for visual studio 2008 that would allow me to fold if statements, loops and try catch statements. I've found a couple of plugins for Visual...

Conditional dialogs in Setup application in VS2008

I have added two dialogs to the install user interface. The first dialog prompts the user for the type of install (two radio buttons). Based on the answer it drives what components get installed (all working well), but I also want it to conditionally display the 2nd dialog based on the answer. I would have thought there would be a CO...

Width of PowerShell Output in the Visual Studio Output Window

I have a powershell script that runs fxcopcmd in the output window. Turns out that when I output results it limits the output to 80 Chars, is there a way to get it to be wider in the visual studio output window ...

What reference material exists for writing my own -vsdoc.js for JS Intellisense in VS2008?

I've got the vsdoc for jquery working in my project, but I'd also like to get intellisense for my own JS files - including the verbose <param>, <field>, and <returns> tags and so on. Where can I find a specification for the format of those comments, beyond the -vsdoc.js for jquery? ...

Visual Studio - Command to collapse all sections of code?

In Visual Studio (2008) there a command to collapse/expand all the sections of code in a file? ...

Will VS2008 puke if I add extra "non standard" targets to a .csproj file?

Will Visual Studio choke on customized .csproj files? For example, I wanted to add a Target to update the version number in all AssemblyInfo.cs files. I plan to invoke this from the command line with MSbuild. As another example, I would like to include the build timestamp into the compile, like so. This would be a pre-compile step ...

MSBuild items reference won't expand

I have a C# project in Visual Studion 2008, for which I'd like to specify a custom program to run on a debugging session. When you set it in Project Properties -> Debug -> Start Action, VS creates a *.csproj.user file with a content like the following: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <PropertyG...

VS2008 Load Testing - Page Response Time

Hi. I am running a load test from VS 2008 on my asp.net web application. The thing I notice is that for some of my pages Average Page Time is around 20. Does this mean it takes 20 seconds for the server to render the page before it sends the request? Or is it simply 20 seconds until the whole page is fully loaded on the client's browser...

Visual Studio doesn't cache Microsoft Symbol Server cache misses?

I'm using the Microsoft Symbol Server with Visual Studio 2008 and it's working pretty well. Unfortunately, when the public symbol server doesn't contain the symbols, it takes a while to timeout, and Visual Studio attempts to reload the same missing symbols every time that I start my project for debugging. Is there any way that I can get...

Pin fogbugz tab in visual studio

The fogbugz plugin for visual studio opens up a tab right next to your regular code tabs with in it the fogbugz window. Tiny bit lame if you ask me, but I can accept that. Is there a way however to make that tab pinned? So I cannot accidently close it and it will stay the first tab at all times? ...

Setting Data Property in Silverlight Path Style

I am trying to put as much properties of a Path element into a Style, this works out ok, as longs as I don't add Data to the Style setters: <UserControl x:Class="Demo.Controls.SilverlightControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width=...

Can I create a Database connection in a Class Library Project?

I am setting up a .net project that is called to generate other webpages. Basically a true CODE BEHIND page. How do I go about making a connection on a Class Library File, when there is no webconfig file present/available? ...

How to save Visual Studio query windows when closing Visual Studio?

Does anyone know of an extension or plugin for Visual Studio that would catch open "query" windows and prompt for saving the contents when closing Visual Studio? My colleague often uses the Server Explorer and Query windows to test SQL before putting it in his code and has lost many useful queries when he closes VS without remembering t...

Why does Visual Studio fail to update method signatures?

<rant> In development, the biggest time sink seems to be Visual Studio. Solving issues with it eats up half of my development time and I'm left implementing with half the alloted time! </rant> Back to the question. I've got a couple of custom controls developed in ASP.NET: RaiseEventControl, HandlerControl. They reside on a Parent For...

Visual Studio: Easy Way to Move Source Code Between Projects

In the "old days" I was working with Linux to create C/C++ programs (really really BASIC...HA!...programs, just learning to program in the courses as an intro) by creating a text file with the source code that was then fed to the compiler/linker that then spit out the executable binary. Everything was in a text file or series of text fi...

How did my ASPX page become UTF-8? I didn't ask for it.

Yesterday, after a minor markup edit to an aspx page, I was checking the file(s) back into TFS 2005 when I got the message that, "The file encoding has changed from ANSI to UTF-8. Checking the file in with this encoding will cause problems with Compares, etc." or words to that effect. Helpfully, the dialog gave the options 'OK' and 'He...

LINQ with generic Predicate constraint

I just upgraded my project to .NET 3.5 and thought I had a perfect use for LINQ. My application has a window manager that tracks open windows at runtime and I'm trying to add a FindOpenWindows generic method. What I've done so far: List<Form> openWindows; public List<T> FindOpenWindows<T>(Predicate<T> constraint) { ...