visual-studio

Specify which version of aspnet_compiler Visual Studio uses?

Is it possible to tell Visual Studio 2010 to use an older version of aspnet_compiler to build and debug a web application project? I have a web app targeted for .Net 3.5 that complains and mentions something about using version 2.0 of the aspnet_compiler command. I know where on the disk this magical version of aspnet_compiler is located...

VS 2005 line-spacing settings

I can see how to change the fonts and colors in the IDE. Is there an option available to incrase line-spacing in the IDE? ...

Element Silverlight is not a known element

I'm using Silverlight 3 in Visual Studio 2008. Unfortunately I can't seem to get the <asp:Silverlight> element to work, it's not on the intellisense and it underlines it saying its not a known element. I'm beginning to think something wasn't installed properly. Although I've reinstalled the Microsoft® Silverlight™ 3 Tools for Visual Stu...

Visual Studio 2008 C++ language support?

I've been developing a couple of C# tools recently, but primarily working with a lot of legacy Visual Basic 6.0 code (I know, I know...). For the C# development, I've been using Visual Studio 2008 Professional edition that I downloaded using our MSDN subscription here at work. But, as a change of pace over the weekend, I was going t...

Eclipse-like formatting for Visual Studio

Hey all, Is there a tool for Visual Studio that will automatically format source code (C#) on saving it? This would be useful for my multi-developer team to keep the code looking uniform, especially before the code is checked into the source control repository. ...

Where does Visual Studio 2003 store connections created using server explorer

I am creating a connection to an SAP system and want to manually modify the connectionString. Is it possible to do this? Where does Visual Studio 2003 store connections created using server explorer ...

Converting problem: __asm__ __volatile__

I have been dealing with Nasm on a linux environment for some time and this function worked great... but now I am switching to a windows environment and I want to use Masm (with VS2008) I cant seem to get this to work... void outportb (unsigned short _port, unsigned short _data) { __asm__ __volatile__ ("outb %1, %0" : : "dN" (_port), ...

Resharper problem with unit tests

I'm having a little annoying problem with resharper trying to run my unit tests, using mstest. I can select an individual unit test and run/debug it fine but when I select the parent node to run a bunch of tests, the tests don't run; it just displays pending for a few seconds and then the test goes grey. If I set breakpoints in the tests...

Visual Studio's "auto-resolve" feature doesn't work for extension methods - what now?

I love the "Resolve" feature in visual studio. Typical scenario: Type in Debug Type . Notice that no intellisense appears Right-click Select Resolve Choose using System.Diagnostics or System.Diagnostics.Debug Beautiful. Use it all the time. Extension method scenario: Type in var maxNumber = new int[] {1, 2, 3, 4} Type . Notice th...

Syntax coloring of own types in Visual Studio (C++)

How can I get Visual Studio to highlight my own class types? This works fine for C# but not for C++... ...

MSBuild output vs Visual Studio output against a COM interop

I am attempting to a get a isolated build environment setup in my dev team. The problem that I am presently hitting is a DotNet project which has a reference to a VB6 COM assembly. The COM assembly is registered on the build system, but when I run msbuild against the sln I get the following error: error MSB3303: Could not resolve COM ...

Problem with using signed cab files in IE

Hi, I am trying to create a self signed certificate by using the utilities that come along with MS SDK. I am able to successfully create the test certificate and install it in the trusted root store. I created a sample HelloWorld applet. I created a CAB file with the .class file. I used the Visual studio tool to create the CAB file. Als...

Delay Loading DLLs

Hi I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able to achieve that using DLL Delay Loading as this topic is completely new to m...

vs 2008 c# app won't run on win vista

hi i have written app on vs2008 c# (express edition) on win XP which reads and creates excel files (excel 2003) using microsoft excel 11.0 object library (because that's the only available one through add references in COM section)... now i publish this project, then copy the setup.exe and take it to my friend's win vista machine, setup ...

Can I legally take my work's Visual Studio 2008 CD and install it at home?

I have been told that Microsoft allow employees of any company that uses it's products, such as Visual Studio 2008 or Office, to install them on their home machines. Before I do so, is this correct? It doesn't sound right to me, but I know microsoft have something called the "Home Use Program" but I'm not familiar with it and haven't s...

Visual Studio error while creating Unit Tests

I want to create unit tests for one of my project's classes but I'm getting a following error when I right click on the class source code and choose Create Unit Tests button: The following error was encountered while reading module 'Microsoft.Office.Tools.Common.v9.0': Could not resolve type reference: [office]Microsoft.Office.Core.I...

Trying to run 64-bit tests on 32-bit windows

We're running our unit tests as a post-build step in our builds. Now I've run into a problem with this on our autobuild machines that automatically pull and build every revision in svn. The autobuild script pulls down a revision, does some setup and then calls devenv.exe /build on it. This, in turn, will build everything and then try to...

Automatically strong naming COM Interop wrappers.

I have a C# project in VS2005 that is referencing a few COM libraries. When I build it errors like this are thrown: Referenced assembly 'assemblyName' does not have a strong name. Now, I used to reference COM assemblies in VS2003 and it would automatically sign the Interop wrappers. All I had to do was set the setting 'Wrapper Assembl...

Can I compile visual studio solutions (.sln) without installing visual studio

Can I compile visual studio solutions (.sln) without installing visual studio. Can I install something like a VS SDK to do this? The solution is a VC++ one. ...

How can you import Tasks from TFS into VS Studio Project Task List?

I would like to be able to import TFS tasks / work items into the Visual Studio Task Lists. Is this possible? UPDATE: It looks as though I'll have to use WIQL that is found in the SDK. I hope to save some time and would appreciate any posts / war stories associated with TFS and sync'ing to Visual Studio. ...