Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[c#][Solved] Compiler Error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Mar 06, 2010 5:24 pm    Post subject: [c#][Solved] Compiler Error Reply with quote

Ok.

So I'm trying to compile a program at runetime but it won't let me as I haven't made an assembly reference.

Does anyone know how to add an assembly reference at runtime?



WHYZ.png
 Description:
 Filesize:  205.99 KB
 Viewed:  6907 Time(s)

WHYZ.png



_________________
Intel over amd yes.


Last edited by NINTENDO on Sun Mar 07, 2010 4:04 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Sat Mar 06, 2010 7:54 pm    Post subject: This post has 1 review(s) Reply with quote

Well, based solely on what I've read, I'd guess that you haven't added the System.Data.dll reference to your CompilerParameters object. This is of course assuming you are using CodeDOM.
Edit: By the way, you don't need the System.Data reference in the example you gave.

_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sat Mar 06, 2010 8:02 pm    Post subject: Reply with quote

the Data namespace can't be found in System. so add the reference, btw did you code that compiler?
Back to top
View user's profile Send private message MSN Messenger
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sat Mar 06, 2010 8:22 pm    Post subject: Reply with quote

iPromise wrote:
the Data namespace can't be found in System. so add the reference, btw did you code that compiler?



"Does anyone know how to add an assembly reference at runtime? "

Read the fking post?
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Mar 07, 2010 3:45 am    Post subject: Reply with quote

iPromise wrote:
the Data namespace can't be found in System. so add the reference, btw did you code that compiler?

No I'm using the prebuilt compiler made by microsoft.

Odecey wrote:
Well, based solely on what I've read, I'd guess that you haven't added the System.Data.dll reference to your CompilerParameters object. This is of course assuming you are using CodeDOM.
Edit: By the way, you don't need the System.Data reference in the example you gave.


Thanks man, rep to you Razz
Code:
           
    CompilerParameters parameters = new CompilerParameters();
    parameters.ReferencedAssemblies.Add("System.Data.dll");

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites