we have a very old windows program which developed with c# and with every new publishment the customers need to reinstall the program’s new version. I wonder that if it’s possible.
- I will store all classes into txt files
- When program starts to run, my dispatcher class will search for related txt file and it will create the form/class with Assembly.Load on the fly.
- Let’s assume if I change something in X form, I will only revise the text file related to X form and overwrite it.
Is this possible?
Why txt files, you mean in source code form? Assembly.Load() is not a compiler.
This is not Java. You do not compile classes into *.class files (binary files).
An aggregate of C# classes are compiled into dll (a binary file).
Assembly.Load() only loads .NET dll.
So not possible to use Assembly.Load() directly with text files.