visual-studio-2010

Using tuples in conditional breakpoints in Visual Studio 2010

Will this be possible? In F# or C#? Both? For example, I would like to set a conditional breakpoint in a F# program like that: [x] Condition: myTuple == (3,3) (o) Is true (_) Has changed Thanks. ...

linq - inserting new data replaces existing data on database.why?

Hello everyone, When I call the datacontextInstance.Insertonsubmit() and datacontextinstance.submitChanges(), it clears all the existing data in the database before inserting the new data. How do I perform a real insert operation? I want to add new data to the existing table without clearing out the existing data. Thanks Edit: Here...

[c#] dynamic vs var

Possible Duplicate: Whats the difference between dynamic(C# 4) and var? What is the difference between dynamic and var keyword in .NET 4.0 (VS 2010). As per MSDN, the definition of dynamic is - Dynamic lookup allows you to write method, operator and indexer calls, property and field accesses, and even object invocations which by...

How do I use Fluent NHibernate with .NET 4.0?

I want to learn to use Fluent NHibernate, and I'm working in VS2010 Beta2, compiling against .NET 4, but I'm experiencing some problems. Summary My main problem (at the moment) is that the namespace FluentNHibernate isn't available even though I've imported all the .dll assemblies mentioned in this guide. This is what I've done: 1. I d...

Is there an MRU Document order feature in Visual Studio 2010

In Visual Studio 2005/2008 you could have your documents automatically arrange by the most recently used. The registry setting doesn't work for Visual Studio 2010. Does anybody know how to enable this feature for 2010. ...

.net 4.0 GAC can't refer

I have installed VS 2010 and builded a project and added the assembly in GAC 4.0. But How to refer this assembly in a application. I have created new application and going to add -> reference I couldn't find the assembly which i was installed. But its their if we seen thro' the physical path of the GAC. ...

where is the other partial class definition of my default.aspx.cs ?

I built an empty website on VS 2010. Using the toolbox I put a DataGridView on my default.aspx. Then I configured the sql query that fills it from the DataSource. I wanted to see the ADO code that is done under the covers. But all there is the default.aspx file, and the default.aspx.cs: public partial class _Default : System.Web.UI.Pag...

Unable to build any C++ projects on VS 2010?

When I try to "Build" a project it says: The operation could not be completed. Unspecified error When I try to debug the debugger says: The debugger cannot continue the process I really don't understand what is wrong with that? The project is fine and it compiles perfectly on VS 2008. ...

ASP.NET MVC 2 and VS 2010 Beta 2

I have a VPS and I would like to be able to run ASP.NET MVC 2 apps that were built in Visual Studio 2010 Beta 2. Which ASP.NET MVC 2 do I need to install (is it Preview 2?) and where can I get the installer for it since all I can find are MVC 2 RC for VS 2008? ...

Visual Studio 2010 - Cannot add assembly references from the GAC

Hi, I have now gone over to Visual Studio 2010 Beta 2 I have used it for a few days, but now I can no longer add references from the GAC. (http://bildr.no/view/549966) Sorry since this is not directly a development question, but I was not sure where to ask. Does someone know how to fix this? ...

VS 2010 Beta 2 Install Error

Hello, While installing VS 2010 beta 2, I got this error: Error 1330: A file that is required cannot be installed because a cabinet file d:\cab13.cab has an invalid digital signature. This may indicate a file is corrupt. Action Failure: Action Ended : InstallFinalize. Return Value 3 ... Install. Return Value 3 However, VS kept insta...

Will the Entity Framework 4 work with MVC 2 - since MVC is based on 3.5?

Can I use the upcoming Entity Framework 4 with aspnet mvc 2 since mvc is based on 3.5? ...

What do I need to install to make code contracts work with vs 2010

I have vs 2008 and vs 2010 installed on my machine as well as the code contract from devlabs (version 1.2.21023.14). It works fine with vs 2008. However, with vs 2010, there is no "code contract" tab. Is there something I should install? ...

can't run vs 2008 or 2010 on windows 7

Hi there I just installed windows 7 and because I wish to learn more C/C++ I've tried to install VS 2008 or VS2010 beta. On both of them I get the same message error. I had only one version of each one installed at one time. this is my code: #include <stdio.h> int main(){ printf("hello world"); return 0; } but when I hit debug, ...

Can I host the Visual Studio 2010 editor in my application?

I am wondering whether it's feasible to host the Visual Studio 2010 editor in my WPF application - I understand the new editor is written in WPF. If so, what control should I use? ...

"Browse with..." option not available on ASP.Net MVC Project

I'm sure this is a simple misunderstanding but I'm trying to change the default browser in Visual Studio 2010 from Firefox (my machine's default) to IE so that VS will stop debugging when the window closes. Based on ScottGu's post on the subject, I'm expecting a "Browse with..." option when I right-click on an aspx page in my MVC app; b...

How can I correct smudged font rendering in Visual Studio 2010?

I recently started working in VS2010 and noticed right away that the font I use, Consolas, doesn't pop like it does in VS2008. First I thought my settings didn't get imported, but I checked and Consolas was the default text! It's a really minor detail, the sort of stuff that Mac users are known for, but on the left is the slightly blurr...

Is the Team Foundation Server 2010 of the VS 2010 necessary for doing personal projects?

Basically what the title says. I am looking to install the Visual Studio 2010 Beta for compiling personal C++ projects. I haven't made it through the tutorial for setting things up, but do I need the Server part of the program if I don't plan on doing any team projects? Thanks. Edit: Well it looks like I can't install the Team Foundati...

"Cannot evaluate expression..." error

All of a sudden I got the following error when debugging applications in Visual Studio 2010 beta 2. "Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized" Almost every property or field in the watch window displays this message. Doe...

How to configure IIS7 to work with an MVC 2.0 Framework 4.0 application

I have an MVC 2.0 application that I'm playing around with in VS2010 which is a .Net Framework 4.0 application, which works great on my local dev machine, but fails when IIS gets involved, giving me all sorts of IIS errors. Can someone please tell me the sequence of steps I need to do in order to get an application set-up in IIS 7.0 (ru...