visual-studio

VS 2008 can't open projects in Windows 7

Hey all, I've installed VS 2008 and SP1. I've tried to load a solution that has a WCF project and it complains that "This project type is not supported by this installation". I've tried the devenv.exe /setup but that didn't help. If it matters, this is all on Windows 7. On a Windows Vista installation I have no problems with the same...

One MSI for two different installations

Is there a way to create a MSI so that it allows you to install the software in two different locations by re-running it? I'm creating a MSI to deploy a web application. I would like to build MSI once (I'm using Web Setup Project), say for staging and then once the build is qualified, I would like to run that same MSI again for yet ano...

How to order properties alphabetically (Visual Studio 2008)

Hi! I'm really anal and would like to order my class properties alphabetically/by type. Is this possible using a pre-existing feature in VS, or a macro that can do this? Eg: public string foo {get; set;} public string bar {get; set;} public int fong {get; set;} public string loo {get; set;} to (if you want to order alphabetically) ...

Fixing project GUIDs

I have a solution file that's become 'unstuck' from the projects it references, so that the project GUID references in the .sln point to incorrect GUIDs for the projects that they reference, and this problem persists into several of the projects themselves. 1) Is there an automated tool for fixing this? Anyone who's dealt with this issu...

Where is the navigator panel in .net's visual studio ?

I'm used to the Netbeans environment, now I'm learning C# in Visual Studio, I can't seem to figure out where the navigator is in the VS setting, in NB it shows me the members of a class, I believe it must exist in VS, can someone point me in the right direction ? ...

How would you sprinkle-in ASP.Net MVC into an existing Web Site Project?

I have a legacy (haha) ASP.Net Webforms Web Site Project in Visual Studio 2008 SP1, that I would like to gradually introduce some MVC functionality into. Most of the information I can locate on how to integrate ASP.Net MVC with WebForms seems to assume the use of a Web Application Project. However, it seems impossible to find informati...

The EnforceConstraints property doesn't seem to work?

My boss has asked me to disable constraints for the dataset layer of our application. Seemed easy enough to me, since the .XSDs had the EnforceConstraints boolean. However, after turning that off I'm still getting the "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."...

Any way to keep myself from accidentally building in the wrong Visual Studio configuration?

In Visual Studio, I have custom MSBuild actions for various tiers - development, staging, testing, and so on. These scripts will automatically compile everything, do web.config swapping, and push code out to a location based on the chosen configuration. Usually when I want to run one of these builds on something other than development, I...

How do you build a Visual Studio like UI?

I'm looking to build a .Net application that has a UI similar to that of Visual Studio. Is there a name for that paradigm? Or does anyone know of a tutorial to do so...or even an OSS project that utilizes that paradigm? I'm looking for like the docking aspects and the interaction between panels... 99% of my experience is in the web s...

Should I wait to buy Resharper until VS 2010 is released?

I have used up my 30 day trial and want to buy Resharper now. But, I'm poor and $150 is a lot for me to handle right now. Is anything in VS 2010 going to make buying Resharper now a mistake? I heard that VS 2010 is like VS 2008 + Resharper. I find it hard to believe but wanted to ask SO before spending my money. Thanks! Result: ...

How To Do Performance Profiling in Visual Studio 2008 "Pro"

Hi, Microsoft make this piece of software called "Visual Studio 2008 Professional". I have found that there doesn't appear to be an application performance profiler or something similar in it, making it seem not so "professional" to me. If Microsoft don't include a profiler, what are your third party options for time profiling for Visu...

Project type not supported (Windows Workflow)

I have Visual Studio 2008 Pro and before I got SP1 for .NET 3.5 and VS2K8, a workflow project would work fine. Then I installed the SP1, and when I load my solution (consisting of over 60 projects), a Windows Workflow project gives the following error: Cannot load project type (as a dialog box) How can I fix this? My solution is in .NE...

Checking existence of a txt file with C++ code

First of all, i'd to establish that i do have the text file in my Folders directory. Im using visual studio and it is where my source code is compiling. The code below should demonstate why its not working. In visual studio. int main( const int argc, const char **argv ) { char usrMenuOption; const char *cFileName = argv[ 1 ]; ...

Resizing a panel in c# - WinForms

I want to enable users to resize a panel at runtime by dragging a corner. Any ideas? Thanks! ...

System error 5 Access is denied when starting a .NET service

When I try to start a service I created in Visual Studio I receive the following error: System error 5 has occurred. Access is denied. I am running the command line with elevated privileges, so it's not that problem. Is there any place I can look to see what error is occuring. ...

Huge AboutIconData block in add-in file

In my generated .addin files for visual studio, I get really huge chunks of binary data under the AboutIconData property. Can anyone suggest as to why this data keeps on growing with time, and whether I can safely remove it? ...

What's your favorite way to debug your program in Visual Studio?

These day I come up with a large software. I have to debug in Visual Studio 2008. The steps I take are: Using callstack window to find the code blocks that I i thinks it may have bugs. Using Immediate windows to call some local functions to see whether the data structures in this blocks are correct. When I got the result in step 2,I...

Visual Studio 2008 Build Dependency Chain

I am having an issue with Visual Studio 2008 SP1. Basically, I have a .NET 3.5 solution with a client, shared and server component. While coding, all components run on the same box, but in production the server component is a standalone (remoting) service running on a separate server. I would expect that a change to the client component...

which visual studio edition has this assembly?

i have a .proj file in which this reference is included, but i cannot find the a appriate assembly on my disk. Microsoft.VisualStudio.QualityTools.UnitTestFramework which visual studio edition does this assembly include, or is there another way to get this assembly? ...

How do you insert new entries into an Access db table through an ASP.net website?

I need to insert new records into an Access database. I'm using Visual Studio 2008 and firstly create a asp.net website. I can connect to the information in Access databse using dataview or gridview and can query a particular entry (ie. Proposal No. -brings up all details linking to that proposal). I can then edit the details of that pr...