How to get VS2008 to create a different *.DLL name

2019-06-22 16:27发布

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?

6条回答
叼着烟拽天下
2楼-- · 2019-06-22 16:53

For C++ I found this option under Linker->General->Output File

查看更多
狗以群分
3楼-- · 2019-06-22 17:01

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

查看更多
可以哭但决不认输i
4楼-- · 2019-06-22 17:01

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

查看更多
做个烂人
5楼-- · 2019-06-22 17:04

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.'

查看更多
来,给爷笑一个
6楼-- · 2019-06-22 17:10

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

查看更多
迷人小祖宗
7楼-- · 2019-06-22 17:13

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.

查看更多
登录 后发表回答