Closed dbell-movano closed 4 years ago
/PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)
Can you please post the entire build log and environment, as the template requests.
FYI- I am only using Emb4000 for a Xamarin.ios project, no Android.
re error #1 /PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(113,31,113,38): error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) 0 Warning(s) 1 Error(s)
Build Logs...
QUESTIONS: How do I build objcgen from project Embeddinator-4000 ?
Do I build form issuing "make" within MacOS terminal, or which project should I open to build with Visual Studio?...
IE. which project .csproj will build objcgen for embeddinator4000 conversion of a Xamarin. ios project?
16 -rw-r--r-- 1 dbell wheel 7303 Mar 11 11:46 CppSharp.AST.csproj 40 -rw-r--r-- 1 dbell wheel 16402 Mar 11 11:46 CppSharp.Generator.csproj 8 -rw-r--r-- 1 dbell wheel 3343 Mar 11 11:46 CppSharp.Parser.CSharp.csproj 8 -rw-r--r-- 1 dbell wheel 4036 Mar 11 11:46 CppSharp.Parser.csproj 8 -rw-r--r-- 1 dbell wheel 2917 Mar 11 11:46 CppSharp.Runtime.csproj 8 -rw-r--r-- 1 dbell wheel 3691 Mar 11 11:46 CppSharp.csproj 24 -rw-r--r--@ 1 dbell wheel 10841 Mar 11 11:46 Embeddinator-4000.csproj 8 -rw-r--r-- 1 dbell wheel 773 Mar 14 16:41 Embeddinator-4000.sln 32 -rw-r--r-- 1 dbell wheel 16310 Mar 11 11:46 IKVM.Reflection.csproj 16 -rw-r--r-- 1 dbell wheel 5934 Mar 11 11:46 Xamarin.Android.Tools.csproj 24 -rw-r--r-- 1 dbell wheel 8938 Mar 14 16:46 Xamarin.MacDev.csproj 8 -rw-r--r-- 1 dbell wheel 767 Mar 14 16:46 Xamarin.MacDev.sln
https://github.com/mono/Embeddinator-4000#makefile
Makefile
The Objective-C portions of the project can be built with make in objcgen.
chamons, okay, I wentinto objcgen/ and did make but got 91 errors beginning with these: CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Emit/ConstructorBuilder.cs' could not be found. [/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/IKVM.Reflection.csproj] CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Type.cs' could not be found. [/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/IKVM.Reflection.csproj] CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Writer/TextSection.cs' could
Did you follow the instructions on the main page first:
https://github.com/mono/Embeddinator-4000
Specifically: Initialize/update submodules: git submodule update --recursive --init
?
Why are you trying to build objcgen instead of using the binary from the nuget?
Hi, Chris. Thanks so much for taking the time to help me. Emb-4000 is going to be a fantastic way for us to unite our Xamarin.IOS with our Xcode ObjC.
I answered your questions below.
But I feel there is something wrong in my workflow..
git clone https://github.com/mono/Embeddinator-4000.git
cd Embeddinator-4000
git submodule update --recursive --init
EVERYTHING IS OKAY TO HERE
From: Chris Hamons notifications@github.com Sent: Tuesday, March 17, 2020 11:40 AM To: mono/Embeddinator-4000 Embeddinator-4000@noreply.github.com Cc: Doug Bell dbell@movano.com; Author author@noreply.github.com Subject: Re: [mono/Embeddinator-4000] Embeddinator-4000.sln build fails on MacOS 10.14.6 Visual Studio 2019 v8.4.8 (#764)
Did you follow the instructions on the main page first:
https://github.com/mono/Embeddinator-4000
Specifically: Initialize/update submodules: git submodule update --recursive --init
?
Why are you trying to build objcgen instead of using the binary from the nuget?
[Doug Bell] Because I get these 3 errors when I try to build Embeddinator-4000.sln with Visual Studio on Mac …
1ST ERROR: /PRIMARY/WORK/Embeddinator-4000_attempt_3/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)
2ND ERROR: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
3RD ERROR: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/764#issuecomment-600234427, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOM563ZBBLBQ6W7HJYH66FDRH67XVANCNFSM4LF4QRPQ.
The errors are expected, if you build from the sln and not the objcgen directory you are building both the iOS/mac and Android support.
1ST ERROR:
/PRIMARY/WORK/Embeddinator-4000_attempt_3/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)
2ND ERROR:
Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
3RD ERROR:
Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
There errors are complaining about misconfiguration in your Android/Java SDK. If you unload the Java project from the sln, you shouldn't see them.
I have the same error when building e4k for Android:
error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?)
Steps:
./build.sh -t Generate-Android -v diagnostic
- ERROR:
Feeds used:
/Users/yauhenipakala/.nuget/packages/
https://api.nuget.org/v3/index.json
Restoring NuGet package Cake.0.31.0.
...
...
Compiling build script...
Error: System.IO.FileLoadException: The assembly name is invalid.
at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00043] in <f9d1b832704f410aa8ec771f4fe80552>:0
at Microsoft.CodeAnalysis.MonoGlobalAssemblyCache+<GetAssemblyIdentitiesAndPaths>d__6.MoveNext () [0x000af] in <3bfae55b53254752b1c3dc824b21dbe3>:0
at Microsoft.CodeAnalysis.MonoGlobalAssemblyCache.ResolvePartialName (System.String displayName, System.String& location, System.Collections.Immutable.ImmutableArray`1[T] architectureFilter, System.Globalization.CultureInfo preferredCulture) [0x00092] in <3bfae55b53254752b1c3dc824b21dbe3>:0
at Microsoft.CodeAnalysis.Scripting.Hosting.GacFileResolver.Resolve (System.String assemblyName) [0x00014] in <3bfae55b53254752b1c3dc824b21dbe3>:0
at Microsoft.CodeAnalysis.Scripting.Hosting.RuntimeMetadataReferenceResolver.ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity) [0x0001d] in <3bfae55b53254752b1c3dc824b21dbe3>:0
at Microsoft.CodeAnalysis.Scripting.ScriptMetadataResolver.ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity) [0x00000] in <3bfae55b53254752b1c3dc824b21dbe3>:0
at Microsoft.CodeAnalysis.CommonReferenceManager`2[TCompilation,TAssemblySymbol].ResolveAndBindMissingAssemblies (TCompilation compilation, System.Collections.Immutable.ImmutableArray`1[T] explicitAssemblies, System.Collections.Immutable.ImmutableArray`1[T] explicitModules, System.Collections.Immutable.ImmutableArray`1[T] explicitReferences, System.Collections.Immutable.ImmutableArray`1[T] explicitReferenceMap, Microsoft.CodeAnalysis.MetadataReferenceResolver resolver, Microsoft.CodeAnalysis.MetadataImportOptions importOptions, System.Boolean supersedeLowerVersions, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1[T] referenceBindings, System.Collections.Generic.Dictionary`2[TKey,TValue] assemblyReferencesBySimpleName, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+AssemblyData[TCompilation,TAssemblySymbol]]& allAssemblies, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& metadataReferences, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+ResolvedReference[TCompilation,TAssemblySymbol]]& resolvedReferences, Microsoft.CodeAnalysis.DiagnosticBag resolutionDiagnostics) [0x00123] in <45499d95dd89417f88ab4e01794e214c>:0
at Microsoft.CodeAnalysis.CommonReferenceManager`2[TCompilation,TAssemblySymbol].Bind (TCompilation compilation, System.Collections.Immutable.ImmutableArray`1[T] explicitAssemblies, System.Collections.Immutable.ImmutableArray`1[T] explicitModules, System.Collections.Immutable.ImmutableArray`1[T] explicitReferences, System.Collections.Immutable.ImmutableArray`1[T] explicitReferenceMap, Microsoft.CodeAnalysis.MetadataReferenceResolver resolverOpt, Microsoft.CodeAnalysis.MetadataImportOptions importOptions, System.Boolean supersedeLowerVersions, System.Collections.Generic.Dictionary`2[TKey,TValue] assemblyReferencesBySimpleName, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+AssemblyData[TCompilation,TAssemblySymbol]]& allAssemblies, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& implicitlyResolvedReferences, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+ResolvedReference[TCompilation,TAssemblySymbol]]& implicitlyResolvedReferenceMap, Microsoft.CodeAnalysis.DiagnosticBag resolutionDiagnostics, System.Boolean& hasCircularReference, System.Int32& corLibraryIndex) [0x0003f] in <45499d95dd89417f88ab4e01794e214c>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation+ReferenceManager.CreateAndSetSourceAssemblyFullBind (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation) [0x0007f] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation+ReferenceManager.CreateSourceAssemblyForCompilation (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation) [0x00008] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetBoundReferenceManager () [0x00008] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (Microsoft.CodeAnalysis.CompilationStage stage, System.Boolean includeEarlierStages, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Threading.CancellationToken cancellationToken) [0x00219] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (Microsoft.CodeAnalysis.CompilationStage stage, System.Boolean includeEarlierStages, System.Threading.CancellationToken cancellationToken) [0x00006] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (System.Threading.CancellationToken cancellationToken) [0x00000] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00099] in <a008ec96744a4a7683f917682c225be4>:0
at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments) [0x00358] in <5b0aab9fcc1a4aee9b9c4ae93daf4114>:0
at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x0003f] in <a008ec96744a4a7683f917682c225be4>:0
at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <a008ec96744a4a7683f917682c225be4>:0
at Cake.Program.Main () [0x000d1] in <a008ec96744a4a7683f917682c225be4>:0
.cake
folder./build.sh -t Generate-Android -v diagnostic
again - ERROR:
...
<Here everything is fine (Download-Xamarin-Android, Clean, Generate-Project-Files)>
...
...
Finished executing task: Generate-Project-Files
========================================
NuGet-Restore
========================================
Executing task: NuGet-Restore
Executing: /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/.cake/NuGet.exe restore "/Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln" -NonInteractive
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/15.0/bin'.
Error parsing solution file at /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln: Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln
An error occurred when executing task 'NuGet-Restore'.
Error: System.AggregateException: One or more errors occurred. (NuGet: Process returned an error (exit code 1).) ---> Cake.Core.CakeException: NuGet: Process returned an error (exit code 1).
at Cake.Core.Tooling.Tool`1[TSettings].ProcessExitCode (System.Int32 exitCode) [0x00023] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments, Cake.Core.IO.ProcessSettings processSettings, System.Action`1[T] postAction) [0x000a0] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Common.Tools.NuGet.Restore.NuGetRestorer.Restore (Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00026] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00044] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath) [0x00006] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Submission#0.NuGetRestore (Cake.Core.IO.FilePath targetFilePath) [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
at Submission#0.<<Initialize>>b__0_31 () [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass29_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass32_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeTask.Execute (Cake.Core.ICakeContext context) [0x0006c] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.DefaultExecutionStrategy.ExecuteAsync (Cake.Core.CakeTask task, Cake.Core.ICakeContext context) [0x000ee] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x000de] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00270] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00354] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.RunTask (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.CakeTask task, System.String target, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeReport report) [0x00124] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.RunTargetAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.ExecutionSettings settings) [0x00338] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Scripting.BuildScriptHost.RunTargetAsync (System.String target) [0x0009f] in <f7ab677035254e96ac028557e3c3278e>:0
at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <352990cac81e4748b475ea51792a9c60>:0
at Submission#0+<<Initialize>>d__0.MoveNext () [0x00c79] in <ace52ddd76c74844863d3614e57355f1>:0
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult] (System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Runtime.CompilerServices.StrongBox`1[T] exceptionHolderOpt, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x00186] in <e3eeb0e906164dce94410e4a1bbdb018>:0
at Microsoft.CodeAnalysis.Scripting.Script`1[T].RunSubmissionsAsync (Microsoft.CodeAnalysis.Scripting.ScriptExecutionState executionState, System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x000ab] in <e3eeb0e906164dce94410e4a1bbdb018>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <f9d1b832704f410aa8ec771f4fe80552>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <f9d1b832704f410aa8ec771f4fe80552>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <f9d1b832704f410aa8ec771f4fe80552>:0
at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00216] in <f7ab677035254e96ac028557e3c3278e>:0
at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments) [0x00382] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x0003f] in <f7ab677035254e96ac028557e3c3278e>:0
at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <f7ab677035254e96ac028557e3c3278e>:0
at Cake.Program.Main () [0x000d1] in <f7ab677035254e96ac028557e3c3278e>:0
---> (Inner Exception #0) Cake.Core.CakeException: NuGet: Process returned an error (exit code 1).
at Cake.Core.Tooling.Tool`1[TSettings].ProcessExitCode (System.Int32 exitCode) [0x00023] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments, Cake.Core.IO.ProcessSettings processSettings, System.Action`1[T] postAction) [0x000a0] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Common.Tools.NuGet.Restore.NuGetRestorer.Restore (Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00026] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00044] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath) [0x00006] in <f9be2685cd444b48bcc7c151afd77c59>:0
at Submission#0.NuGetRestore (Cake.Core.IO.FilePath targetFilePath) [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
at Submission#0.<<Initialize>>b__0_31 () [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass29_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass32_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeTask.Execute (Cake.Core.ICakeContext context) [0x0006c] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.DefaultExecutionStrategy.ExecuteAsync (Cake.Core.CakeTask task, Cake.Core.ICakeContext context) [0x000ee] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x000de] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00270] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00354] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.RunTask (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.CakeTask task, System.String target, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeReport report) [0x00124] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Core.CakeEngine.RunTargetAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.ExecutionSettings settings) [0x00338] in <352990cac81e4748b475ea51792a9c60>:0
at Cake.Scripting.BuildScriptHost.RunTargetAsync (System.String target) [0x0009f] in <f7ab677035254e96ac028557e3c3278e>:0
at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <352990cac81e4748b475ea51792a9c60>:0
at Submission#0+<<Initialize>>d__0.MoveNext () [0x00c79] in <ace52ddd76c74844863d3614e57355f1>:0
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult] (System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Runtime.CompilerServices.StrongBox`1[T] exceptionHolderOpt, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x00186] in <e3eeb0e906164dce94410e4a1bbdb018>:0
at Microsoft.CodeAnalysis.Scripting.Script`1[T].RunSubmissionsAsync (Microsoft.CodeAnalysis.Scripting.ScriptExecutionState executionState, System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x000ab] in <e3eeb0e906164dce94410e4a1bbdb018>:0 <---
diff --git a/.cake/packages.config b/.cake/packages.config
index 6c62e9b..cedcc6a 100644
--- a/.cake/packages.config
+++ b/.cake/packages.config
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="Cake" version="0.31.0" />
+ <package id="Cake" version="0.37.0" />
</packages>
diff --git a/build/projects/Embeddinator-4000.csproj b/build/projects/Embeddinator-4000.csproj
index bb28f7c..fda8e31 100644
--- a/build/projects/Embeddinator-4000.csproj
+++ b/build/projects/Embeddinator-4000.csproj
@@ -11,7 +11,6 @@
<AssemblyName>Embeddinator-4000</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
- <BaseIntermediateOutputPath>..\obj\Debug\Embeddinator-4000</BaseIntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
@@ -141,8 +140,8 @@
<Compile Include="../../binder/Parser.cs">
<Link>binder/Parser.cs</Link>
</Compile>
- <Compile Include="..\..\binder\Passes\CheckDeclarationsPass.cs">
- <Link>binder\Passes\CheckDeclarationsPass.cs</Link>
+ <Compile Include="../../binder/Passes/CheckDeclarationsPass.cs">
+ <Link>binder/Passes/CheckDeclarationsPass.cs</Link>
</Compile>
<Compile Include="../../binder/Passes/CheckReservedKeywordsPass.cs">
<Link>binder/Passes/CheckReservedKeywordsPass.cs</Link>
diff --git a/build/projects/Xamarin.Android.Tools.csproj b/build/projects/Xamarin.Android.Tools.csproj
index fd35b86..6361c33 100644
--- a/build/projects/Xamarin.Android.Tools.csproj
+++ b/build/projects/Xamarin.Android.Tools.csproj
@@ -73,6 +73,9 @@
<Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/FileUtil.cs">
<Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/FileUtil.cs</Link>
</Compile>
+ <Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/JdkInfo.cs">
+ <Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/JdkInfo.cs</Link>
+ </Compile>
<Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/OS.cs">
<Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/OS.cs</Link>
</Compile>
diff --git a/build/projects/packages.config b/build/projects/packages.config
index 2755199..18f4e92 100644
--- a/build/projects/packages.config
+++ b/build/projects/packages.config
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Mono.Cecil" version="0.9.6.4" targetFramework="net46" />
- <package id="Mono.TextTransform" version="1.0.0" targetFramework="net46" />
-</packages>
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Mono.Cecil" version="0.9.6.4" targetFramework="net46" />
+</packages>
\ No newline at end of file
objcgen
works fine.
I followed the instructions and now objcgen command line generates ObjC from Xamarin ios.
This is closed. But I can't find a CLOSE button.
Steps to Reproduce
Expected Behavior
Should build.
Actual Behavior
Build fails with these 3 errors: Error 1: /PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)
Error 2: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
Error 3: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.
Environment
Visual Studio 2019 8.4.8 on MAC OS 10.14.6 builds Xamarin.obj class lib project Embeddinator-4000 (ie. objcgen etc)
Build Logs
Example Project (If Possible)