简体   繁体   中英

How to change assembly name in Visual Studio?

I need to rename assembly name of DLL, after every compile, by adds increment to base name. For example

1 compile: Assembly name - basename1.dll
2 compile: Assembly name - basename2.dll
n compile: Assembly name - basenamen.dll

I cant just rename a file, because dll contains some meta information about its name. How can i do it automatically after every recompile?

I use Visual studio 2013,c#

You can add a post build step in your project properties, something like this:

rename "$(TargetPath)" "newname.dll"

If you want to add more specific information about the file, then you can create a powershell script that reads the AssemblyInfo and adds that to the file name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM