visual-studio-2008

VS2008 Team Edition Code Metrics - Skip Generated Code?

According to this blog the build in code metrics feature in VS2008 Team Edition is suppose to be smart enough to skip generated code. It's not. Is there an option somewhere that I need to set? ...

How to organize 800 forms?

My company is moving from classic asp (a nightmare) to .Net (rapidly becoming the same nightmare). We have over 800 forms, very similar in how they are processed, but 800 different sets of questions. They have common code: add to the database, get from the database, validate user inputs, validate credit card info, etc... We're using ...

Visual Studio 2008 Professional Edition

Im currently using vs2008 with asp.net mvc framework for web development. Im missing a feature/configuration: When I change to another .cs file I want the "class view" to automatically show me what methods the active .cs file contains. ...

How to get Visual Studio to automatically add a needed Import element in an .aspx file?

I have a class "Message". In my .aspx file view (ASP.NET MVC), I am typing a line of code and use "Message". <h1>Messages</h1> <ul> <% foreach(Message %> </ul> I get a helpful bubble that says "The type or namespace Message cannot be found" and gives me a dropdown to add it but merely does this: <h1>Messages</h1> <ul> <% for...

get stack trace when exception is thrown

Hi, I am now debugging a program that utilizes many different threads. there is an exception that is thrown from time to time. the problem is that there is no way to know what thread caused the problem... does anyone know an easy way to get the stack trace after the exception is thrown? I thought about simply writing a debug message...

Remove warnings "Could not find schema information for the element" for Enterprise Library in vs2008

I use the Enterprise library caching block with succes (site compiles, everything works like it should). Visual studio gives me 15 messages though. They are all about missing schema information. Like so (cachingConfiguration part varies from message to message) Could not find schema information for the element 'cachingConfiguration'....

Making VS 2008 play nice with eVC 4.0 projects

I would like to contribute to an open-source Windows Mobile project, but it's being developed in eVC 4.0, which flat-out does not work on Vista (feel free to correct me!), and I would prefer to avoid having to dual-boot or remote into my only remaining XP box. I have VS 2008 installed on my main development machine, and got all the SDKs...

VS 2008 Open Web Site takes forever!

Anyone else get this or suffer from this? I am using Vista and VS 2008 and when I goto open a Web Site it literally takes 2~3 minutes for the dialog box to show up. Once i actually select a website it's not a problem but getting to that point hangs VS really bad. ...

Editing C# while debugging.

I know I've dealt with this issue before, but the settings to override this always seem to be changing. I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and Continue is disabled. When I try to edit a file ...

Association end is not mapped in ADO entity framework

I am just starting out with ADO.net Entity Framework I have mapped two tables together and receive the following error: Error 1 Error 11010: Association End 'OperatorAccess' is not mapped. E:\Visual Studio\projects\Brandi II\Brandi II\Hospitals.edmx 390 11 Brandi II Not sure what it is I am doing wrong ...

Quickest way to build a bunch of DLL files with the same settings in VS 2008

Hey folks, I'm currently porting a POSIX C++ application to run on Windows without Cygwin or anything. No problem so far. Now, the application (ZNC, an IRC bouncer, in case you're interested) supports loading modules from .so shared library files on Linux/BSD etc. I ported the main executable without much of a problem, all wrapped into...

Setup.exe and autorun.inf

I have Visual Studio 2008 project on which I added a Setup Project. It generates all files to install the application correctly. Now I am trying to add an autorun.inf to the cd, which is supposed to start the Setup.exe. After a lot of attempts and every combinations possible, nothing works, the install don't start. I even tried a batch ...

How to unit-test a file writing method with Visual Studio's built-in automated tests?

I use Visual Studio 2008 Professional automated tests. I have a function that writes to a file. I want to unit test the file writing function. I have read somewhere that I would have to mock a file somehow. I don't know how to do it. Can you help? How to unit-test a method that downloads a page from the Internet? ...

Databinding in C# and .NET

I am pretty new to C# and .NET and I'm strugling a little with the whole concept of databinding. What I am asking for is a quick rundown of the concept, or even better, point me towards sources on the net (preferred) or in print that can help me get my head around the idea. EDIT: I do my development in vs2008 and we are using winforms ...

Upgrading a WinForms app to WPF

I have a side project that I wrote a few years ago in WinForms. To better help me learn WPF, I would like to rewrite it in WPF. Ideally, I would like to just modify the current project that I have and rewrite the UI in WPF instead of creating a new project. I'm having some problems doing that. I did the following (using Visual Studio 20...

Pascal syntax highlight in Visual Studio ?

Hi All, I'm writing in C# the next generation of an old app originally written in Delphi. I often have to look in the old code and wondered if there's anyway to install Pascal syntax highlighting in the Visual Studio 2008 editor. TIA. ...

Automatically call visual studio "sort using directives" on save?

Visual Studio 2008 got two great features for c#, which is called "sort using directives" and "remove unused using directives". I'd like to call the "sort using directives" every time I format the code using ctrl+k,ctrl+d. Or, even better, I would like to be able to reformat all c#-source files in a project, and call "sort using direct...

View All Changed Files in TFS

I would like to generate a list of all the files that have been modified within my project. I know I could view the history on the project to get all the changesets and then view each changeset for the files in contains, however, this process would take a long time. Is there an easier way to generate this list? The list does not need ...

VS 2008 WinForms with SourceSafe

We are using Visual Studio 2008 to develop a winforms application stored in Visual Source Safe 2005. If one of our team members changes a *.Designer.cs file without changing the form's source file the change doesn't appear during a "Get" operation. However, if in Visual Studio you run a compare on the *.Designer.cs file the differences...

vs2008 circular references (c#)

Here's the setup I have in a vs2008 solution: Data layer in a project named MyProject.Data Web application in a project named MyProject.Web MyProject.Web has a reference to MyProject.Data In MyProject.Web I have a class I use called "MySite.Utils" I want to be able to use MySite.Utils in MyProject.Data but I can't because it would c...