visual-studio-2008

Batch files in Visual Studio 2008

I need help with a very frustrating problem with Visual Studio 2008. I have a project in C# which calls, during the pre-compilation phase, a batch file which copies some dlls into a sub-directory of the project itself. It often happens that Visual Studio reports an error caused by the execution of the batch file: it says that the executi...

Multiple projects need to use 1 SNK file

I'm using Visual Studio 2008 and I have a solution which contains multiple projects. I have 1 snk to sign my assemblies and this lives in a solution folder. I've linked the snk to each of my projects but now when I attempt to sign my project with that linked snk I can't find the snk file with the file dialog. Have I missed a step here...

How to Find the Password of a PFX file generated with Visual Studio

Hi, I have a C# Project signed with a Temporary PFX key. Recently, my hard disk fried off and i had to reinstall everything, now, when I try to compile my project, it asks for the Password for the PFX key, but it is not the key I thought it was. I don't want to change the PFX, because there are about 200 clients already installed, and i...

Is it possible to exclude some files from checkin (TFS) ?

We use configuration files within various projects under source control (TFS), where each developer has to make some adjustments in his local copy to configure his environment. The build process takes care about replacing the config files with the server configuration as a part of the deployment, so it doesn't actually matter what is in ...

T4 (Text Template Transformation Toolkit) for generating a set of types based on a list of basic types e.g. PointI32, PointF32 etc. in C#

Similar to http://stackoverflow.com/questions/2222849/boost-preprocessor-library-for-generating-a-set-of-types-based-on-a-list-of-basic I am asking how to generate: struct Point##TYPE_SUFFIX_NAME { TYPE X { get; set; } TYPE Y; { get; set; } // Other code }; for different basic (POD) data types e.g.: PointF32, Poi...

Managing windows API differences between Windows XP and Vista/Server 2008

I am trying to create a single executable of a simple Win32 application that has to be able to run on both Windows XP and Windows Vista/2008. Due to some changes in the way Vista works some extra Win32 API calls have to be made to make the program function correctly as it did on XP. Currently I detect if the application is running on a...

Automated generation of database change scripts

I'm looking for a way to automated the generation of change scripts for our databases. Currently we use Visual Studio 2008 database edition, which has the Schema Compare option, but I don't see a way to automated those actions. What I'd like to do is create an old and a new database during my daily builds and have schema compare gener...

Find a variable with a given value in VS2008

I have an instance variable with several members, many of which have their own members and so on. Using the debugger and watch variables, I found a string variable with a specific value that I need by diving into this variable's members. However, after spending some time on other things and coming back to this, I am now unable to find w...

Listview and SQLDataSource render nothing

I've never used either of these 2 controls before and I'm stuck with no visible rendering of the page (compiles and runs but produces nothing); I have no code behind file with this simple asp.net page and I am using Visual Studio 2008: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="zList.Index" %...

Visual C++ setting to insert a newline at end of file

While compiling C++ code that is cross platform, g++ throws a compiler error if a .cpp or .h file does not have a newline at its end. Is there a visual studio setting that would do this automatically? ...

VS 08 CodeFile Intellisense not working

Hi Scott, I am facing problem in VS 08, after installing VS sp1 or MVC-2. In my not MVC project, In code file, Intelisence not working, if I declare controls in code file it compiles but generates run-time error that controls already exist, if I remove declaration it doesn't complete. Please suggest a solutions Regards Mumtaz Ali ...

Is there a way to "export" an entire SQL Server database (schema and data) to text?

On a per-object basis, SQL Server Management Studio has the option to script the object to clipboard, file, etc. Is there a way (at the database level) to do a "1-click" export of ddl AND data to a text file? Ideally I'd like to select a database and create a big text file containing the ddl for all objects plus the data in all tables....

Editing markup of large controls/pages in Visual Studio 2008 pegs one core of CPU

When editing a markup file (javascript mixed with html and ASP.NET tags) of several hundred lines in Visual Studio 2008, the devenv process seems to lock up one core of my CPU. The excessive processing only occurs while I am typing, so it is obvious that my code is being parsed and analyzed. This occurs even when I am editing some javasc...

Which VS 2008 project for using MVC and WorkFlow

In Visual Studio 2008 after I add the Feb 2010 SharePoint extensions, I see project templates for Workflow (eg., State Machine Workflow Library) and under C#/Web a project for ASP.NET MVC Web Application. If I'd like to do a State Machine WorkFlow using MVC which should I choose and which additional modifications do I need to do ? (I'm...

Can WPF apps be compiled to native code?

I know there are tools like Salamander that can compile a .NET WinForms apps to fully native code with no need for the CLR/.NET Framework to be on a machine. Is this possible for WPF apps as well? ...

Features of Visual Studio 2005 that is not in Visual Studio 2008

Currently I have both Visual Studio 2005 and 2008 on my machine. If I uninstall Visual Studio 2005, would I be missing something? If there is, what are they? Let's assume that I did a complete (not default) installation for both releases. Thanks in advance for your time and expertise. ...

MVC .NET How to add unit test project in for existing source code?

I've already created MVC project (VS2008 .NET 3.5) at first time VS2008 ask me "Would you like to create Unit text project for this application ?" I choose No.. Now I realize that it's growing more complex and test driven development is better. but can't findout how to add a unit test project in my solution? ...

Post build copy config file to another project

I have a solution which contains a website and various class libraries. The exists on the file system like so: C:\Projects \MyWebsite\dev\MyWebsite.sln C:\Projects\Core\MyClassLibrary1.csproj C:\Projects\Core\MyClassLibrary2.csproj I want to move the App.config file from MyClassLibrary1 project to the bin of the MyClassLibrary2. I...

LINQ intellisense stopped working

What happend to my Intellisense?? When I type a line like this ... Dim users = (From u In Membership.GetAllUsers Select u.UserName) ... I get (almost) no Intellisense when I get to the Select u. part. Only Equals, GetHashCode, GetType, ReferenceEquals and ToString appears. Not "UserName" and the other relevant propeties of the Membe...

Installing SQL Server 2008 on a development machine

I am setting up a new Windows 7 machine. I have installed VS 2008 Team System Developer / Database Ed. I have also installed SP1 and ran windows update. When I now try to install SQL Server on the machine it fails because I have a "Previous version" of visual studio. Anyone know why I am getting this error or how to fix it? EDIT I ...