visual-studio-2008

How to remove the readonly attribute when building a setup

Hi All, The setup of my Windows Mobile app is created using VS2008. It contains a couple of data files to be copied to the target device. These files are readonly on the dev machine (because they are under source control). The setup preserves the readonly attribute, which is a problem in this case. How can I tell the setup project to ...

how can I get intellisense in a T4 template?

When trying out these tutorials (T4 Tutorial: Creating reusable code generation templates) I noticed that although I was using plain c# I didn't get any intellisense, probably because of the file extension (.tt) Isn't there anyway to say to Visual Studio to consider those .tt files as .cs files and thus get the correct intellisense help...

My Work Items gone in TFS

We use VS2008 with TFS for source control at my workplace and it works fine, however today we experienced a problem when trying to associate our pending changes with a work item. Usually when I want to associate changes with a work item I just go to the second tab from the top in the "pending changes" window, check the work item that fi...

Organizing a Visual Studio Solution with "Solution Folders"

When setting up a Visual Studio .NET solution with many projects, do you find "Solution Folders" useful? What are the drawbacks? My original thought was that using Solution Folders can be useful to logically organize like projects within a solution. However, I was surprised to learn that a creating a Solution Folder does not create a ...

Inherited Public Properties not showing up in Intellisense

I have inherited a class in vb.net and when I create the object, I am only seeing one of the inherited public properties in intellisense. Any solution to this problem? print("Public Class CompanyMailMessage Inherits MailMessage Private AdobeDisclaimer As String = "You will need Adobe Acrobat to read this file. If it is not ins...

How is it possible to resolve unresolved symbols (LNK2001) for _RTC_InitData and _RTC_Shutdown

I am building an x64 lib in Visual Studio 2008, and separately linking it into an x64 DLL (specifically using the WDK Build.exe toolchain in this case). Most general C runtime symbols link fine, indicating that the library versions are sufficiently well-matched, but these two RTC_* symbols specifically fail. Forcing different runtime lib...

Ignoring try block in C# command line program

I have a command line program in C# that I've wrapped with a try-catch block to keep it from crashing the console. However, while I am debugging it, if an exception is thrown somewhere in the DoStuff() method, Visual Studio will break on the "catch" statement. I want Visual Studio to break where the exception occurred. What's the best...

CC.Net + VS 2008

I am new to CC.Net. I want to integrate my VS 2008 project with CC.Net. I am using VSS. Is MSBuild or NAnt necessary to integration? Can anybody tell me the simple steps to integrate CC.Net with VSS to build my visual studio 2008 project. Thanks in advance. ...

Why is F10 so slow in VS2008 ?

Question says it all really - a lot slower than VS2005, with a noticeable (0.5 sec) delay on each key press. It makes stepping through code a pain. Matt ...

Using same Debug settings for Start External Program across 32 bit and 64 bit debug environments

We use a mixture of 32-bit and 64-bit development environments. Some of our class libraries are debugged using a 32-bit application so we have debug settings for "Start External Program" and "Working Directory". The problem is that the settings need to be different since the 32-bit application is installed to C:\Program Files\xxx (on ...

How do I install/deploy/build my Visual C# application so it's available to all users?

I've written an application in Microsoft Visual C# 2008 Express Edition. The Windows XP computer I want to install it on has two user accounts. One is the admin account, the other is the main user account and does not have admin privledges. I tried installing the application as the main user, and got an error saying i can't because I'...

Error targeting .NET framework 3.0

I have an application, which I develop in VS 2008 and I target .NET 3. Unfortunately when I install on a clean computer with .NET 3, it crashes. And besides the usual TypeInitilisationError, I have no clue why. Updating the same machine to .NET 3.5SP1 makes it run fine. Is there something broken in VS2008 that prevents from telling m...

How do I add common C# code to a Visual C# 2008 Express project/solution?

(I still feel like a complete newbie in MS Visual environments... so please bear with!) I'm using Microsoft Visual C# 2008 Express Edition. I have a project and in that project are two different forms. The .cs file for each form starts out: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data...

Multithread a unit test

In order to test concurrency issues, I want to call the same method on two different threads at exactly the same time using a unit test. In fact I probably want to call the same method on several threads at the same time. I'm using Microsoft's built in unit tester for VS2008. My thoughts are that I would lock an object and then synchro...

Building the platform code with nant and VS2008

I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and I'm getting this error "Solution format of file 'C:\test\Project\src\project.sln' is not supported." Any Solution to overcome from it ...

Visual Studio Shortcut for Automatically Creating Constructors from an Inherited Class

Say I am inheriting from a class with several "overloaded" constructors. By any chance is there a short cut in Visual Studio which writes the constructors in the derived class with the same signatures as in the default class for me, with boilerplate code which calls MyBase.New(...) and plugs in the arguments for me? EDIT: As far as I ...

Programatically enforce capitalization in Visual Studio 2008?

What is the easiest way to programatically force capitalization of keywords in Visual Studio 2008? We work with a proprietary command delimited language (like HTML). We are attempting to migrate from an older editor to Visual Studio 2008. Our coding standards are to capitalize the commands. The old editor is customized to recognize t...

Beginners guide to learn how to use Subversion with Visual Studio

What's the best way for me to learn how to use Subversion as a source code control for my Asp.Net Web Projects? I haven't had much contact with source control before; however I have a very basic understanding of its features, so I'm looking for a way to learn the best practices. Any tip will be very appreciated. ...

The key 'UserID' does not exist in the appSettings configuration section.

All of a sudden I start getting this error while trying to open 2 of some 10+ forms in my Window Forms application in designer. To prevent possible data loss before loading the designer, the following errors must be resolved: The key 'UserID' does not exist in the appSettings configuration section. It used to work fine and I dont' reme...

How to add Assembly Information to a Web Site/App in Visual Studio 2008

Hello, Can anyone tell me how to add an AssemblyInfo.vb file to a Web Application converted from NET2.0 to NET3.5. I'd like to add the manifest information but cannot find a way to do for the Web Application's compiled DLL. I am using Web Deployment Projects for Visual Studio 2008 if this makes a difference. I'm also going to be repla...