views:

307

answers:

5

To create a project in VS2008 you have to assign the compiled output a name right when you create the project. If you are creating a class library this output is <output name>.DLL. I can change every other name in the project through the VS2008 interface. If I later regret the output's name I cannot find a way to change the project's output *.exe or *.dll name.

How does one change the name of the output of a VS2008 project when the project has been created and that output name has been already defined?

+5  A: 

Change the assembly name in the project properties.

In Solution Explorer, find the project you're interested in and double click on "Properties" (just under the project name). That will bring up the properties page for the project in the main editor view.

In the "Application" tab there's an "Assembly name" option - this is what decides the output filename.

Jon Skeet
Note: this is a bit different if you have a C++ project (and Class Library is a C++ option!).
crashmstr
+1  A: 

In the Project Properties, on the Application tab, just change the "Assembly name" property.

John Saunders
+1  A: 

The the project properties, under the "Application" tab, the field "Assembly name" will change the name for the output exe or dll.

heavyd
+1  A: 

Right click the project, hit properties, there's an input on the Application tab called 'Assembly Name', that's your dll name.

Paul
A: 

In VS2008 I fixed this by opening the <project name>.csproj and editing the text that appears between the <Assembly Name> .. and .. </Assembly Name> XML tags to be the desired output assembly file name.

EDIT: I posted the question so that I could share my answer with everyone. I am truly impressed by the speed of the answers I got. Thank you.

@John Saunders - I come from a UNIX background so when the UI doesn't yield an answer after a few minutes of poking I tend to go spelunking with 'emacs' or 'vi.'

rfreytag
Yes, you can do it the hard way too ;)
thijs
What was your reason for doing this by editing the project file? Did you need to do it for more than one project?
John Saunders
Honestly, I come from a Unix background and when the UI is not immmediately helpful I tend to go spelunking in the files with 'emacs' or 'vi.'
rfreytag