visual-studio-2010

Running unit tests after local build with Visual Studio 2010

早过忘川 提交于 2020-01-11 04:38:26
问题 Using Visual Studio 2010, is there a way to run all unit tests in a solution automatically after building the solution locally? 回答1: You could record a macro to do it. In the macro, you would run the build and then start the unit tests. Then you could just run the macro to do it all in one step. Check Tools->Macros for more details. EDIT You can also record keyboard shortcuts for the macros, and I think you can use existing key sequences, such as CTRL-SHIFT-B for build. So if you wanted to

Response.Redirect from one web project to another in Visual Studio

青春壹個敷衍的年華 提交于 2020-01-11 03:44:43
问题 I am attempting to integrate a project into a pre-existing solution. The start-up project in the solution is named "Foo." It is written to the virtual path "/csweb/." When this project starts up it loads /csweb/Default.aspx. This is the current, unmodified home page. I am attempting to redirect to a different home page in a different project. I added a second project to the solution named "Bar." Under its project properties I told it to write to the virtual path "/csweb/." It is not marked as

Versioning with Visual Studio 2010 and HG

被刻印的时光 ゝ 提交于 2020-01-11 03:22:06
问题 Recently me and my team got a HG repository for versioning as this would make it easier and better to develop our application. We are using Visual Studio 2010 and c# All of the project is under version control.. Unfortunately, when one of us commits, usually the other gets an error of some kind when opening the solution (due to the various files VS has) My question is: what files should be put under version control? (and removed in my case!) PS: we have 3 Projects: (using XNA) game, contents,

c++0x inherited constructor in templates

拜拜、爱过 提交于 2020-01-11 03:06:10
问题 Here is class foo: template <typename T> struct foo { foo() { t = nullptr; } foo(T* p, bool flag) { t = p; } private: T* t; }; Here is class bar: template <typename T> struct bar: public foo<T> { using foo<T>::foo<T>; }; Is it correct syntax for inheriting constructors? If I use "using foo::foo;" then compiler of Visual C++ 2010 dies. So basically how to inherit constructors from template classes in VC++ 2010? 回答1: template <typename T> struct bar: public foo<T> { using foo<T>::foo<T>; }; To

error BC30456: '[Method]' is not a member of 'ASP.[CodeBehind]_aspx'

折月煮酒 提交于 2020-01-11 03:06:08
问题 Pretty simple question. I'm quite certain I have the Class, method, codebehind, etc linked properly. Lot's of posts online say that this has something to do with compiling and/or dll/bin files, but none of their help has worked for me. Compiler Error Message: BC30456: 'gvLegs_PageIndexChanging' is not a member of 'ASP.nestedgridview_aspx'. Source Error: Line 43: <asp:Label ID="lblEmpName" runat="server" Text='<%# Eval("Location")%>'></asp:Label> Line 44: <asp:Literal runat="server" ID="lit1"

How to turn IntelliSense on in Visual Studio 2010?

↘锁芯ラ 提交于 2020-01-11 03:02:53
问题 I am trying to enable the intellisense for aspx file types. I checked auto list members in the texteditor options. Either checking hide advanced members or not makes no difference? How can I enable intellisense in vs.net 2010? 回答1: Out of the box, IntelliSense should be enabled for ASP.NET, including .aspx files. If it stopped working you have a couple of options, listed below. Try the first or second, and only if nothing else works, try the last option. You can try this from the Visual

Visual Studio 2010 — how to reduce its memory footprint

故事扮演 提交于 2020-01-10 22:04:59
问题 I have a solution with just under 100 projects in it, a mix of C++ and C# (mostly C#). When working in VS2005, the working set of Visual Studio is considerably smaller than that of VS2010. I was wondering if there are some things that can be turned off, so I can develop in VS2010 under 32-bit OS without running out of memory. 回答1: You can try using the Solution Load Manager. It'll let you mark some of the projects files as load on demand or not load at all. That may help. 回答2: A 64-bit OS

Visual Studio 2010 — how to reduce its memory footprint

谁说胖子不能爱 提交于 2020-01-10 22:04:23
问题 I have a solution with just under 100 projects in it, a mix of C++ and C# (mostly C#). When working in VS2005, the working set of Visual Studio is considerably smaller than that of VS2010. I was wondering if there are some things that can be turned off, so I can develop in VS2010 under 32-bit OS without running out of memory. 回答1: You can try using the Solution Load Manager. It'll let you mark some of the projects files as load on demand or not load at all. That may help. 回答2: A 64-bit OS

Visual Studio uses XHTML tag closing for HTML5 tags

最后都变了- 提交于 2020-01-10 17:30:52
问题 Whenever I type out tags that don't require an end tag, Visual Studio adds a forward slash to it, as if they were XHTML. I think this is unclean and annoying, and I'm hoping anyone can tell me how to fix or work around this issue. It even happens when I complete <!DOCTYPE html with a > , and it'll form <!DOCTYPE html /> . 回答1: What you could do is disable the auto closing tag option in Visual Studio. Go to Tools >> Options >> Text Editor >> HTML >> Formatting Uncheck the "Auto insert close

Why do I get a blank form when I debug in C#?

你。 提交于 2020-01-10 15:38:46
问题 i just got rid of all my compiler errors. One of the problems was that I accidentally renamed the visual form itself instead of one of the individual text boxes on my GUI. When I went to change what I had messed up in the code, it seemed to be working again. However, whenever I hit F5 to debug, I get a smaller, blank window as my GUI, and not the one that I had designed in Visual Studio. Any suggestions? Here's my main (Forms) class code: using System; using System.Collections.Generic; using