visual-studio-2008

Why is the version one behind?

I wrote a simple application that takes a project path, finds the assembly and file versions and updates them. It works as expected, but when I set it up as a pre-build event command-line like this: $(SolutionDir)AdvanceBuildnumber\bin\Debug\AdvanceBuildnumber.exe $(ProjectDir) and then do a build, the compiled application has the pri...

What Are Your Favourite ASP.NET Add Ons / Tools To Improve Productivity & Code

I'm wondering what other tools / frameworks / Add Ons people use to improve their productivity / development speed when coding in ASP.NET. I just use VS2008 on its own but wanted to find out what other people use with VS2008 AND WHY?? ...

Why doesn't FileSystemWatcher detect changes from Visual Studio?

I have made a tiny application that responds to changes to files in a folder. But when I edit the file in Visual Studio 2008, it never detects anything. If I edit the file in Notepad instead, everything works as expected. Surely Visual Studio saves the file at some point, but the watcher does not even trigger when I close the studio. Do...

Build won't copy System.Drawing to output folder.

I have an assembly that is deployed to SQL server that references System.Drawing. Don't ask why, it's a third-party library. This requires System.Drawing to be in the same directory as the library when I call CREATE ASSEMBLY. I have added System.Drawing as a 'Content' file to my project, with 'Copy always' to output directory, yet it ...

Convert a sql file to an embedded resource programatically

Does anyone know how to convert a .sql (scripts file) VS2008 to an embedded resource at runtime to be used in the Customs actions editor for install of database. ...

Including a named instance of SQL Server 2008 Express with my application

Good morning, all. This is my first question on stackoverflow, so hopefully this isn't something that's been beaten to death and I haven't been able to find it. I'm developing an application that is going to be distributed shrinkwrapped. We have gotten the rights to distribute SQL Server 2008 Express Edition with our application, but ex...

Visual Studio F6 stopped working. It no longer builds the project.

I'm using VS2008, been using it for quite some time now, and since I hate using the mouse while developing, I'm always using F6 to build the solution, or Shift+F6 to build the current project. What's weird though is for some strange reason, it simply stopped working over the last few days. In fact, when I pull down the Build menu, next t...

Working with XML document type definitions in .net

Is it possible to import an XML DTD into Visual Studio in order to generate a proxy class? I have a third party .dll that I need to interface with that is designed like an XML service. The interface into the .dll is all driven by XML inputs, and returns output as XML. The nice thing about it is that all the input and output types are we...

Removing setup projects from the build order

Hi, We have 15 projects in our development environment. Some are test projects, most are libraries, some are 'final' executables that can actually run, and some are setup projects. Most of the time, I only want to build those 'final' executables and their respective libraries, and let the setup project only be run when we're making ...

Can I you reassign keyboard keys in Visual Studio 2008 or at least in Microsoft Windows?

As I'm sure most of y'all are, I'm tired of having to press the SHIFT key every time I write a function call in C#, or for that matter any language. So, is their any way to cause the "[" key on my keyboard to type a "(" on the screen, and also cause the "]" key to cause a ")" to be typed on the screen? ...

Adding Existing Files To Project Externally Without Using VISUAL STUDIO 2008

Hi, My issue is copying *.cs files to my project using my own code generator program (like hibernate) So when my code generator program creates new .cs class I want it to be copied to project path and see it via VS2008 solution explorer. (Note: Normally you can copy files to project folder but VS2008 doesn't see it since you didn't use...

Visual Studio 2008 SP1 has frozen fields

After installing SP1 for Visual Studio 2008, various fields are frozen e.g. in Find & Replace dialog I can't type anything, or in Tools->External Tools all fields(texboxes) are frozen, can't type anything. Same with ReSharper, can't type anyting into any of its dialogs... Do you know any workaround? If I restart visual studio it someti...

C#, XML-Doc: Refering to a generic type of a generic type in C# XML documentation?

Writing some xml documentation for a predicate helper class. But I can't figure out I can refer to an Expression<Func<T, bool>> without getting a syntax error. Is it even possible? I have tried this: <see cref="Expression{Func{T, bool}}"/> But I get a red squiggly line under {T, bool}}. This works though: <see cref="Expression{TDeleg...

Build VS2008 projects with .Net 2.0/.Net 3.5 using NAnt

I'm trying to write a build file to build a simple C# solution but it is failing with the error: Unknown task or datatype. My solution is written in VS2008 but targeted at .Net 2.0 (I'm using Vista if that helps). I've already seen the other question running-builds-using-net-3-5-msbuild-and-nantcontrib and have tried the suggested solu...

Visual Studio 2008 does not show any "obsolete"-warnings

Duplicate: http://stackoverflow.com/questions/577132/why-are-c-collection-properties-not-flagged-as-obsolete-when-calling-properties I just migrated a .NET 1.1 project to .NET 2.0 using Visual Studio 2008. I know that there are references to obsolete methods in the project. But Visual Studio does not show "obsolete"-warnings after buil...

VBPROJ / CSPROJ

I'm trying to dig into the XML for a VBPROJ file. Does anyone know where I can find a good resource that explains the structure and attribute usage? ...

How do I share common web resources between web applications in Visual Studio?

I have three web application projects that share a common library of custom server controls. Sharing the code behind files is easy - they are compiled into a dll that i reference in the other projects using a project reference. But how do I handle files like JavaScript, style sheets and images? I am trying to do this "the Visual Studio w...

C# CA2104 - Automated Code Analysis dislikes static readonly mutable types

I've got a code like this: public abstract class Base { // is going to be used in deriving classes // let's assume foo is threadsafe protected static readonly Foo StaticFoo = new Foo(); } Visual Studio 2008's Code Analysis pops up this message: CA2104 : Microsoft.Security : Remove the read-only designation from 'Base.S...

Using WPF SplashScreen in .NET 3.5 WinForms

Can I use the built in WPF splash screen functionality in a WinForms project compiled under .NET 3.5 SP1 VS2008? ...

.NET: Getting the absolute path for a file when running VS Team Test

Hi all, Currently I have a test class called TestClass.cs in C:\Projects\TestProject\TestClass.cs I also have an Xml file in C:\Projects\TestProject\config\config.xml In TestClass.cs, I have a test method to load the Xml from the filesystem like so: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(Path.Combine(Assembly.GetExecuting...