visual-studio-2010

Complete list of tools and technologies that make up a solid ASP.NET MVC 2 development environment for beginners

This question is related to another wiki I found on SO, but I'd like to develop a more comprehensive example of an automated ASP MVC 2 development environment that can be used to develop and deploy a wide range of small-scale websites by beginners. As far as characteristics of the dev environment go, I'd like to focus on beginner-friend...

Refactoring multiple interfaces to a common interface using MVVM, MEF and Silverlight4

I am just learning MVVM with MEF and already see the benefits but I am a little confused about some implementation details. The app I am building has several Models that do the same with with different entities (WCF RIA Services exposing a Entity framework object) and I would like to avoid implementing a similar interface/model for each...

How do i serve shortcuts/.lnk from web servers?

without using a database i wanted a file to point to the newest revision of a file. Someone suggested using a shortcut. Knowing i can rewrite file.ext to file.ext.lnk i thought it was a great idea. Then i tried it, my server (VS 2010rc) serves the shortcut rather then the file. Not what i wanted... How do i serve the file the shortcut i...

How does the UML support inVisual Studio 2010 compare to Visio?

Visio has been supporting UML diagrams for quite some time now. Microsoft has now added UML support in Visual Studio 2010. Will these two tools interoperate? Further how does one go about deciding which tool to use for what diagrams (assuming one already has both tools)? ...

Warning as Error - How to rid these

I cannot figure out how to get rid of errors that basically should not be halting my compile in VS 2010 and should not be show stoppers, or at least I will fix them later but I don't want the compile to just error and halt on these kinds of problems. For example I'm getting the following error: Error 1 Warning as Error: XML commen...

Const references when dereferencing iterator on set, starting from Visual Studio 2010

Starting from Visual Studio 2010, iterating over a set seems to return an iterator that dereferences the data as 'const data' instead of non-const. The following code is an example of something that does compile on Visual Studio 2005, but not on 2010 (this is an artificial example, but clearly illustrates the problem we found on our own...

How to use TFS with Visual Studio without Team Explorer

I'm looking at the MSDN subscription comparison (http://msdn.microsoft.com/en-us/subscriptions/subscriptionschart.aspx) and am a bit confused. Regarding VS2010 Premium and Ultimate: what is the difference between the two? Both offer TFS but only Ultimate comes with Team Explorer. Can you use TFS without Team Explorer? ...

Where are VS/TFS 2010 DIFF options at?

I'm newish to TFS and am working with VS and TFS 2010 RC releases. In every other DIFF tool I've used in the past I have had options for configuring how to treat whitespace differences, among other things. Where are these options when working with VS2010 and TFS2010? Thanks! ...

Do you need Visual Studio 2010 to manage a 2010 build agent?

we are considering TFS2010 but need to confirm some information as we're still using TFS2008 and vs2008. the question is whether we can still manage our builds using the 2008 client. please advise. thanks! ...

Build MSI to install DLL and make it accessible from "Add References" in VS

I'd like to build an MSI installer that installs a managed DLL and makes it accessible to users from Visual Studio's "Add References" menu in Solution Explorer. I believe I am supposed to add a key into the Windows registry but I cannot see how to tell the VS project for the MSI to do this at install. How is this done and where should I...

Unit Testing Custom Code Analysis Rules in 2010 - Any Hope

In the past it has been a real PITA to unit test custom Code Analysis rules. I haven't found anything out there that shows the situation to be any different in 2010, but I'm not giving up. If anyone knows if this is "possible" in 2010 please respond - thanks! ...

VS2010. Dropdownlist Autopostback works in IDE, not when deployed

I have a VS2010 RC ASP.NET web page,when a user changes the drop down selection on an auto postback dropdown, it refreshes a small grid and a few labels in various places on the page. I know wrapping a whole page in a big UpdatePanel control will cause horror from many of you, but that's what I did. I really didn't want a full page refr...

Possible to do UML Diagrams in Visual C# and then have code generated from it?

I'm using Visual Studio 2010 RC. Would it be possible that after doing my UML Diagrams, I could then generate classes with method stubs from it? Thanks ...

VS HTML Designer Tag Hierarchy Links. Broken in all versions including 2010-or is it me?

Should this bar on the HTML designer show the tag name? It sometimes does! Here's an image of what I referring to. I thought for sure it must be a bug but considering that I heard that MS was rewriting the editor (designer too?) I am starting to question whether I know how to use it! Note the "TD" tooltip on the bottom right. Shouldn...

The best way to organize WPF projects

Hello everybody, I've started recently to develop a new software in WPF, and I still don't know which is the best way to organize the application, to be more productive with Visual Studio and Expression Blend. I noticed 2 annoying things I'd like to solve: I'm using Code Contracts in my projects, and when I run my project with Expres...

How to access the controls of form2 in form1 in C# 2008/2010

How to access the controls of form2 in form1 And also I would like to create events for form2 controls in form1 itself. How to acheive this? Please help me with complete code using C#2008, Windows Forms. ...

Why do I get different results from profiler in Visual Studio 2010 RC

I have setup 1 project in VS2010 RC. A workflow console application that simply counts from 1 to 10000 and writes each number to console. When I execute "F5" this application it takes minutes to finish, but when i execute this application with profiling it finishes in 3-5 seconds. Does anyone know why? ...

What should be contained in a global Subversion ignore pattern for Visual Studio 2010?

After installing and using Visual Studio 2010, I'm seeing some newer file types (at least with C++ projects ... don't know about the other types) as compared to 2008. e.g. .sdf, .opensdf, which I guess are the replacement for ncb files with Intellisense info stored in SQL Server Compact files? I also notice .log files are generated, wh...

VSTO Development - Key Improvements In VS2010 / .NET 4.0?

Hi all, I am trying to make a case to my bosses on why we should use VS2010 for an upcoming Excel Workbook VSTO application. I haven't used VSTO before but have used VBA. With 2010 just around the corner, I wanted to read about the improvements made to see if it was worth using 2010 to develop this application. So far I have read 2 maj...

TFS and team project portal question

The team explorer for my project looks like this: mytfsserver\mycollection -- Project 1 solution -- Project 2 solution -- Project 3 solution When I right click on one of the solutions and do a "Show Project Portal", I see the following hierarchy: mycollection - WSS site Project 1 site with dashboard (appears to be a MOSS site) Projec...