Alex Rivera | Logout

How to change the Assembly Name in C# Programmatically

Asked 2009-09-15T05:43:31.290
9

I want to change the name of my Assembly Programmatically in C#, there is a way through which I can change it from Project Properties, but I want to change it Programmatically, so that my output .exe name is changed.. Any trick for that?

Edit
Report

1 Answer

0

In a post-build event, this should do the trick:

if <Condition> == <truevalue> xcopy output.dll newassembly.dll /y /s /d

To configure post-build events: right-click the project in Solution Explorer, click Properties, then click Build Events.

answered 2009-09-15T07:09:07.483

Your Answer