visual-studio-2010

Planning to upgrade VS 2005 to VS 2010

Hi, I have installed VS 2010 and want to upgrade all code written in VS 2005 to VS 2010. Please note that we do not have VS 2008, all code are in C# 2.0 and Asp.net 2.0 only. Can anyone please tell me know what points need to be considered while migrating. Thanks in advance! ...

Process List<T> member when added in a separate thread.

So first here is some pseudo code of what I want to improve. public List<ProcessData> Processes; System.Threading.Thread ProcessThread; void ProcessLoop() { while (true) { for (int i = 0; i < Processes.Count; i++) { if (HasPriori...

Why does VS2010 remove my references?

In a small console application I'm writing to test something I need to add a reference to one of the DLLs built from a build of another solution. The Add References dialog works perfectly; after I browse to the DLL on disk and add it I see it with a green tick and it appears in the list of references in Solution Explorer. All fine so far...

Symbols not loading for Silverlight app on VS 2010

Hi I have a silverlight application pointing to Silverlight 3. I use VS 2010 Ultimate. When i run it in debug mode or attach to process, break points will be highlighted with yellow exclamations saying symbols are not loaded. I tried the solution given here: http://tiny.cc/li8av It points to a pdb file on Framework's temp folder and say...

How to backup existing database and website as part of a MSDeploy package?

I am researching one-click deployment with Visual Studio 2010, the current deployment process involves zipping up the contents of the IIS folder and taking a backup of the current database before completing the remaining manual deployment steps. This allows us to roll back a deployment, I need to retain the essence of this process if not...

How do I create/add a sql server compact edition db in vs2010?

I have vs2010 ultimate installed and sql server 2008 developer. I created a package using the openAuth Extension from the online gallery and can not find an option to add a sql server CE db to my project. I tried changing the target framework to 4.0 and still nothing. I see a type that says SQL Server Database, but I believed that was f...

Debugging silverlight in a WPF app...

I am developing a WPF app that contains a webbrowser control that loads a silverlight application. I would like to be able to launch the app from visual studio (F5) and have the debugger attach to the silverlight code. However, I've not had any luck with this. The best I can currently do is to launch the app without attaching, then once...

Open Project from SVN

My primary dev workstation has tortise and visualSVN installed and VS10 offers me a command off my File menu - 'Open Solution from SVN' - (or something to that effect...I can't open that workstation right now so the wording is probably different. But the point is that i has a way to open a project that stored at my VisualSVN server and a...

Error while upgrading VS 2005 to VS 2010

Hi, I have installed VS 2010 and want to upgrade all code written in VS 2005 to VS 2010. Please note that we do not have VS 2008, all code are in C# 2.0 and Asp.net 2.0 only. I have set target framework to 2.0 for all of my Libraries and web projects. It complies without any error! However, when site opens in IE (Set to default.aspx)...

Visual Studio 2010 - How to optimize

I am using the 2010 version of Visual Studio, but am having many problems with delays - my computer has a good configuration of RAM, and processor - especially when saving files. Currently I am carrying a medium-sized project, only one open file (ASP.NET page) using a single suite of components from third party, the Telerik. And yet, in...

System.ServiceModel.ServiceActivationException in WCF Service

Hello Everyone, We have recently moved from VS 2008 to VS 2010. With that my applications are now running off of the .net 4.0 framework and MVC 2.0. After doing a little bit of conversion on my local machine to both the MVC project and the services project that gets referenced all is running seamlessly on my local machine. I next cop...

Problem in Add Reference dialog with paths containing #

I am new to using Microsoft development tools but have been using Visual Studio 2010, .NET 4 and C# for the past few weeks. I ran into a problem yesterday creating a new project the same way I have been doing it successfully from the start: right-click on the project in the Solution Explorer Add Reference, which used to bring up this di...

Help me translate Python code which replaces an extension in file name to C++.

I apologize if you know nothing about Python, however, the following snippet should be very readable to anyone. The only trick to watch out for - indexing a list with [-1] gives you the last element if there is one, or raises an exception. >>> fileName = 'TheFileName.Something.xMl' >>> fileNameList = fileName.split('.') >>> assert(len(f...

automate adding references in large VS solution

I'm working on a VS solution with 100+ projects in C#. I'm currently migrating it from VS 2008 to VS 2010. There is some work to be done because a lot of the projects use Enterprise Library 4 (which has to be upgraded to 5.0) and WCSF 2008 (which has to be upgraded to SCSF 2010). I'm going through the SCSF upgrade instructions, and one i...

Do I need the resx Designer.cs file?

My company uses a combination of some database tables, a web page front end and an "export" application to handle our string resources in our web sites. The export application used to work just fine when we used VS2008, but since switching to VS2010 the resources now have a designer.cs file "beneath" them in the solution explorer. The ...

Unexplained stack allocation in native C code built for x64 under Visual Studio 2010.

I am trying to use CL 16.0 for x64 (VS 2010) to produce some readable 64-bit ASM code for an example, but CL insists on preallocating a ton of stack space (28h bytes), with the following line: sub rsp, 40 ; 00000028H (actual value depends on number of local vars of course) Question is, how can I disable this behavior? It is difficult...

WiX project error when opening up solution in Visual Studio

I have a solution with a WiX project in it. Everytime I open it I get an error and then the WiX project is displayed as unavailable. The error is: Setup\Setup.wixproj : error : Error HRESULT E_FAIL has been returned from a call to a COM component. If I right click on the project and then select Reload Project it works fine. I've t...

C++0x Lambda overhead

Is there any overhead associated with using lambda expressions in C++0x (under VS2010)? I know that using function objects incurs overhead, but I'm referring to expressions that are passed to STL algorithms, for example. Does the compiler optimize the expression, eliminating what seems to appear like a function call? I started to really...

MbUnit and Resharper integration not working in Visual Studio 2010

I set up a new machine this week. It is running Windows 7, 64 bit. I installed Visual Studio 2010 Professional, then Resharper 5.0, rapidly followed by Resharper 5.1 when it came out soon after. Since I have a project with tests in MbUnit, I have installed MbUnit/Gallio, using the 3.1.397 version x64 msi installer from here. I was expe...

show project url in vs 2010 in title bar

how i can show the project url in vs as title look like vs 2010 d:project/mvcapps1 ...