Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Compiling .NET 3.5 executables?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2009, 02:15 AM
Senior Member
 
Join Date: May 2007
Posts: 125
Default Compiling .NET 3.5 executables?

Hi there, I know using the nonoptimizing compiler, it is possible to use any .NET Framework version with any .NET DLL. But is it possible to use features from later .NET Frameworks since Basic4ppc generates .NET 2.0 executables? Would a simple configuration file fix this problem? What about C-sharp code files that use classes and methods from later versions? Would the 2.0 C-sharp compiler flag those as errors? Or would we just exclude the c-sharp code altogether? Thanks.
Reply With Quote
  #2 (permalink)  
Old 08-17-2009, 09:50 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Louis View Post
I know using the nonoptimizing compiler, it is possible to use any .NET Framework version with any .NET DLL. ?
Not true I'm afraid. A dll that is compiled using features of a later version of the .NET Framework will not run on an earlier version of the Framework.

Quote:
Would the 2.0 C-sharp compiler flag those as errors?
Yes, if you try to merge the source code at compilation. However in practice this won't be a problem because each version of the .NET Framework comes with a compatible C# compiler so if it is going to run on your system then it will compile on your system.

However if you transfer the compiled merged application or just the compiled dll to a system with an earlier version of the .NET Framework then it may not run. This depends upon whether the additional features that you used are compatible with earlier versions of the Framework and whether it uses any classes added in later versions. This problem will exist whether the source of the library was merged or if a separate dll is used.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling adbftrainer Questions (Windows Mobile) 1 10-19-2008 09:03 PM
Compiling on PPC Darklust Questions (Windows Mobile) 2 07-24-2008 10:18 AM
Compiling with old .NET Sta Questions (Windows Mobile) 2 03-16-2008 08:07 PM
Compiling kavka Questions (Windows Mobile) 6 10-18-2007 12:25 AM
Compiling Executables on the PPC? Louis Basic4ppc Wishlist 1 06-27-2007 06:28 PM


All times are GMT. The time now is 04:11 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0