visual-studio-2010

Setting useLegacyV2RuntimeActivationPolicy for test projects in VS 2010

In .NET 4, loading .NET 2 mixed-mode assemblies requires setting useLegacyV2RuntimeActivationPolicy="true" in the startup element of the app.config file for the application project. How can I set this (and is it necessary) for a test project? I am getting some very odd behavior in the testing host, but only for tests that use CLR 2 mix...

Moving server control libraries in .net solution from one folder to another

Hi, I want to move some class libraries (server controls in a .NET 4.0 solution) from one folder in windows explorer to another. How can I do this and not break anything in the actual .NET solution? Thanks ...

Visual Studio 2010 and boost::bind

I have this simple piece of code that uses boost::bind: #include <boost/bind.hpp> #include <utility> #include <vector> #include <iterator> #include <algorithm> int main() { std::vector<int> a; std::vector<std::pair<bool,int> > b; a.push_back(1); a.push_back(2); a.push_back(3); std::transform(a.begin(), a.end()...

Is it possible to retrieve connection string inside DDL generation template in VS2010?

I am playing around with creating a T4 template for the "DDL Generation Template option" (model first) process in Visual Studio 2010 RC. Is it possible to retrieve the connection string that is associated with that process? If I right click on the .edmx file and choose "Generate Database from Model..." I have the option of choosing a da...

Can I work on an ASP.NET MVC 1 project in Visual Studio 2010 RC?

I'm using Visual Studio 2010 RC and MVC 2 projects appear in File | New Project, but not MVC 1. Can I target MVC 1 webapps? ...

individually minify JS and CSS in Visual Studio 2010

I'm currently migrating a project to Visual Studio 2010 and am trying to figure out how to minify JS and CSS files individually on build. In Visual Studio 2008 I used a Web Deployment Projects with a build task that referenced the C# port of the YUI Compressor. In Visual Studio 2010 Web Deployment Projects seem to have been integrated ...

ASP.NET MVC2 Areas/Administration and Working it all together

I am new to asp.net mvc in general and have yet to build a fully functional application. The main reason for this is I couldn't get my head around building administration areas. I am now looking at MVC2 and have noticed this new feature called areas, I have created a sample application with an area called Announcements (essentially a bl...

Is anyone developing with Visual Studio 2010?

I'm currently considering a big "no no" and jumping over to VS 2010 while it's still in RC... after all, text code is text code, how bad can it "F" things up? I'm just wondering if anyone is using VS 2010 for their projects? I'm very much interested in the subtle additions as well as the multi-screen support. ...

Visual Studio 2010 RC Intellisense doesn´t work ...

Hello, I installed VS2010 on my Windows 7 x64... The patch to fix Intellisense as well (http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26662)... But my C# Intellisense doesn´t work... It doesn´t crash, but nothing happens when I typing... Just if I press a Ctrl+Backspace it appears... In my Javascri...

Why won't VS2010 RC use my existing types when I add a service reference?

I have a huge problem getting services references in VS2010 RC to use existing assemblies. Even though I have a class library with all the data contracts (classes marked with DataContract and properties with DataMember) that is shared between the service project and the consuming project (which is a class library), when I add a service...

Deploying Asp.Net MVC 2 /C# 4.0 application on IIS 6

Hi, I got a problem migrating from VS.Net 2008 / MVC 1 to VS.NET 2010 (+C# 4.0) / MVC 2 The web.config has been updated, the site runs well in Cassini, but my problem now is deploying on IIS 6. I updated the web site to run using ASP.Net 4, but whatever URL I try, I always have a 404 error. It's as if the routing was not taken into ac...

I can't add ajax controls to Visual Studio 2010

I can't add AJAX controls to VS2010 rc. I try to drag it to design view, but nothing happens, code remains unchanged. Where is a problem here? Should I install manually ajax toolbox to make it work? ...

How do I resolve an error that says FredCK Editor undefined for proj visual web dev 2010?

Hello, I am trying set up the FCKEditorV2 to use in a visual web dev 2010 vb.net proj. and receiving an error stating : Element FCKEditor is not a known element. enter code here<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Edit.aspx.vb" Inherits="WebApplication5.WebForm2" %> <%@Impo...

VS2010RC + Silverlight 4

Is it possible to develop silverlight 4 applications in visual studio 2010 RC? The official position of MS is we need to wait for silverlight's big update. I think it update will be on MIX10. But, what about any possibility to develop SL4 in VS2010RC now? ...

Which C# mocking framework takes best advantage of .NET 4?

I would assume that the more dynamic nature of .NET 4 would improve the possibility of mocking. (but I may be wrong) Are there mocking frameworks that take advantage of .NET 4? If yes, which does it best? Conversely, are there mocking frameworks that do not even run on .NET 4? ...

VS2010 RC - only 100 std::map elements in debugger

Hi, I have a small problem during debugging my App in VS 2010 RC when I want to see all the elements of std::map container. When debugger reaches the breakpoint and I want to check the values of the map in element inspector (in 'Locals' windows and in pop-up windows after hovering the variable name with mouse as well) and I'm scrolling ...

Is there any reason to switch to Visual Studio 2010 for Windows Forms development?

I can't find any new features or improvements for Windows Forms in Visual Studio 2010. Am I missing something? I guess there are new features to C# and other parts of .NET in general. Any reason specifically to the GUI development portion? ...

Visual Studio 2010 color theme

Has anyone found/made any decent color themes for Visual Studio 2010? My VS 2005/2008 themes seem to be getting mangled in the upgrade process. I'm accustomed to using the ever famous Oren Ellenbogen's Dark Scheme featured on Scott Hanselman's blog, but the upgrade process has made it downright butt-ugly. Does anyone have any gems they'...

How do you minimize a window in the Visual Studio 2010 RC editor?

I am using the Visual Studio 2010 RC. Sometimes when I am working on a code file, I would like to minimize it. In Visual Studio 2008 I just switched to MDI mode. Then I could minimize. In 2010, I can undock the window by dragging the tab, and that gets me half way to MDI, but I see no way to minimize the window. Does anyone know how to...

Is VisualStudio 2010 built with WPF/XAML?

I had a crash with the new Release Candidate and the details suggested something went awry with WPF. Is it the case that at least some of the UI in the new release is built using WPF and XAML? ...