visual-studio

Building the DropThings ASP.NET Solution

Hi all, I'm attempting to build a project called DropThings but I am getting all these errors and I'm not sure how to resolve them. Can anyone lend a helping hand? I'm wondering if anyone else can build the website and if so, what steps it took you. Thanks in advance! Source Code: http://code.google.com/p/dropthings/ My Configurat...

LinqPad Feature - Does VS do this?

Linqpad, when coding in C#, will draw a vertical line between opening and closing curly braces. Boy, oh boy, I sure do wish Visual Studio would do this. Does it? Is there anyway to make it do it? ...

Debugging scripts added via jQuery getScript function

I have a page that dynamically adds script references via jQuery's $.getScript function. The scripts load and execute fine, so I know the references are correct. However, when I add a "debugger" statement to any of the scripts to allow me to step through the code in a debugger (such as VS.Net, Firebug, etc.), it doesn't work. It appea...

Are there any limitations with Visual Studio Setup Projects?

Are there any limitations that I might face when using VS Setup Projects? I plan to use them, but am not sure if this would be a good idea. ...

Visual Studio unmanaged C++ smart file explorer

I use Visual Studio to develop unmanaged C++ apps for a living. Is there an add-on tool (price isnt the issue) that is smart enough to detect folders that I create within my solution folder and add them to the include path (/I)? It would automatically do this for win32, or x64 platform settings, or debug, and release, etc. It should al...

In WPF, What is the best way to create toolbar buttons so that the images are properly scaled?

Specifically, I'm looking to use the 16*16 32-bit png images included with the VS2008ImageLibrary. I've tried manually setting the Height and Width attributes of the image, adjusting margins and padding, adjusting Stretch and RenderOptions. My attempts to create toolbar buttons have all led to either Improper Scaling (blurry icons), the ...

C#: Declare preprocesor symbol (like DEBUG) globaly for whole project.

Hi, I would like to switch between NUnit and VS Tests like this: #if !NUNIT using Microsoft.VisualStudio.TestTools.UnitTesting; #else using NUnit.Framework; using TestClass = NUnit.Framework.TestFixtureAttribute; using TestMethod = NUnit.Framework.TestAttribute; using TestInitialize = NUnit.Framework.SetUpAttribute; using Test...

Visual Studio code metrics plugin for C++

Is there a VS2008 plugin for code metrics for C++? I have Team System but it doesn't work for non- .NET code. I tried studioTools but it just freezes. So, does anyone know one that actually works? ...

How do you convert a C# Class Library project to a Silverlight Project?

I accidentally created a C# class library instead of a Silverlight Class Library for quite a few dlls. Is it possible to modify the project file easily to convert it instead of creating a new one? ...

asp.net managing multiple web.config files

Can anyone suggest a good way to manage multiple web.config files? For example, I have a development web.config I use on my localmachine named "localWeb.config" and then one I use for production called "prodWeb.config". I keep the .config extensions so no one can access them from the web server. localWeb.config will for example have a ...

Best way to share an ASP.NET MVC Azure project among 3 PCs?

I zipped an ASP.NET MVC Azure project up and copied it to another computer (both have VS 2008). I thought I could just unzip it in "Documents\Visual Studio\Projects", but I can't quite get it working. My site builds, but the browser doesn't see the master page or Site.css. Should moving projects around as Zip files just work? My re...

Why are all files in AnkhSVN solution marked as new after installing TortoiseSVN?

After installing TortoiseSVN 1.6.0, all files loaded into an AnkhSVN enabled Visual Studio 2008 project are marked as new (blue +). I have tried re-installing AnkhSVN 2.0.6347 and checkout the repository into a new "clean" folder. However neither seem to resolve the problem. My question is kind of two fold, is there a resolution to thi...

How to display placeholder value in WPF Visual Studio Designer until real value can be loaded

Hi everyone, I'm an experienced C# developer but a WPF newbie. Basic question (I think) that I can't find an answer to by web searching. Here's the simplified use case... I want to display a string in a WPF TextBlock. So I write some C# code in codebehind of my XAML control... public class MyCoolControl : UserControl { public voi...

Best way to set strongly typed dataset connection string at runtime?

My Windows Forms application uses a strongly typed dataset created using the designer in Visual Studio. At runtime I would like to be able to select either the live or test database. What is the best way to programmatically set the connection string for the dataset at runtime? ...

Can't assign control to custom winforms panel with VS2008 winforms designer.

I inherited the prototypical corporate application with a person form (with address, phone, etc). Now on that mentioned person form one label+textfield is a child of the form itself and not of the panel it visually belongs to. How can I change a control's parent from form to an existing panel in VS 2008 designer? Update: Ah, it seems...

Adding a project

In Visual Studio (C#) I have a form created as part of a project and need to have access to another form that should be created through another project and have both forms reference each other when necessary.. How do I go about doing that? ...

Beginner how do you maintain state in an ASP C# Web Page

Update: the clearest explanation I have found on the web as I have been struggling through this can be found here. Maybe I just don't understand the model of runat server terribly well. It appears the following code is always executing the if block. If the code is running on the server side I guess I can understand that it has to be s...

Ctrt + F5 in vs 2008 and .Net 3.5 is not working to run my website application

I can't run a website application from VS 2008. When I press Ctrl + F5 i got an alert "unable connect to ASP.net Deployment server" (sp.) I'm using windows 2k3 sp2. Thanks! ...

How to set standard encoding in Visual Studio

I am searching for a way to setup Visual Studio so it always saves my files in UTF-8. I have only found options to set this project wide is there a way to set it Visual Studio wide? ...

Need help understanding C# generics

I am self-studying a C# reference and it gives the following information: 1.21.4. Declaring Generic Parameters Generic parameters can be introduced in the declaration of classes, structs, interfaces, delegates (see the upcoming "Delegates" section), and methods. Other constructs, such as properties, cannot introduce a generic parameter,...