The only supported compact framework version is NETCF 1.0 (see http://logging.apache.org/log4net/release/framework-support.html here ) try compiling it for NETCF 1.0 and it should do ok,for example if you use VS for compiling it, then in the project properties->Build change the conditional compilation symbols from "NET; NET_1_0" (or whatever) to "NETCF; NETCF_1_0" and build.
Radovan Raszka wrote: > > Hello, > This question is probably for developer forum, but I'm unable to > subscribe it (no response for subscribe request) > > I'd like to compile log4net from current source for Compact framework > 2.0, but wasn't succesfull, I got these error from Nant: > > compile-netcf-2.0: > > [csc] Compiling 216 files to > 'F:\server\devdata\log4net-svn\bin\netcf\2.0\debug\log4net.dll'. > [csc] > f:\server\devdata\log4net-svn\src\Core\LocationInfo.cs(277,10): error > CS0246: The type or namespace name 'StackFrame' could not be found (are > you missing a using directive or an assembly reference?) > [csc] > f:\server\devdata\log4net-svn\src\Core\LocationInfo.cs(291,20): error > CS0246: The type or namespace name 'StackFrame' could not be found (are > you missing a using directive or an assembly reference?) > > BUILD FAILED > > F:\server\devdata\log4net-svn\log4net.build(427,14): > External Program Failed: > c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was > 1) > > I checked documentation and found that StackFrame class is not supported > in compact framework.... What to do now? > I got sources from http://svn.apache.org/repos/asf/logging/log4net/trunk > - is it correct path? > Or is it possible to get binary for CF 2.0? Zip file avalable on the > download page contains only binary for CF 1.0 > > Radovan Raszka > > -- View this message in context: http://old.nabble.com/Problem-compile-log4net-for-NETCF-2.0-tp27528222p30413542.html Sent from the Log4net - Users mailing list archive at Nabble.com.