Hack Forums
[C#] Change the Assembly inside code. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Change the Assembly inside code. (/showthread.php?tid=5778042)



Change the Assembly inside code. - josha28 - Jan 2, 2018

How can i change the assembly in the code
Code
using (stuff);

[assembly: AssemblyTitle("System Monitor")]

but where can i change it mid code??


RE: Change the Assembly inside code. - Aristocles - Jan 2, 2018

[Image: 68XtFoP.png]

right click ?


RE: Change the Assembly inside code. - josha28 - Jan 2, 2018

I mean in the code itself when you run the exe the asseblys will change


RE: Change the Assembly inside code. - HFDone - Jan 2, 2018

at the top of your code
using system;
[assembly: AssemblyTitle("test")]
namespace assembly {
...
https://msdn.microsoft.com/en-us/library/cc543591.aspx


RE: Change the Assembly inside code. - Cyber Parasite - Jan 2, 2018

(Jan 2, 2018 08:36 AM)josha28 Wrote:  I mean in the code itself when you run the exe the asseblys will change

You cant.


RE: Change the Assembly inside code. - gigajew - Jan 2, 2018

The only way to achieve a runtime name change is to generate the assembly in memory, compiling code on the fly and so on, or possibly recompiling an existing assembly before invoking it


RE: Change the Assembly inside code. - Vyxn - Jan 2, 2018

(Jan 2, 2018 08:36 AM)josha28 Wrote:  I mean in the code itself when you run the exe the asseblys will change

You may search for the assembly called AssemblyChanger. I know some assembly changer used it.


RE: Change the Assembly inside code. - ๖ۣۜDiViN3 - Jan 4, 2018

C# File Resource Management Library: ResourceLib
Wiki: Example


RE: Change the Assembly inside code. - n0$f3ratu$ - Jan 6, 2018

(Jan 2, 2018 06:12 AM)josha28 Wrote:  How can i change the assembly in the code
Code
using (stuff);

[assembly: AssemblyTitle("System Monitor")]

but where can i change it mid code??

You can do it using CodeDOM.