I'm trying to deploy a project using Mono for Android, referencing the Mono build of log4net, v2.
It compiles ok, but when i try and deploy it i get the following in Output: ----- *START* ------ Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 28/07/2011 12:29:49 PM. Project "D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj" on node 1 (SignAndroidPackage target(s)). _GenerateAndroidAssetsDir: Skipping target "_GenerateAndroidAssetsDir" because it has no outputs. _ResolveMonoAndroidSdks: Looking for Android SDK.. Key HKCU\SOFTWARE\Android SDK Tools\Path not found. Key HKLM\SOFTWARE\Android SDK Tools\Path found: Path contains adb.exe in \platform-tools (D:\Android\android-sdk). Looking for Java SDK.. Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found: 1.6. Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome found: Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.6.0_24). MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Novell\ MonoAndroid Framework: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\ Android SDK: D:\Android\android-sdk\ Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_24\ _ValidateAndroidPackageProperties: GetAndroidPackageName Task ManifestFile: AssemblyName: MonoTestApp PackageName: MonoTestApp.MonoTestApp _UpdateAndroidResgen: Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files. Project "D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj" (1) is building "D:\work\Test\Branches\v9.02.03.14-Mono\Common\Utr.Common\Utr.Common.Mono.csproj" (2) on node 1 (default targets). CoreResGen: All outputs are up-to-date. GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. CoreCompile: Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files. GenerateSatelliteAssemblies: Skipping target "GenerateSatelliteAssemblies" because all output files are up-to-date with respect to the input files. CopyFilesToOutputDirectory: Utr.Common.Mono -> D:\work\Test\Branches\v9.02.03.14-Mono\Common\Utr.Common\bin\Debug-Mono\Utr.Common.dll _ResolveMonoAndroidSdks: Looking for Android SDK.. Key HKCU\SOFTWARE\Android SDK Tools\Path not found. Key HKLM\SOFTWARE\Android SDK Tools\Path found: Path contains adb.exe in \platform-tools (D:\Android\android-sdk). Looking for Java SDK.. Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found: 1.6. Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome found: Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.6.0_24). MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Novell\ MonoAndroid Framework: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\ Android SDK: D:\Android\android-sdk\ Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_24\ _ValidateAndroidPackageProperties: GetAndroidPackageName Task ManifestFile: AssemblyName: Utr.Common PackageName: Utr.Common _ConvertDebuggingFiles: Skipping target "_ConvertDebuggingFiles" because all output files are up-to-date with respect to the input files. Done Building Project "D:\work\Test\Branches\v9.02.03.14-Mono\Common\Utr.Common\Utr.Common.Mono.csproj" (default targets). GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. CoreCompile: Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files. CopyFilesToOutputDirectory: MonoTestApp -> D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\bin\Debug\MonoTestApp.dll _ConvertDebuggingFiles: Skipping target "_ConvertDebuggingFiles" because all output files are up-to-date with respect to the input files. _CompileAndroidPackage: Mandroid Task Assemblies: D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\bin\Debug\MonoTestApp.dll; D:\work\Test\Branches\v9.02.03.14-Mono\Lib\log4net\mono\log4net.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\OpenTK.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll; D:\work\Test\Branches\v9.02.03.14-Mono\Common\Utr.Common\bin\Debug-Mono\Utr.Common.dll I18nAssemblies: BuildDirectory: D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\obj\Debug-Mono\ ReferenceAssembliesDirectory: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\;; AndroidSdkDirectory: D:\Android\android-sdk\ JavaSdkDirectory: C:\Program Files (x86)\Java\jdk1.6.0_24\ AssetDirectory: D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\obj\Debug-Mono\assets\ AndroidSdkPlatform: 8 MonoAndroidToolsDirectory: C:\Program Files (x86)\MSBuild\Novell\ ResourceDirectory: D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\obj\Debug-Mono\res\ ManifestTemplate: Package: MonoTestApp.MonoTestApp NativeLibrary: JavaSource: Debug: True UseSharedRuntime: True SupportedAbis: armeabi LinkMode: Full ExtraArgs: C:\Program Files (x86)\MSBuild\Novell\mandroid.exe -v --nosign --sdk-dir="D:\Android\android-sdk" --builddir="D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\obj\Debug-Mono\android" --framework-dir="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2" --framework-dir="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0" -S="D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\obj\Debug-Mono\res" --package="MonoTestApp.MonoTestApp" --abi="armeabi" --java-sdk-dir="C:\Program Files (x86)\Java\jdk1.6.0_24" --debug --sdk-platform="8" "D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\bin\Debug\MonoTestApp.dll" "D:\work\Test\Branches\v9.02.03.14-Mono\Lib\log4net\mono\log4net.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\OpenTK.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll" "D:\work\Test\Branches\v9.02.03.14-Mono\Common\Utr.Common\bin\Debug-Mono\Utr.Common.dll" MANDROID : error : while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.VisualC, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? [D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj] File name: 'Microsoft.VisualC.dll' at Monodroid.Tuner.MonoDroidResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in <filename unknown>:0 at Monodroid.Scanner.ComputeListOfAssemblies (Monodroid.Arguments args, System.Collections.Generic.HashSet`1 assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0 at Monodroid.Scanner.ComputeListOfAssemblies (Monodroid.Arguments args, System.Collections.Generic.HashSet`1 assemblies, Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0 at Monodroid.Scanner.ComputeListOfAssemblies (Monodroid.Arguments args) [0x00000] in <filename unknown>:0 monodroid : error 1: System.ArgumentNullException: Argument cannot be null. [D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj] Parameter name: source at System.Linq.Check.SourceAndSelector (System.Object source, System.Object selector) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.SelectMany[String,String] (IEnumerable`1 source, System.Func`2 selector) [0x00000] in <filename unknown>:0 at Monodroid.Droidinator.CopyPackagedResources (System.Collections.Generic.List`1 assemblies) [0x00000] in <filename unknown>:0 at Monodroid.Droidinator.CreateApk () [0x00000] in <filename unknown>:0 at Monodroid.MainClass.Main (System.String[] argv) [0x00000] in <filename unknown>:0 Done Building Project "D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj" (SignAndroidPackage target(s)) -- FAILED. Build FAILED. "D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj" (SignAndroidPackage target) (1) -> (_CompileAndroidPackage target) -> MANDROID : error : while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.VisualC, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? [D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj] monodroid : error 1: System.ArgumentNullException: Argument cannot be null. [D:\work\Test\Branches\v9.02.03.14-Mono\Common\MonoTestApp\MonoTestApp.csproj] 0 Warning(s) 2 Error(s) Time Elapsed 00:00:03.39 Error: Cancelled ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== ----- *END* ------ The issue appears to be that it can't find the Microsoft.VisualC assembly. Can anyone help me resolve this please? Thanks! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Problems-with-log4net-tp4641046p4641046.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid