visual-studio-2010

What are the major differences between VB Express 2008 (pro) and 2010?

I sometimes hack from some code for a friend. He paid for VB Studio pro 2008 but won't upgrade to 2010. He's happy enough for me to use VB Express 2008, but I am wondering what I am missing out on by not using 2010. What are the major differences beteen VB EXpress 2010 and VB Express 2008 and VB EXpress 2010 and VB Studio PRo 20...

Referencing a .Net 4.0 Assembly in the GAC from VS2010

Has anyone done this? I have created an assembly and installed it to the GAC. It's listed in gacutil and I can see it in c:\windows\microsoft.net\assembly folder. I have found people saying to add registry keys, but the folders they specify don't exist, and when I create them, my assembly is still not appearing in the list. I have tr...

Why am I getting App_GlobalResources assembly generated? (Error = CS0433)

I'm working on a ASP.NET MVC2 project, for which I have configured the localisation as follows ... I have a separate Resources assembly, containing all my resx files. The settings for each resx file are... Build Action = Embedded Resource Copy to Output Directory = Do not copy Custom Tool = PublicResXFileCodeG...

Show MS Access results on Visual Basic form?

I'm creating a simple TimeStamp when the save button is pressed to just add the current date and time to a MS Access 2003 DB. I have that code working. I'm using Access 2003 and Visual Studio Express 2010. Dim myConnection As OleDbConnection = New OleDbConnection() Dim addSQL As String = ("INSERT into DateTable (DateUpdated) values"...

Visual Studio Project Files and Source Control Bindings

Hello, I am copying projects in one solution that is bound to VSS from one solution to another that is not bound (or shouldn't be). When I copy the original project and add it to the new solution, it's showing as checked in and VS is remapping the working folder in VSS; I want this new copy to not be bound to source control and not do ...

Where does VS2010 store modified keyboard shortcuts?

I have this strange behaviour in VS2010 where any modifications I make to keyboard shortcuts or the text for top-level menu items (File, Edit, View, ...) are reset to their default values the next time I restart VS. I suspect that one or more of the add-ins I've installed could be the culprit. So far though, I have had no success in stop...

TFS and local folder permission problem

Environment: VS 2010, Windows 7, TFS I have a solution1 with solution filder called Binaries(which is a physical path on local computer, say it's c:\Binaries): I put all external assesmblies in this folder. In another solution2, for each class library project in this solution, set property->build->Output path to c:\Binaries, so that ...

How to make a Visual Studio C++ project structure match the file system structure?

I'm currently using Visual Studio 2010 Professional. In my entire experience with Visual Studio (since version 6), a C++ project structure was always virtual. In other words, when I move files around and create folders in the project, this had no bearing on the actual structure on the filesystem. I've always had to manage the two indepen...

How to share menu-items between the listview and its items?

Hi everyone, I have a listview and want to have 2 context menus for it: 1) when right-click on an item (called Menu 1) and 2) when right-click on elsewhere spaces except the items (called Menu 2). There are sub set of menu-items shared between the two - let's call this CommonMenu. My test application is store here. My problem is: when t...

.NET coding setup with needed to install SQL Server ? (VS2010 + Linqpad)

I was thinking of the minimum software I can install on my new dev machine. Has anyone tried codeing with just VS2010/Linqpad? The SQL Server is on another machine so then I would only need SSMS.. but then I think linqpad could replace that + help me with Linq queries.. But the problem seems to be I won't be able to CREATE SQL USERS w...

Visual Studio 2010 Not Publishing All Files to File System

Visual Studio 2010 is not publishing all files to the file system. In VS 2008 there was an option to include all files in the project when publishing. However, VS 2010 does not have this option. When I go to publish using the file system publish method, certain files are not published such as .pdf files and .flv files. These files ar...

Unable to move User Control registration into nested web.config

Okay, I've been banging my head against this for almost five hours now, so I figure it's time to ask. I'm working on a Web App (.NET 4.0, C#, ASP.NET, AJAX, jQuery) in Visual Studio 2010 (Professional) that has several parts. Let's call them Mo, Larry, and Curly, with each residing in a subfolder of the project. Currently, each has seve...

Can't use WPF designer because can't find custom base window type in XAML, but code behind is fine

I am using a base Window class in a WPF project. In the code behind C# file the assembly to the base type is referenced and fine. In the XAML is looks like this: <MyNamespace:WindowBase x:Class="MyNamespace.Applications.UserInterface.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...

Compile error with embedded assembler

I don't understand why this code #include <iostream> using namespace std; int main(){ int result=0; _asm{ mov eax,3; MUL eax,3; mov result,eax; } cout<<result<<endl; return 0; } shows the following error. 1>c:\users\david\documents\visual studio 2010\projects\assembler_instructions\ass...

MSTest stops debugging tests outside test project in 2010

I have no idea how this started so I'm guessing there's a setting somewhere that I've been unable to find. I have a test that calls a method but when I run debug, it simply will NOT step into that dll. At all. Period. Throws an exception just fine, but it's kind of worthless when I can't step into see what's actually going on. When ...

How to Use WCF objects to create a Report?

In Visual Studio 2010, how do you create a report using a List returned from a WCF call? ...

BootstrapPackage did not load correctly VS 2010

I just installed VS 2010 v 10.0.30319.1 RTMRel on 64bit Win7 Ultimate and keep receiving the following error when I try to open a web project. I have repaired and reinstall but the issue persists. I am looking for resolution suggestions. Thanks The 'Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Desig...

Getting running Visual Studio 2010 instances and programmatically attaching to a process?

I have a WinForms Application (.net 3.5) which displays a list of processes. I would like to be able to attach to one of those processes. I have multiple Visual Studio 2010 instances running and I would like to create a List/Dropdown where I select one of those instances and then attach the Debugger to it. Getting the VS2010 instances ...

Using MVCContrib.TestHelpers with MsTest - is there any way to get nicer fail messages?

I'm just starting to use MVCContrib, and I'm really liking the syntactic sugar it adds to various test scenarious. For example, I just wrote this assertion: "~/".Route().ShouldMapTo<SpotController>(c => c.List()); It's brilliant! Well, almost... Instead of, as I'd like, seeing the actual reason why the test fails (I've changed nothin...

How to get the binding UI to see my Objects in VS 2010

I have a Silverlight object (call it QuestionAsker.xaml) and another object I use as the data context for that silver light page/object (call it QuestionAskerVM.cs) My QuestionAskerVM instance is called QuestionAskerViewModel and is defined in QuestionAsker.xaml.cs. My QuestionAsker.xaml looks like this: <UserControl x:Class="IsAProgr...