visual-studio-2010

Problem when specifying build configuration in TFS2010 build definition

Allow me to start by saying that this is a new and first time TFS deployment with 0 experience in Visual Studio as an added bonus. I've managed to get everything installed and am excited to say that I can even deploy as part of the build process to our different staging environments, but this is where things have gone south. I'm trying ...

visual studio 2010 issue

When I write a program using C++ and I want to run it, I can't catch the console window. I press CTRLF5 and it does not work. I want the window to stay open and wait, even it finishes executing. Can anyone help me? Thanks in advance. ...

WPF: Select child control within a Canvas

Hi folks, A quick question regarding WPF: How can I select child elements within a Canvas/Grid? For example, in the following XAML snippet: <Canvas Name="parentCanvas" Width="200" Height="200" Background="AliceBlue" MouseMove="parentCanvas_MouseMove" MouseLeave="parentCanvas_MouseLeave"> <Border Name="border1" Margin="10" ...

Sharing Config settings between Web App and Console App

I'd like to share my VS2010 3.5 Web Apps settings with my Console App's (2 projects in the same solution). eg connection string, smtp, log4net settings This looked close: http://devlicio.us/blogs/derik_whittaker/archive/2008/04/15/how-to-share-configuration-files-between-projects.aspx ...

Attaching a process to an Event Handler in Visual Studio 2010 for Sharepoint 2010 site

Hi Guys, I've written an event handler for sharepoint 2010 site using visual studio 2010 . I had attached a breakpoint to the code and followed the process which i had done in visual studio 2008. It is to use the Attach to process option and select the w3wp option. The event gets attached but the breakpoint is not firing. I ve check...

Boost 1_44 includes don't work

Sorry for what seems like a silly question: But I've never, ever worked with boost, until tonight, and I'm finding that getting it configured seems to be harder to use than it should be. I wanted experiment with it tonight. So I downloaded the zip file, and unzipped it to a directory here: F:/boost_1_44_0 Then I created an empty c++ p...

Not able to see Parallel Tasks window in Visual studio 2010 RTM

The parallel task window should be under Debug > Windows in Visual Studio. However, I see only "Breakpoints" there. Am I missing anything? ...

JSON.Net throwing System.Security.VerificationException: Operation could destabilize the runtime.

I have a web application which uses JSON.Net to write out an array of data from a .Net Array(). When run in the VS2010 environment, it works fine. When run under IIS6 and .Net 3.5, it works fine. When run under IIS7 or 7.5 and .Net 3.5 when .Net 4.0 is installed (but the app pool and site is set to use v2 runtime), it fails with the e...

How to install "Web Application Project support" for Visual Studio 2010 ?

My root problem is that I get the following error message from my CruiseControl server : errorMSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. I know all i have to do to workaround this issue is to copy the files to the folder but I ju...

Ajax in VS2010 Resolve CSS and Images

Hi I've never used Ajax before and I'm new to web development generally, but I have a website for which the Tab Control would be helpful. I'm using Visual Studio 2010 Premium. I don't think a tab control comes with VS2010 (?) so I downloaded the Ajax toolkit from http://www.asp.net/ajaxlibrary/act.ashx. I extracted the zip then added t...

Reserved class name Visual C++

Hello! I want to create in my project class "Screen", "Graphics", "Font" and "Environment", but when I type these names and hit enter I get message: "Screen" is reserved class name or "Environment" is reserved class name. I don't want to make CScreen or ScreenC or something like that :/ I have Visual Stuido 2010. Is there any way to fix...

Can't find Microsoft.SqlServer.ConnectionInfo.dll assembly file?

I'm trying to dynamically get a databases Table structure using only C# code as follows: using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; public class LoadStuff { ... public void LoadDatabase(string vDatabaseName) { using (var vSqlConnection = new SqlConnection(DatabaseConnectio...

Visual Studio 2010 unit testing windows and running tests in general

I'm writing and running my tests on VS2010 with mstest. When I want to run a test, or entire tests in a class, sometimes Visual Studio decides to run all my tests. Why is that? How can I avoid it? Any tips? ...

Visual Studio 2010 MVC Project type Disappeared

I have been working with visual studio 2010 Premium RTM for over a month. When I installed it I had a fresh install of windows. (No betas or previous versions of VS) I have been creating new ASP.NET MVC2 C# projects since I installed it. I went to create a new mvc project today and I don't have that as an option anymore. I went in unde...

Change in Ajax between VS2005 and VS2010

Hi I've never used AJAX before. I'm new to web design but I have a website that I need to add certain dynamic functionality to. Ajax seems like it would help. Problem is, most of the Ajax articles relate to VS2005. I'm using VS2010 Premium Edition. There must have been lots of changes between the versions. I don't have any Ajax toolbox ...

"Tab" in the middle of line. Indent instead of making a tab. (VS 2010)

Hi, I think the headline says it all. But when I'm hitting the tab button in the middle of a line of code I want it to indent the whole line instead of making a tab which is not very useful - I never use tab in the code besides indenting and if I have to use a tab in a string I use \t. I know it´s only saving me two buttons each time (o...

Entity Framework: Entity type for a table with just one record and no PK

Hello. My db has a configuration table with just 1 record and no primary key. I would like to create a model with EF to map this table but when I use "Update model from database" the first field became the primary key. When I remove the PK and build, VS shows: The table/view 'dbo.TableName' does not have a primary key defined. The ke...

What are main difrences between * ^ and & in visual-C++ 2010?

What are main difrences between * ^ and & in visual-C++ 2010? ...

Visual Studio 2010 Document Formatting Rules

I know that in the Tools > Options (Text Editor > CSS > Format) menu I can choose between three types of document formatting for CSS files (compact, semi-expanded and expanded) as well as capitalization. A decision has been made in my organization to implement a formatting structure in XML files, where the attributes for an element line...

.NET Choose Items Dialog

Is there a standard .NET control for what I call "a two pane picker", or do I have to code it by hand? Two pane picker: The left pane has a list of items. The user can pick items from the left pane to put them in the right pane using buttons between the two panes. Picked items in the right pane can be reordered with buttons. An exam...