V
V
Valery Osipov2014-10-24 13:01:06
.NET
Valery Osipov, 2014-10-24 13:01:06

How to make dll file assembly name variable in Visual Studio?

I am writing a C# DLL plugin for Autocad. It is impossible to unload the assembly and reload it, so I need to restart AutoCAD to update the plugin. Given that the program itself is heavy, this is inconvenient.
Empirically, I found out that when loading, AutoCAD checks the "Assembly name" (which is set in the project properties, in the "Application" tab).
Is it possible to somehow automatically change this name to a random one when building the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alr, 2014-11-25
@alr

You can use something scripted, such as PowerShell, to write an AssemlyInfo.cs file handler and enter the launch line in Build Events -> Event Command Line before building.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question