问题
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?
回答1:
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.
回答2:
For C++ I found this option under Linker->General->Output File
回答3:
In the Project Properties, on the Application tab, just change the "Assembly name" property.
回答4:
The the project properties, under the "Application" tab, the field "Assembly name" will change the name for the output exe or dll.
回答5:
Right click the project, hit properties, there's an input on the Application tab called 'Assembly Name', that's your dll name.
回答6:
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.'
来源:https://stackoverflow.com/questions/1007034/how-to-get-vs2008-to-create-a-different-dll-name-after-you-have-already-create