visual-studio-2010-beta-2

VS2010: how to remove/hide the “External Dependencies” folder in Solution Explorer

房东的猫 提交于 2019-12-03 04:25:59
问题 In VS2010 they added to all projects a virtual directory called "External Dependencies": alt text http://koper.wowpanda.net/externaldeps.PNG It really bothers me especially because if there is a normal folder named "Apple" and one named "Deep" it will be in between the two, and also the information it gives is, in my opinion, completely useless. Is there any way to remove or hide it? 回答1: Don't know if you figured this out yourself but looking at this page you can disable it in the Options

What Are Your Thoughts On Entity Framework 4.0? [closed]

≯℡__Kan透↙ 提交于 2019-12-02 19:29:37
The initial release of the Entity Framework wasn't regarded well in the development community . Developers felt a number of things were left out, and many continued to use other ORM's, such as LINQ To SQL and NHibernate . The good news, however, is that Microsoft has been hard at work on the 4.0 release of Entity Framework , which will bring with it many fixes, including lazy loading and POCO support. Many believed that the initial release of Entity Framework should have included these features; however, it is certainly comforting to see proof that the Entity Framework team has addressed

Change shortcut for 'switch to markup' in Visual Studio 2010

依然范特西╮ 提交于 2019-12-02 17:41:48
How do I switch the shortcut for 'toggle to markup'? Shift + F7 is toggle to designer. In Visual Studio 2008 I can toggle between the code-behind and the markup with F7 . I got used to it and want to have the same shortcut in Visual Studio 2010 Beta2. How can I achieve that? In 2008 you could go into Tools --> Options --> Keyboard and in the Press Shortcut keys field you could type a shortcut and it would tell you what its currently mapped to. In 2008 its mapped to View.ToggleDesigner. Once you know what its mapped to, type it into the Show Commands containing field, and it will filter your

VS2010: how to remove/hide the “External Dependencies” folder in Solution Explorer

丶灬走出姿态 提交于 2019-12-02 16:55:30
In VS2010 they added to all projects a virtual directory called "External Dependencies": alt text http://koper.wowpanda.net/externaldeps.PNG It really bothers me especially because if there is a normal folder named "Apple" and one named "Deep" it will be in between the two, and also the information it gives is, in my opinion, completely useless. Is there any way to remove or hide it? Don't know if you figured this out yourself but looking at this page you can disable it in the Options dialog (from the Tools menu). On the right side panel expand the Text Editor section, then expand C/C++ and

NOP in release build of F# code

◇◆丶佛笑我妖孽 提交于 2019-11-30 20:36:54
I am playing with F# in VS2010 beta2, and since I am new to F#, I just picked one of the common examples and went ahead and implemented a factorial function as: let rec factorial n = if n <= 1 then 1 else n * factorial (n - 1);; If I build this and look at the generated code in Reflector, I get the corresponding C# code: public static int Factorial(int n) { if (n <= 1) return 1; return n * Factorial(n - 1); } So if I compile Reflector's C# representation of the F# code, I would expect to get identical IL. However, if I compile both of these snippets in release mode and compare the generated IL

NOP in release build of F# code

坚强是说给别人听的谎言 提交于 2019-11-30 05:07:32
问题 I am playing with F# in VS2010 beta2, and since I am new to F#, I just picked one of the common examples and went ahead and implemented a factorial function as: let rec factorial n = if n <= 1 then 1 else n * factorial (n - 1);; If I build this and look at the generated code in Reflector, I get the corresponding C# code: public static int Factorial(int n) { if (n <= 1) return 1; return n * Factorial(n - 1); } So if I compile Reflector's C# representation of the F# code, I would expect to get

(this == null) in C#!

。_饼干妹妹 提交于 2019-11-28 15:18:47
Due to a bug that was fixed in C# 4, the following program prints true . (Try it in LINQPad) void Main() { new Derived(); } class Base { public Base(Func<string> valueMaker) { Console.WriteLine(valueMaker()); } } class Derived : Base { string CheckNull() { return "Am I null? " + (this == null); } public Derived() : base(() => CheckNull()) { } } In VS2008 in Release mode, it throws an InvalidProgramException. (In Debug mode, it works fine) In VS2010 Beta 2, it doesn't compile (I didn't try Beta 1); I learned that the hard way Is there any other way to make this == null in pure C#? Mehrdad

How to convert a VS 2010 solution back to 2008

守給你的承諾、 提交于 2019-11-28 02:36:44
问题 We started using VS 2010 and were very happy with it, so we converted our project into a 2010 solution (still .net 3.5) and continued our development in 2010. However, we are getting a lot of bugs recently and want to go back to 2008. The solution files have changed (new projects and files added everywhere), but everything is still in .net 3.5. I was wondering if there is an easy way to migrate back to 2008. 回答1: Depending on if they kept the solution file structure similar between 2008 and

HttpUtility does not exist in the current context

回眸只為那壹抹淺笑 提交于 2019-11-27 18:38:43
I get this error when compiling a C# application. Looks like a trivial error, but I can't get around it. My setup is Windows 7 64 bit. Visual-Studio 2010 C# express B2Rel. I added a reference to System.Web.dll located at C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0 , but it has a yellow exclamation symbol and I still get the above error. I also have the using System.Web declaration. What am I doing wrong? Update: After getting the prompt answer pointing me at the root cause, I searched a bit in Google to where it states that System.Web.dll is for the full

error C2065: 'cout' : undeclared identifier

梦想的初衷 提交于 2019-11-27 12:32:34
I am working on the 'driver' part of my programing assignment and i keep getting this absurd error: error C2065: 'cout' : undeclared identifier I have even tried using the std::cout but i get another error that says: IntelliSense: namespace "std" has no member "cout" when i have declared using namespace std, included iostream + i even tried to use ostream I know it's a standard noob question but this has stumped me and I'm a novice (meaning: I've programed before...) #include <iostream> using namespace std; int main () { cout << "hey" << endl; return 0; } I'm using Visual Studio 2010 and