visual-studio-2010

Upgrade website to webapplication in visual studio 2010 while under source control

I have a highly complicated web site that is under source control and has a long history. I would like to migrate this website into a web application project but I do not want to lose the source control history. We use Visual Studio 2010 and Team Foundation Server (Currently 2005 tfs but we are in the process of upgrading to 2010). Ho...

How do I make a WiX 3.5 installer with a completely self-contained .NET 4.0 installer?

Continuing a previous question I asked here, I now need to move to vs2010. I've gotten the most recent weekly build of WiX 3.5, the June 5th 2010 version. Here's the relevant lines from my installer: <ItemGroup> <BootstrapperFile Include="Microsoft.Net.Framework.4.0"> <ProductName>.NET Framework 4.0</ProductNam...

Upgrading from VS2008 Pro to VS2010 Pro without MSDN

Hi I'm looking to upgrade from Visual Studio 2008 Pro to Visual Studio 2010 Pro without MSDN. On the MSDN US site there's pricing for Upgrade from Standard for $299. On the UK MSDN site however, the only options are to buy with MSDN for £484.99. Obviously a big difference in price there! I can't find any info as to what qualifies for ...

VS 2010 Debugger: Any way to search an object for a particular value?

I am trying to search the "this" object in an ASP.NET MVC 2 for a string value. In a view, I set the partial view input tag prefix and am trying to figure out how to reference it in the partial view itself. For example: Html.EditorFor(m => m, "templateName", "fieldPrefix"); In the partial view, I would like to search the "this" obje...

How can I debug solutions in Visual Studio 2010 from a network share?

I've recently got a new Mac laptop and am running VS2010 in a Parallels virtual machine. It's mostly working out well for me, but I'm having some problems with debugging specific project types, related to the fact that the projects are being accessed via a network share. Test projects don't run because the test runner can't load the te...

Suggest an alternative way to organize/build a database solution.

We are using Visual Studio 2010, but this was first conceived with VS2003. I will forward the best suggestions to my team. The current setup almost makes me vomit. It is a C# solution with most projects containing .sql files. Because we support Microsoft, Oracle, and Sybase, and so home-brewed a pre-processor, much like C preprocessor, ...

Error displaying a WinForm in Design mode with a custom control on it.

I have a UserControl that is part of a Class library. I reference this project from my solution. This adds a control from the referenced project to my toolbox. I add tghe control to a form. Everything looks good, I compile all and run. Perfect... But when I close the .frm with the control on it and re-open it, I get this error. The code...

Asp.net mvc application deployment / security issues

I'll start with appologies; I wasn't sure if this was best posted here of Server Fault so if its in the wrong place then please move :-) Basic information I have written the first module of a new application at work. This is written using Visual Studio 2010, targetting .net 3.5 (at the moment) and asp.net mvc 2. This has been working f...

Changing any Form Region/Ribbon property breaks Visual Studio editor

I have a problem with Visual Studio 2010 and Outlook Addin 2010 project (.NET 4 target). I've added a form region to my project and then I've changed Localizable property to true. Now if I close my form region and reopen it, I'm getting this VS error page: To prevent possible data loss before loading the designer, the following errors ...

Visual Studio 2010 Extension Manager crashes

After installing a bunch of extensions to try out I restarted VS 2010 and it started crashing. Unfortunately, it consistently crashes when opening Tools | Extension Manager. Any ideas how to fix and avoid a complete uninstall/reinstall? Event log has this: Application: devenv.exe Framework Version: v4.0.30319 Description: The process w...

where does one define the creation of the database in the new Visual Studio Database project

I see that I can "Create a deployment Script and deploy the database" as a deployment action, howerver it's not clear where I script the actual creation of the database? I see under the "Storage" folder a sub folder for Filegroups, Files, and I'm guessing I could drop in a create database script into there, but how do I pick up the data...

Managing project configurations in VS 2010

I'm working on a solution with multiple projects (class libraries, interop, web application, etc) in VS2010. For the web application, I would like to take advantage of the config transformations in VS2010, so at one point I added configurations for each of our environments: Development, Test, Production, and so on. Some time later, aft...

"Add to Source Control" option when making a new C# project in VS 2010

When I go to make a new C# Windows application in VS 2010, there is an option at the bottom right area with a check box saying add to source. I want to know what happens, if I check it and create the new C# file. ...

What are the pros and cons of "include foreign key columns in the model" option in EF 4

With EF4 comes a new feature "Include foreign key columns in the model". What was the motivation behind adding this feature, and are there any particular gotcha's with either leaving it off, or turning it on when generating a model from an exisiting database? ...

Resources for setting up a Visual Studio/C++ development environment

I haven't done much "front-end" development in about 15 years since moving to database development. I'm planning to start work on a personal project using C++ and since I already have MSDN I'll probably end up doing it in Visual Studio 2010. I'm thinking about using Subversion as a version control system eventually. Of course, I'd like t...

Visual Studio 2k8: specifying custom properties

Hello, I'd like to use custom build properties to drive the build process. Is it possible to specify them using Visual Studio user interface? I'd like to avoid editing the msbuild file every time I need to change the property. Maybe VS2010 has support for that? Thanks, ...

Where is the visual studio 2010 setup and deployment project template

In VS 2008, when I create a project I can add a setup project easily. File->Add->New Project... then in Project types: select Other Project Types->Setup and Deployment - and there are a whole load of installed templates - including Setup Project to create an MSI installer. But in VS 2010 - there are no templates in the Setup and Deploy...

Keyboard access in the C# project settings editor?

Does anyone know how to switch between the major tabs/pages in Visual Studio's C# project settings editor, using only the keyboard? I'm talking about the things along the left side that are labeled Application, Build, Debug, Resources, Settings, etc. It works fine to Tab between the controls on the currently selected page, but I haven't ...

Active Reports winforms viewer control hosted in WPF Window

There is currently not an available WPF viewer for Active Reports 6. I was attempting to use a host control to display the viewer in a interop host but I'm not having much luck. Has anyone else attempted this successfully? I can't even get the wrapper Viewer control to add to the project toolbox as a custom control at this point. I'...

Visual Studio 2010 - Is it slow for anyone else?

I've read a lot of stuff about VS2010 being much more performant than VS2008. When I've finally installed it, I found that it, in fact, is much slower (save for the Add References dialog). For instance, Silverlight projects take twice as long to load, the startup of the IDE itself is much slower, etc... Am I missing something here or ...