visual-studio-2008

1.1 solution on a dedicated machine - how best to move it?

We have an old project that requires occasional maintenance that uses VS2003 and Dot Net 1.1. It is on a machine that has become a 'dedicated' machine since no one wants to mess with it. We need to use the machine for other purposes - so I am trying to get it moved to another computer with the least amount of trouble as possible. I h...

How can I automate the "generate scripts" task in SQL Server Management Studio 2008 ?

I'd like to automate the script generation in SQL Server Management Studio 2008. Right now what I do is : Right click on my database, Tasks, "Generate Scripts..." manually select all the export options I need, and hit select all on the "select object" tab Select the export folder Eventually hit the "Finish" button Is there a way to ...

ASP.Net Charting not available

I'm at wits end now, I have googled this to death and found nothing. I have Visual Studio 2008 Professional installed with Service Pack 1. I have also installed .Net Framework 3.5 SP1 obviously. I have installed ASP.Net Charting as well the VS08 addon. Yet I cannot find the control anywhere. I have tried adding the controls from the in...

How do you handle software upgrades like SQL Server 2008?

I'm only asking this because I'm finding as I get older, it becomes a much more frustrating part of my job. How do you handle new versions of software, particularly software that coders and DBAs use on a regular basis? It seems that just when I've fleshed out SQL2005, SQL2008 will have come and gone and SQL2010 will be here. I've mi...

How to avoid duplicate app.config using Visual Studio 2008 unit testing?

When I have one app.config in my main project I always have to duplicate it to its test project. How to avoid it? Update I also asked a very similar, and slightly complicated question ...

Visual Studio appears to randomly adopt American keyboard layout

Gah! This is really causing me hassle today. Suddenly without warning '@' (at symbol) and '"' (double quote) are trading places on my keyboard but ONLY in Visual Studio 2008! I can't seem to find anything in help or online to explain/remedy this. Is there some keyboard shortcut I am inadvertently executing? I rebooted my PC and it we...

How to avoid duplicate settings when using 2 projects and 2 testing projects in Visual Studio?

Following my previous question, now I have 2 projects: one Console Project and a Library Project. They also have their respective unit test projects. When I run a test for the console project that uses a method from the library project and the library project needs an app.config setting, that setting must be in the console test project's...

Exclude nested files from source control

We're having a problem combining 'nested files' and excluding files from source control. We're using code generation to create two partial classes for each entity - MyBusinessObject.vb and MyBusinessObject.Generated.vb We'd like the "Generated" file to appear as a nested file under the manual file. So we're modifying the project file t...

MSTest.exe not finding app.config

I'm currently trying to run MSTest.exe from NCover, but I believe the question could apply generally to running MSTest.exe from the command line. If I have the "/noisolation" argument, then MSTest.exe appears to find and use the app.config as expected. Without it, NCover doesn't capture any coverage information. From my research so fa...

VS2008 silently dies A LOT when working with WPF

When working in VS2008 (C#) does VS2008 silently crash for anybody when working with WPF? If I touch the XAML it is most likely to crash. I can come back in, clean, then build, then run and it work until I have to touch the XAML again. Then start over again. It is a solution with about 12 projects in it. Thanks, jeff ...

Source control with Visual Studio integration for a small project

Hi, I'm begining the development of a personal Web Application project. I'd like to have a source control system for that project. At work, we user Team Foundation Server and I'm quite happy with that, mostly for the Visual Studio integration. I'd like to know if there was free source control solutions that had the same kind of integr...

Loads of extra space at bottom of classes in Visual Studio 2008 C# Express

The scrollbar scrolls way past the end of my class. Is there any way to adjust this? Is it just the VS convention? I can't delete the space, so it isn't carriage returns. The reason I don't like this is that I keep accidentally scrolling past the end of my class! I'd especially like to hear from people who actually have Visual Studio 2...

Is there any way to avoid installing Microsoft Visual Studio 2008 Team System Database Edition to be able to build DBPro projects on a centralized build server?

I have a DBPro (DataDude) project inside my solution to manage and version the database schema of my application. I use TeamCity 4.0 for continuous integration. To be able to build a .dbproj, MSBuild tasks and their respective assemblies have to be installed, other .dbschema and .xsd dependencies put in place. The easiest solution is to...

How to check if a Server and Client are in the same concurrency model?

The concurrency model can be either apartment-threaded or multi-threaded Question: How to ensure that both the Client and Server are operating from within the same concurrency model? ...

Team System Dev Edition doesn't recognize project type

I currently use VS 2008 Professional, but I'm trying to get Team System Developer Edition working in a Virtual Machine to evaluate it. However, when I try to open any of my current solutions, it gives me the following message: 'Z:\Samples\ChartControl\WebSamples' cannot be opened because its project type () is not supported by this vers...

Using assemblies registered in Web.Config in files not in root folder

Hi, I've registered a control in my web.config file and the .dll for the control has been placed in the application's Bin folder. <compilation debug="true"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="RichTextEditor"/> </assemblies...

Optimizing Visual Studio solution build - where to put DLL files?

I found out that build time of C# solution with many projects gets much faster if you don't have "copy local" enabled everywhere. I did some tests and it seems that (for our solution at least) we could increase build time by factor 2-3 just by removing "Copy local". This probably means we have to store libraries in some common directory...

isn't the db4o .OpenFile method supposed to create the filestructure if it doesn't exist?

When using Db4oFactiory.OpenFile("somename"); it was trying to drop the folder "somename" into the visual studio directory and getting denied permission. I solved this by giving it an absolute path: db = Db4oFactory.OpenFile("E:/test-projects/db4o/db"); and now I'm catching a FileNotFoundException but the db4o docs explicitly...

Why can't I get a decent function browser in Visual Studio 2008?

There is no way to list the functions in a C++ solution for me... I have a class browser but that isn't helpful since this project has no classes. I need a simple list of all the functions in a c++ file and then just double click one to jump to its source (as a side pane, NOT as a dropdown)... I have to be missing something here as I hav...

Visual Studio 2008 Emacs Mode

When using emacs mode in Visual Studio 2008 the tab key no longer inserts tabs. It simply formats the current line. It is possible to remap tab to Edit.IncreaseIndent but this has many undesirable side effects. Has anyone else experienced this? If so is there a fix/hack? Also I have noticed that the performance of the text editor rapidl...