visual-studio-2010

Visual Studio 2010 refresh not working

In VS 2008, I used to be able to create a file on the file system (like a .cpp file, for example), and then I could click the refresh button in VS and the file would show up. I have "Show All Files" checked. Note by "create a file on the filesystem" here, I mean like going out to windows explorer and creating a new file, in other words, ...

Disable code analysis for current file in ReSharper 5

In ReSharper 4.x there was a shortcut (Ctrl+8) for turning off the code analysis for the current file, but I cannot find the equivalent in ReSharper 5.0. Anyone knows where to find it? The reason I want this is because I want to disable ReSharper when editing XAML-files (because it's just incredibly slow...), and I don't want to go thro...

Good Code Spell Checker for Visual Studio 2010

Are there any good (preferably free) solutions out there? I have already found these: Spell Checker Code Spelling Checker Extension for Visual Studio 2010 (VSX) but will appreciate more suggestions. ...

How to get the xpath of a certain node when viewing an xml file in Visual Studio?

When I open an xml file in Visual Studio and browse it, I want to get the xpath of a certain node at the cursor like right click and choose "get xpath from this node" or something like that. How can we do that in Visual Studio 2010 or which tools/addons to use to do that? Hope to hear from you all. ...

sql performance, visual studio

Hi there I'm using linq2sql and .net 3.5 with vs2010. I'm experiencing bad sql performance when i run my program through vs2010, but not when i execute the same debug enabled exe outside vs. Whats going on here? Any ideas? ...

How to enter a Visual Studio 2010 evaluation extension key after evaluation period expiry

I had downloaded and installed VS 2010 Ultimate evaluation for 30 days. It allows me to get a 60-day extension if I register. My register just ended. 2 days ago, I got the extension key by registering but did not enter it because I thought I should wait till the product evaluation period expires. Now, when I open up VS 2010, it gives m...

how to map sharepoint mapped resource folder to app_globalResources folder in VS 2010 ??

how to map sharepoint mapped resource folder to app_globalResources folder in VS 2010 ?? ...

How to set PlatformToolset from custom property sheet in Visual Studio 2010

I am moving now from VS 2005 to VS 2010 with products consisting of few solutions with numerous projects each. I wanted to make use of the property sheets system so our numerous configurations would be easier to maintain. One of the issues is that we want to use Windows SDK 7.1 (as we need BaseClasses sample - and if we have to use that...

Doesn't .NET 4.0 contain .NET 2.0?

Hello, I've encountered a strange problem. I've installed "Visual Studio 2010 ultimate". While installing it showed that it sucessfully installed .NET 4.0. While installing some other softwares. They complain that .NET 2.0 is missing and asking me to install it. How is it possible? .NET 4.0 must include .NET 2.0 right? EDIT: Now, I'm...

System.Diagnostics.Debugger.Launch(); on Visual Studio C# 2010 Express edition

Hi, I have a windows service where I use System.Diagnostics.Debugger.Launch(); to debug the service. It worked on VS 2010 Pro RC, not on the express edition... Is there a way to debug a windows service with express edition ? Thanks in advance ...

vs2010 only file names

My website has several nested folders and sometimes long file names, so sometimes only 4 tabs can be opened at a time. Can vs2010 be made to show only file names and leave out any path information? Can the max displayed length for tabs be set? I know the window can be split so top and bottom both have their own tabs. ...

Visual Studio 2010 Crashing on Rebuild in Windows XP

For security reasons my company has our development environment set up offline and we have yet to get approval to run windows 7 on those PCs so we're running XP. A few of my coworkers and I have installed VS 2010 and begun a little development in it, however we've found that the IDE crashes at some point during the building process with...

C# DialogBox and DialogResult

I want to get the button of the DialogBox that the user clicked ... yet when I use the DialogResult I get this error 'System.Windows.Window.DialogResult' is a 'property' but is used like a 'type' How can I use the DialogResult?? Ok, I`ve managed to solve it. MessageBoxResult Result = MessageBox.Show("Message Body", @"Caption/Title",...

Windows Service Setup Project Problems Converting From VS.NET 2008 to 2010

I'm trying to convert a solution from VS.NET 2008 to 2010. The solution includes a Windows Service project and a Setup project that installs the Windows Service. I'm having trouble compiling the Setup project. I've tried starting this over from scratch a few times, following the tutorial here under the section titled To create a setup pr...

RDLC Export Local Report To CSV

In Visual Sudio 2010 ASPX ReportViewer Control the only export options are: Excel, PDF, and Word. How can I export the report to CSV. I understand that SSRS reports can do this, but in my situation this is not a possibility. ...

DotNetOpenAuth with Ajax on Visual Studio 2010 .NET 4 problem

I have been using DotNetOpenAuth's "OpenIdTextBox" control on our login page. We used VS 2008 + .NET 3.5 + Ajax UpdatePanel without any issues. Today we tried to upgrade the whole project to VS 2010 + .NET 4.0, the Ajax UpdatePanel gives me a javascript error when it redirects to the provider (such as Google) to sign in. "Sys.WebForms...

VS2010 Database Project Schema View "red cross" against object

Having just created a new database project in VS2010 using the wizard I've noticed that in the schema view some objects have a red cross in the object icon. Does anyone know what this is supposed to indicate? TIA ...

Unexpected "Bitmap Region is already Locked" exception with GetEncoderParameterList. Any ideas?

I'm trying to use this sample code from Microsoft to determine what encoder options are available for the JPEG encoder. (The real problem I'm trying to solve is to see if I can set the Chroma subsampling parameters explicitly) http://msdn.microsoft.com/en-us/library/bb882589.aspx private void GetSupportedParameters(PaintEventArgs e) { ...

Utility that extracts necessary files from a VS2010 solution folder?

I'm looking for a utility that copies all files from a VS2010 solution folder, which are necessary to build the solution, but ignores all other files (.obj files etc). My intended use is for emailing solutions or making them available on a blog etc. I'd prefer a utility that's portable (runs without having to be installed), but if there...

Cannot convert existing ASP.NET MVC 2 solution to Azure Web Role in Visual Studio 2010

Hi Everyone, I've been working on an ASP.NET MVC 2 (.NET 4.0, Visual Studio 2010) application for a while and have decided that I would like to deploy it as an Azure application. After installing the latest (June 2010) Azure tools (through Visual Studio itself) I've added a blank CloudService to my solution. Whenever I try to add a "We...