visual-studio-2010

Does an ASP.net MVC project support adding Dynamic Data?

Hi, Does an ASP.net MVC project support adding Dynamic Data? If so, any links/pointers to doco that gives an overview? ...

in VS2010 how do I add a whole directory of existing items

Hi, In VS2010 how do I add a whole directory of existing items? When I right click on project and Add ExistingItem I seem to be able to load only one file at a time? ...

Link error after update from VS2008 to VS2010

Hi all, Today I met an link problem after updating the VS version from 2008 to 2010, the error is something like this: error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: class std::basic_string,class std::allocator > & _...

Assert.AreEqual() Exception in VS2010

I am fairly new to unit testing and am using VS2010 to develop in and run my tests. I have a simple test, illustrated below, that simply compares 2 System.Data.DataTableReader objects. I know that they are equal as they are both created using the same object types, the same input file and I have verified that the objects "look" the sam...

Visual Studio 2010 freezes when attaching to a process for debugging. Why?

I recently installed Windows 7 64 bit and Visual Studio 2010 on my new laptop. However the computer hangs (OS freezes + mouse freezes + Visual Studio) for a good 3-5 seconds when Visual Studio attaches to the process. This is really annoying. What is really strange is that this is not happening on my slow 4 year old laptop which run Wind...

Easiest way to get metrics from TFS 2005 ? How to enable Reporting on TFS 2010?

We are developing on TFS 2005. I would like to get some data from there as far as number of checkouts and that sort of thing. I first thought I could get the databases and put them on my offline 2010 TFS test machine. But I don't see the REPORTING service under the Application Tier. I installed a full SQL instance and it is still not th...

Deploy ASP.NET MVC 2 to IIS 7.5 targeting .NET 3.5

I created an ASP.NET MVC 2 application in Visual Studio 2008. I set the release build to go through the ASP.NET compiler to precompile all the views, minify Javascript and CSS, clean up the web.config, etc. Since the production deployment is going to an IIS6 server, I set up my pseudo-production deployment on my Windows 7 machine to ha...

Hotkeys no longer work in Visual C# 2010 Express

Suddenly none of hotkeys in C# Express work (like F5, F6 etc.). I don't know what I've done, but no doubt its something stupid. Does anyone know how to fixed this? I have tried the Keyboard settings in Options, but it won;t even let me add hotkeys for some reason, even once I've removed the old ones. So re-adding them does not work. ...

What is the minimum OS for binaries created with VS2010?

This might sound like a stupid question, but I'm asking because my boss wants to know. What is the minimum Windows OS for binaries created with Visual Studio 2010? Not all the developers on the team have the Windows SDK installed. I know with it you can target down to Windows XP, but any idea what you can target without Windows SDK? ...

AutoComplete and VS2010 Internal WebDevServer caching ?

Ok this is a simple setup: DB has a view with personnel who have not been added to the system. The AutoComplete dynamically lists a numeric column field from the view. (Using Linq2SQL) (with autotracking off) Once this number is consumed - a refresh is done on the sqlserver's view. The Problem: This number still shows up in the Autoc...

How to organize external tools in Visual Studio 2010?

This is how one can set them up: http://www.c-sharpcorner.com/uploadfile/rmcochran/commandpromptinstudiotoolsmenu01152008103357am/commandpromptinstudiotoolsmenu.aspx My problem is that I have got too many of them set up, and I now need a separate sub-menu or two to keep them organized. I could not figure out how to do that. Feel free ...

Compiling a click-once app that requires administrator?

Hi, a lot of my programs require the ability to write files to the hard drive. When I first made these programs for XP they worked great. Now I'm less ignorant about UAC (got a new laptop recently). And for future customers...I've noticed the potential for a LOT of annoying error messages....and quite frankly if the program can't write d...

How to disable UAC using visual stuio 2010?

How to diable UAC using Visual Studio 2010 to run the compiled app without problems and witout using virtualization? I mean run the app as administrator. (with shield icon) ...

Obsolete attribute doesn't cause any compiler warning in VS2010

Hi, I'm using Visual Studio 2010. But find that the Obsolete attribute doesn't cause any compiler warning (I want it to cause a compiler warning). The warning level is 4. Thanks. ...

Understanding VS2010 C# parallel profiling results

I have a program with many independent computations so I decided to parallelize it. I use Parallel.For/Each. The results were okay for a dual-core machine - CPU utilization of about 80%-90% most of the time. However, with a dual Xeon machine (i.e. 8 cores) I get only about 30%-40% CPU utilization, although the program spends quite a lo...

Cyclomatic Complexity vs project health

I have done the code analysis for my project using VS2010. Here is my results, Maintainability Index - 75% Cyclomatic Complexity - 213 Depth of Inheritance - 7 Class Coupling - 98 Lines of Code - 747 can any body, please explain about my project health. is it doing good, bad or average? How can we interpret these results? ...

Where can I find latest (beta/ctp maybe) version of Prism and/or any quickstart for composite WPF applications with Visual Studio 2010?

All I've found about composite applications is for VS 2008. How do I start with composite WPF applications with VS 2010? Can you recommend a good intro for creating a composite WPF application from scratch with Visual Studio 2010? ...

New cast exception with VS2010/.Net 4

[ Updated 25 May 2010 ] I've recently upgraded from VS2008 to VS2010, and at the same time upgraded to .Net 4. I've recompiled an existing solution of mine and I'm encountering a Cast exception I did not have before. The structure of the code is simple (although the actual implementation somewhat more complicated). Basically I have: ...

[C#] Best practice on creating a webservice wrapper in VS2010?

Hi there, Background - We are consuming a webservice issued by a telco operator. Any apps consuming their WS needs to be tested on their staging IP, and this creates an unpredictable overheads on our project timeline as the turnaround time of the operator varies case by case but usually long, without mentioning the red tapes one has to ...

MSBuild Script and VS2010 publish apply Web.config Transform

So, I have VS 2010 installed and am in the process of modifying my MSBuild script for our TeamCity build integration. Everything is working great with one exception. How can I tell MSBuild that I want to apply the Web.conifg transform files that I've created when I publish the build... I have the following which produces the compiled w...