visual-studio-2008

"Treat all warnings as errors except..." in Visual Studio

In Visual Studio, I can select the "Treat warnings as errors" option to prevent my code from compiling if there are any warnings. Our team uses this option, but there are two warnings we would like to keep as warnings. There is an option to suppress warnings, but we DO want them to show up as warnings, so that won't work. It appears t...

Can't drag files to Solution Explorer

I am having an unusual problem. I have always been able to drag files and folder from my desktop or explorer to the solution explorer in visual studio and add the files to my project. No when I attempt to drag files I simply get the "stop" symbol. I am using Visual Studio 2008 running on Vista Home Premium 64 bit. Any ideas? ...

Exported Project Template from VS2008 but it is corrupted?!

I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template. So I have to update the vstemplate file to tell the template to use my custom wizard. But the archive is corrupted! 7zip thinks folders within the archive are using non-standard ...

Dynamically load pictures from file system into Crystal Report (VS 2008 version)

I have a VB.NET application which needs to generate reports (invoices) which contains optional images. The images are going to be loaded into 1 of 6 places on the report, but will reside on the client PC (deployed with the application). I've been trying to access the ICROleObject object, which is what's placed onto the report, but I ca...

What is the best Case-Tool to use in .NET world?

What is the best Case-Tool to use in conjunction with Visual Studio 2008 that has the ability to generate C# and VB.NET codes and SQL database file? ...

How can I make the format document shortcut work for C source files in VS2008?

How can I make ctrl k,d work in a pure C file? I really enjoy the auto formatting in C#, and I would like to have the same functionality in C as well. I am using VS2008, but it would probably be helpful if this worked in VS2005 as well. ...

Why doesn't an installed font show up in the font picker dialog?

I've installed an OpenType font on my development machine expecting to then be able to choose that font for a label on a form. The font is available in MS Word so I'm reasonably confident it was installed ok, but I can't see the font in the font-picker dialog for the label in Visual Studio. I also checked the font settings in Tools > O...

List of files with pending changes in VS2008/TFS to clipboard

When I right-click a solution in VS2008 and select Check In... I am presented with a list of changed files with check boxes and a comment area. (This is done against TFS.) Our check-in process requires that we enter this list of changed files into the bug tracking ticket. This requires typing in the name of each each file: time-consumin...

Is there a way to save or edit Crystal reports in version 8.5 format in Visual Studio 2008?

I have a crystal report file I need make a tiny edit in. It was created in/for Crystal Reports 8.5. I can open it in Visual Studio 2008 but saving the file updates the file version and the report fails with the third part software that reads it (Actinic). I don't know much about Crystal reports. Is there a way I can edit the file witho...

Strategies for moving to Team System

Does anyone have any strategies/tips/traps for moving to Team System? Should it be done in baby steps, or all at once? Should we migrate our SourceSafe library over, or draw a line in the sand and move forward? Is it worth brining SharePoint into the mix? Any thoughts are appreciated. ...

Is there a tool that will generate Visual Studio 2008 projects?

Does anyone know of an application that meets the following criteria? I'd like to use a GUI tool to generate a batch of related Visual Studio 2008 projects. For example, I know that I'll need a solution file, a web project for my UI, a class library for my business objects, and a class library for my data access layer. I'd like to use a...

How can I run Test projects with Visual Studio 2008 Standard Edition?

I'm currently running Visual Studio 2008 Standard Edition and one of the items they cut out for that edition is the unit testing capability. As a result, when I open up example projects like the MVC commerce test, one of the projects just won't load since it doesn't know to open that type of project. I know I can just exclude or remove ...

Build Via NAnt vs Visual Studio - One dll Missing

My solution includes these two projects: MyNamespace.Web.UI MyNamespace.Web.Core UI references Core, and Core references Foobar.dll, which exists nowhere except my library. When I build from Visual Studio 2008 Foobar.dll is in the UI project's Bin folder as expected. I have made certain it was not there before the build. But whe...

VS2008 SP1 silverlight design surface will not allow me to drop components onto it

I have VS2008 with .NET 3.5 SP1 (vs has SP1 too of course). I have loaded the latest silverlight tools.. and it went through and un-installed any beta stuff.. No errors installing, and everything else in SP1 seems ok. In fact silverlight itself (i.e. when you select the silverlight project). Just when I try to drop a silverlight co...

Can Visual Studio 2008 Standard create a single EXE that does not require .NET framework?

This is truly a beginner question, so I apologize in advance. I have Visual Studio 2008 Standard installed and would like to create a small Windows application that does NOT require any .NET framework when run on computers. Does VS 2008 Standard support such a feature? Any pointers on how to accomplish this would be fantastic. Thanks i...

Asp.net mvc beta installation on VS2008

Hey guys, I used to work with VWD and now I try to install the new MVC-Beta on VS2008. Installation completes successfully but when I try to create an MVC web site I don't have it on the projects list. How can I fix it? I've uninstalled VWD and MVC preview 5, tried to install several times the beta framework. ...

Why can't I use static members, for example static structures, in my classes in VS2008?

When I write code like this in VS 2008: .h struct Patterns { string ptCreate; string ptDelete; string ptDrop; string ptUpdate; string ptInsert; string ptSelect; }; class QueryValidate { string query; string pattern; static Patterns pts; public: friend class Query; QueryValidate...

Code Coverage and Unit Testing of Python Code

I have already visited Preferred Python unit-testing framework. I am not just looking at Python Unit Testing Framework, but also code coverage with respect to unit tests. So far I have only come across coverage.py. Is there any better option? An interesting option for me is to integrate cpython, unit testing of Python code and code cove...

How do you change the colours used in the annotate bar in Visual Studio 2008?

I am using a custom colour scheme in Visual Studio 2008. The annotate bar (that shows who checked each block of code in and when) is rendering in some illegible colours. I can't identify which colours these are within the relevant Options dialog so I cannot change them to something clearer. Does anybody know how to change these colours?...

Setting the manufacturer in a VS 2008 Setup Project

I have a windows setup project that installs a service. All works well except for one thing: The default directory offered to the user during install is of the form "C:\Program Files\Microsoft\ProgramName". I am trying to modify this so that instead of "Microsoft" we would have our company's name. I found the application folder property...