NINTENDO Grandmaster Cheater Supreme Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
Posted: Mon Mar 08, 2010 2:52 pm Post subject: [c#][Error]Dynamic compiling at runetime.
So a while ago I learned how to compile programs at runetime. And it works really good for a console application. But I wan't to do a forms app. Is it much different?
This is a piece of the code I use :
Code:
private void Compile(string Output)
{
CompilerParameters parameters = new CompilerParameters();
parameters.ReferencedAssemblies.Add("System.Windows.Forms.dll");
parameters.ReferencedAssemblies.Add("System.ComponentModel.dll");
As far as I know, System.Component.dll does not exist. I think the System.Component namespace can be found in System.dll.
Edit: By the way, you can find which assembly a certain namespace belongs to by going into the object browser(View->Other Windows->Object Browser) and searching for it. Then select it from the list that appears, and click on the link down to the right which says
Code:
Namespace namespacenamehere
Member of assemblynamehere
. The text will update, showing the path to the assembly. _________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
NINTENDO Grandmaster Cheater Supreme Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
Posted: Tue Mar 09, 2010 11:39 am Post subject:
Odecey wrote:
As far as I know, System.Component.dll does not exist. I think the System.Component namespace can be found in System.dll.
Edit: By the way, you can find which assembly a certain namespace belongs to by going into the object browser(View->Other Windows->Object Browser) and searching for it. Then select it from the list that appears, and click on the link down to the right which says
Code:
Namespace namespacenamehere
Member of assemblynamehere
. The text will update, showing the path to the assembly.
Thanks. I have a greater understanding on how .net works now _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum