visual-studio-2010

Configure the message compiler (mc.exe) as a custom compiler step in VC++ 2010?

Can anyone list the specific and detailed steps to configure mc.exe (the message compiler) to compile a .mc file into a .rc file as a custom compiler step in VC++ 2010? I am really lost on how to do this. ...

How to import a Sharepoint document library into Visual Studio 2010?

I need to import a document library created in Sharepoint 2010 into Visual Studio 2010 to be able to deploy it as a part of the final solution. How can it be done? ...

VS 2010 MVC Formatting

Hello, MVC is formatting my code horribly, and I was wondering if you can turn it off? I feel the answer is no, but I was hoping VS 2010 had built in a setting... Here's what its formatting as: <% if (org.UserKey.HasValue) { %> <%= org.Reference(i => i.UserReference).Email%> ...

Displaying console output?

I am currently creating a customer application for a local company. I have a datagridview linked to the customers table, and I am trying to link it up so that updates, inserts and deletions are handled correctly. I am very new to c# so I am starting with the basics (like about 2 days ago I knew nothing - I know vb.net, Java and several o...

Which option controls the color of this text?

I have applied a color theme called Vibrant Ink (or some modification of it), and since I installed Visual Studio 2010 Pro Power Tools all my statement completion boxes are unreadable. . What setting changes the colors of these boxes? Preferrably, I'd like to change the background color to something darker, but if that's not possible ...

Visual Studio 2010 on seleccion change event in add-in.

Is it possible to subscribe to selection change event in visual studio 2010 add in, or any other way to detect that event? this is what i need to do: User click anywhere in a c# code file. I need to know where the user is: Property,Function,Class,Delegate,etc. Ideas? thanks. ...

<msbuild/> task fails while <devenv/> succeeds for MFC application in CruiseControl.NET?

The Overview I am working on a Continuous Integration build of a MFC appliction via CruiseControl.net and VS2010. When building my .sln, a "Visual Studio" CCNet task (<devenv/>) works, but a simple MSBuild wrapper script (see below) run via the CCNet <msbuild/> task fails with errors like: error RC1015: cannot open include file 'winr...

Qt under Visual C++ 2010 Express

I'm trying to build a basic Qt hello world inside visual studio. I got the moc step to work (i think), but I am at a loss as to how to pass this linker error.. 1>moc_mainwindow.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QMainWindow::staticMetaObject" (?staticMetaObject@QMainWindow@@2UQMeta...

Getting Build Errors in Program to Change Button Name When Clicked

Imports System Imports System.Windows.Forms Class MyButtonClass Inherits Form Private mrButton As Button Public Sub MyButtonClass() mrButton = New Button() mrButton.Text = "Click me " mrButton.Click += New System.EventHandler(MyButtonClickEventHandler) Me.Controls.Add(mrButton) End Sub ...

How to organize asp.net mvc project (using entity framework) and a corresponding database project?

I recently switched to vs2010 and am experimenting with asp.net MVC2. I am building a simple website and use the entity framework to design the data model. From the .edmx file, I generate the database tables. After a few iterations, I decided that it would be nice to have version control of the database schema as well, and therefore I a...

System.Web.UI not available in console app?

Hey everybody, Im trying to write a quick console app that outputs data to an HTML file, however im having trouble accessing the System.Web.UI namespace. Adding System.Web to my references places a warning icon on top of the reference name in the solution explorer and System.Web is not available in the .NET reference list (in order for...

VS2008 Express no longer opens projects after VS2010 express Phone

So I installed the new april release of the VS2010 express for windows phone 7 and now VS2008 express C# no longer opens .csproj files. I'm at a loss as to why this is as I've not changed anything in the files themselves. I'm currently uninstalling windows phone 7 in the hopes that I will be able to open my files again. I have a feeling ...

WCF errors in VS 2010/.Net 4 using sample publish/subscribe app from IDesign website

I am attempting to compile/run a sample WCF application from Juval Lowy's website (author of Programming WCF Services & founder of IDesign). The application is an example of a publish/subscribe 'traffic-light' application that requires using VS 2010/.Net 4. This is my first attempt at using anything other than VS 2008/Net 3.5. Initi...

Silverlight 4 Toolkit not appearing after install in Visual Studio 2010

I am running Visual Studio 2010 and have installed the Silverlight 4 Toolkit, however on creating a Silverlight Application I don't seem to have the controls in my Toolkit? Can someone please help me on this? ...

Visual Studio Linked Files Directory Structure

I have two versions of a project. One for Silverlight and one for .NET. The SL project has the vast majority of the code base in it. I want to globally add all files from the SL project into the .NET version as linked files. I've managed to do so successfully like this in the csproj file for the .NET version: <Compile Include="..\MyProj...

I'm having trouble pushing my source code from my local drive to CodePlex using Visual Studio 2010 Ultimate.

Codeplex gave me the relevant information for proper connection, and I connected to my repository using the Team > Connect to Team Foundation Sever in VS 2010 Ultimate. Here is what I see: How can I push the code I have made on my machine, to the repository on CodePlex? ...

Get netstat Info in Silverlight

Is it possible to get information from the netstat command in Silverlight? How would I go about doing this? ...

WPF debug freezes computer with windows 7 64bit

Hello, I am using visual studio 2010 on Windows 7 64bit. I compiled and ran a simple application basically a thing a child could make. Well the second it started to run, it froze my computer and rendered it unresponsive. It continues to do this every time and for every application. Any ideas why this is happening? ...

How am I supposed to deploy an ASP.NET MVC 4.0 website?

What's the recommended way to deploy a website created with ASP.NET 4.0 and Visual Studio 2010? I've previously always added a web setup project to my solution, and used that to create an MSI, even for small applications. But when I build a web setup project in VS2010 it kind of works but some stuff still seems broken: 1. I need to tur...

What build param(s) to use so VS 2010 can gen .obj & link .objs but NOT create an .exe?

Question title pretty much asks it all. I know I could set the project to be a .lib build and have it fail to build/link a .lib .... and the .objs tend to be in the appropriate config dir That seems like a shi*-a** backdoor way to get VS to gen objs Is there a flag/param I can set somewhere in the property sheet properties/options for ...