visual-studio-2010

MSBUILD 4.0 Fails on AJAX Extensions

We have a .Net 2.0 web app and are converting the solution and projects to Visual Studio 2010 (they were Visual Studio 2005). We are leaving the project targeting Framework 2.0. The app includes Ajax extensions. We did the conversion and can build the project successfully on the server using Visual Studio. However, when we attempt to...

Connecting to SQL Server Express in silverlight 4 appl, the db doesn't shows up in Management Studio Express

I'm using SQL Server Express named instance and LinqToSql in my Silverlight 4 application. The database located in the web application App_Data folder. I attached the db via VS2010. The connection string generated by the program automatically, after double clicked on the db file. When I load the solution, I get an error: "The connecti...

ClickOnce deployment error due to Microsoft.VisualStudio.Shell.Interop.9.0 Version9.0.0.0 missing from the Global Assembly Cache (GAC)

Hello all, I am developing a C# application in VS 2010 that is to be deployed via ClickOnce. However when I try to deploy the application on a client machine I get the following error: Unable to install or run the application. The application requires the assembly Microsoft.VisualStudio.Shell.Interop.9.0 Version 9.0.0.0 to be installe...

What are the other possible names of project files in C# other than .cproj?

.cproj is not the only name of the project file. My solution says there are 5 projects but only three .cproj files are seen. What is the file extinsion of other project files/? THe icon that represents the other two look different as well: ...

VB 2010 Express - Debugger is not breaking on errors, Sub producing error simply terminates

I'm using VB 2010 Express. When an error occurs in the form load function, the form load function simply terminates. Then, when I click on one of my buttons, the button click sub also terminates if it has an error. I can wrap the code that produces the errors in try/catch blocks, but I'd very much rather the debugger to throw an imm...

Best way to implement nested loops in a view in asp.net mvc 2

Hi, Trying to implement some nested loops that are spitting out good old nested html table data. So the question is; What is the best way to loop through lists and nested lists in order to produce easily maintainable code. It can get quite narly quite fast when working with multiple nested tables or lists. Should I make use of a HTML he...

When I generate the DDL from an Entity Framework 4.0 model can I change how it names columns in a many to many relationship?

I have created a very simple Entity Framework 4.0 model using VS2010 Professional. Ignore the Nationality entity which is a simple one-to-many relationship. I have an Entry entity which has a many-to-many relationship with the Team entity because an Entry can have more than one team. This is represented below: This then generates the...

Visual Studio 2010 Find and Replace dialog on dual monitors is whacked

Is anyone else having issues with the find and replace dialog in Visual Studio 2010? For as many improvements that have been made for multi monitor support is VS, this is making me crazy. Whenever I open up the Find and Replace dialog in VS 2010, it often straddles the two monitors. The other dialogs, like Navigate To seem to always w...

VS 2010 .NET Framework issue w/ an assembly targeting 3.5 complains that it needs later version of .NET framework

Hi guys, I'm having an odd issue with an assembly that is targeting .NET 3.5. When including this assembly via Add References/Browse to DLL - it complains: "MyAssembly.dll", or one of its dependencies, requires a later version of the .NET Framework than the one specified in the project. You can change the .NET Framework target by cli...

Can an extension be made to interact with a floating/dockable window?

Is it possible to create an extension that interacts with a floating/dockable window in VS2010? If so, are there any code samples that could demonstrate this? At the very least could I create a XAML markup to look like a floating window is docked to the view somewhere? Thanks, Nick ...

calling a vb.net class from c# in VS2010

So i am working on a wpf browser project in c# but on of the class library's I need is in vb.net. So in VS2010 I have imported the solution called vblib and it shows up on the solution explorer. The class i need is public class vbintopm. So right now I have using vblib; //down a few lines vbintopm callvb= new vbintopm...

Read/Write to the Solution GlobalSection from a AddIn

Hi I'm trying to write a Visual Studio 2010 addin, and wish to persist some information in the solution file. For this a custom GlobalSection, or the ability to add to the SolutionProperties globalsection would be ideal. However, I can't find any information whatsoever on how to access the said information from the extensibility obje...

Best/Worst feature(s) in Visual Studio 2010

What is the Best/Worst features of Visual Studio 2010 you like/dislike most, comparing to VS 2008? ...

Convert C++/MFC from visual studio.net 2002 to visual studio 2010

We will convert a number of programs written in C++ and MFC in Visual Studio.NET 2002 to Visual Studio 2010. What problems can we expect to encounter? What changes are there in the libraries that are worth knowing? ...

Must Have add-ons in Visual Studio 2010

What is must have add-ons in Visual Studio 2010? ...

Add Visual C++ property sheets using CMake

I'm currently porting a gcc project to Visual C++. It's defined in a CMake file, and I have created a Visual C++ property sheet to aid in compatibility (GccCompat.props). Everytime the Visual C++ project files are regenerated by CMake, the property sheet has to be added manually, since I don't know how to add it automatically. So, the qu...

Visual Studio 2010 Intellisense squiggles for C code

Intellisense in Visual Studio 2010 interprets C code as C++ and marks errors where they don't exist, as in: struct my_struct *s = malloc(sizeof *s); which is valid C, but not valid C++. Is there any way to fix this? ...

Step into Stored Proc gives "Canceled by User" in VS 2010 but works in VS 2008

I'm running a local instance of SQL 2008 standard on my workstation. Also have VS 2008 and VS 2010 installed on it. I've (for this test) disabled the Kaspersky AV and ensure windows firewall is off. When I debug a stored proc on my local SQL instance by right clicking and selecting "Step Into Stored Procedure" in VS 2008 it works. I ge...

Visual Studio on Mac Book Pro

Hello, i just bought a MacBookPro (13", 250HD and 4GB Ram) because, among other things, i would like to write iPhone Apps. I need, anyway, to use VS2010 so i think to install Sun Virtual Box (i've used and i like it) to run Windows7 with Visual Studio 2010 and SqlExpress2008. Have you tried it? How many RAM GBs should i reserve to Windo...

Visual Studio 2010 Web Performance Test / Load tests / Coded UI Tests. ANYONE REALLY USE THESE?

I can find some articles on how to use them but I can't seem to find anywhere peoples impression of them using them in real projects. I have been trying to figure out how to use them and I've had alot of problems. Can someone out there who uses these tools on the job give me thier impression? Are there better alternate tools available? ...