visual-studio-2010

Does VB.NET and Visual Studio 2010 support multiline anonymous method?

I found that this answer was asked and answered before VS2010 was actually released. They say that VB9 has only single-line anonymous functions. We're adding full statement and multi-line lambdas in VB10. But I tried to add this code Dim test2 = Function(t1 As T, t2 As T) ( Dim val1 As IComparable = DirectCast(prop.GetValu...

Visual Studio 2010 ultimate developer license

I'm not quite sure how the Visual Studio 2010 Ultimate licensing works. How many developers can use Visual Studio in Visual Studio 2010 Ultimate? Is it a single user product? or for as many developers as required? See buying here : http://msdn.microsoft.com/en-gb/subscriptions/buy.aspx ...

Error during solution import in Visual Studio 2010 and when applying a web template

Hi I'm trying to import a solution from a wsp-file into a SharePoint 2010 project in Visual Studio 2010. The solution file results from a site template I exported using the "safe as template" option of a website. After selecting the solution file I exported and specifying the single items I want to import (I select all), Visual Studi...

Install directory from deployment projects

Hello all, I'm developing an application and I'm going to deploy it with the help of a deployment project (which is gonna create an installer). At one step in the installer, it will allow the user to change the installation folder for the application. I need to know what this folder is because there will be some files saved there that...

Running unit tests after local build with Visual Studio 2010

Using Visual Studio 2010, is there a way to run all unit tests in a solution automatically after building the solution locally? ...

Clickable stack trace from Visual Studio's Output pane?

A stack trace has appeared in the Output pane of my VS2010. Is there an extension/etc that will make that stack trace clickable (to navigate to the relevant code)? ...

visual studio 2010 from 2005?

What happens if I compile and deploy solutions written in vs 2005 using 2010? Must the web server have 3.5 and 4.0 installed? Will my web.configs change? I'm talking mostly about standalone DLLs used in SharePoint and Web application solutions that use .net 2.0. Can I have vs2010 and vs2005 on the same development client? Is there...

VSWindowManager replacement - need to switch VS2010 windows to/from dual monitor config

Hi, I am trying to find a solution that would let me switch between single and multi-monitor configurations in Visual Studio 2010. I see the VSWindowManager has not been updated - is there any other solution? ...

Visual Studio 2010 new project wizard manufactured MFC Dialog program doesn't compile in Debug Mode?

I've created a new project using the Visual Studio 2010's wizard. Once VS was finished generating the project I tried building it - in release mode it worked great, but in debug mode it didn't, giving the following compiler error: 1>------ Build started: Project: MyProj, Configuration: Debug Win32 ------ 1>Build started 05/10/2010 22:17...

How to combine BrowserNavConstants in c++?

I am trying to use BrowserNavConstants for .Navigate2 flags, but I dont know how to combine more than one in the same variant for c++. On VB i would use navNoHistory + navNoReadFromCache + navNoWriteToCache or Flags := NavNoHistory or NavNoReadFromCache or NavNoWriteToCache or NavAllowAutosearch; for delphi, but how should I do it...

Run ASP.NET Development Server "virtual path" as an application

I want to run my new web application with forms authentication under the ASP.NET Development WebServer (Cassini), but not at site root "/" (rather, at the path it will reside in production; "/New"). However, the build process gives the error: "It is an error to use a section registered as allowDefinition='MachineToApplication' ...

How to turn off auto-correction in VS2010 find TB widget

In visual studio there is a toolbar item that can be very useful, or at least used to be in previous versions. It is the find toolbar and it has a text field you can type into and hit enter to go to next occurrences of the word match. Unfortunately, in VS2010 this thing has an auto-correct feature I can't seem to work around. It gets ...

Visual Studio 2010 Pro: Shared test project, but developer-specific connection strings

Hi, We have multiple developers working on the same unit test project that have unique database connection strings and user credentials. What's the best way to store this information on a per-developer basis on their local machines, so we're not always editing a source file that gets checked into our VCS and (hopefully) reverting our c...

What's the best way to manage multiple websites within a single solution in Visual Studio

I often create several sub domains of a web project, such as blog.domain.com, www.domain.com and example.domain.com. Typically I set these projects up within a single solution, along with any common class libraries, and assign each a static port number. To view a specific site I right click a file in the solution explorer and "View in ...

Ankhsvn not integrated to Visual Studio 2010

Hi , I have website project that has been subversioned already.I installed ankhsvn and when i open website project in visual studio 2010 it doesnt show version control icons in solution explorer???? Thanks ...

Why is my C# application code not working with my GUI?

Ok so I am adding on to my last project, where I created a shark race. Everything ran smoothly, and then it got fancy. Here are the requirements: 1) Declare all of the instance variables to be public properties defined with get and set accessor methods along with corresponding private backing fields. 2) Remove the MyBet instance variabl...

Compound literals in MSVC

In GCC, I'm able to do this: (CachedPath){ino} inode->data = (struct Data)DATA_INIT; where: struct CachedPath { Ino ino; }; typedef int8_t Depth; struct Data { Offset size; Blkno root; Depth depth; }; #define DATA_INIT {0, -1, 0} MSVC gives the following error for these kind of casts: error C2143: syntax error : m...

Visual Studio 2010 ReportViewer Assembly References

Hi! I didn't do C# for quite some time, but I'm updating some of my projects now. I imported a project from Visual Studio 2008 into 2010. Building got me some confusing errors into the log: Considered "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.ReportViewer.Common.dll", but it didn't exist. Considered "...

OpenGL config in Visual Studio 2010

Hey Guys, i would like to use OpenGl in Visual Studio 2010. Following Problem: "error LNK1104: Data "GIU32.lib OpenGL32.lib freeglut.lib glut32.lib" could not be oppend" I read many Tutorials but they don´t help me :-(. The lib data sets are in "C:\Program Files(x86)\Microsoft SDKs\Windows\v7.0a\lib". The header data sets are in "C:\...

TFS Custom WorkItemType Set field to current user

I'm trying to add a custom workitemtype to TFS. I would like to have a field called SignOff, with possible values of Yes/No. Next to that I would like to have a field called SignOffBy - when you change the SignOff field the SignOffBy field should be set to the current user. <FIELD name="Signoff" refname="MyProj.Signoff" type="String...