![](/img/trans.png)
[英]How to change the reference file type from “Assembly” to “ActiveX” in Visual Studio?
[英]How to change assembly name in Visual Studio?
我需要在每次編譯后通過將增量添加到基本名稱來重命名DLL的程序集名稱。 例如
1 compile: Assembly name - basename1.dll
2 compile: Assembly name - basename2.dll
n compile: Assembly name - basenamen.dll
我不能只重命名文件,因為dll包含一些有關其名稱的元信息。 每次重新編譯后如何自動執行?
我使用Visual Studio 2013,c#
您可以在項目屬性中添加一個后構建步驟,如下所示:
rename "$(TargetPath)" "newname.dll"
如果要添加有關文件的更多特定信息,則可以創建一個powershell腳本來讀取AssemblyInfo並將其添加到文件名中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.