Debugger Error (.Net Core)

While trying to run the .Net Core template the debugger crashes

~> The process failed to start with the following error: System.Exception: Timeout waiting for debugger: You must install or update .NET to run this application.
~>
~> App: C:\Program Files (x86)\RemObjects Software\Elements\Bin\Core\RemObjects.Elements.Debugger.dll
~> Architecture: x64
~>
~> Framework: ‘Microsoft.NETCore.App’, version ‘6.0.1’ (x64)
~> .NET location: C:\Program Files\dotnet
~>
~> The following frameworks were found:
~> 8.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
~>
~> Learn more:
~> Troubleshoot app launch failures - .NET | Microsoft Learn
~>
~> To install missing framework, download:
~> Download .NET 6.0 Runtime
~>
~>
~> bei RemObjects.Elements.Debugger.MI.LocalTCPProcessDebugger.SetTarget(IDebugEngineTarget aTarget)
~> bei RemObjects.Elements.Debugger.MI.DebugEngine…ctor(IDebugEngineSource aSource)
~> bei RemObjects.Elements.Debugger.MIDebugEngine.Start()
~> bei RemObjects.Fire.ProjectSystem.DebugSession.b__1()
~> bei RemObjects.Fire.BaseLibrary.SBLDispatch.<>c__DisplayClass2.b__0()

ConsoleApplication 1.bugreport.zip (182.9 KB)

It sounds like you’re trying to run .NET Core 6 app, but only .NET Core 8 is installed?

Only .Net Core 8 is installed.
Maybe the problem is referencing “Echoes” which seems to be only available in versions .Net Core 5 & 6 under
“c:\Program Files (x86)\RemObjects Software\Elements\References\Echoes”
after installation.

ConsoleApplication.elements (1.9 KB)

You’ll need to install .NET 4.8, as Elements sues that,. the installer should install that automatically if needed, but maybe for some reason that didn’t work on your system.

.Net 4.8 is installed

Sorry, I think this was in the wring thread; this was in relation to the installer failing.

Okay, that explains it; for some reason, your project wants to run as .NET 6.

No, thta is not the issue. this just means that these files support .NET Core 5 and later (ie a project et to build for .NET Core 3 would not be able to pick up that version as reference).

I see your project does not set a hardcoded .NET Core version, that is good, but that also means I have not idea why it would try to run ad v6. Can tie do a full rebuild and send me the build log? Also, if this is Water (or Fire), which versions in .NERT Coire show in the TargetFramework dropdown? What happens if you explicitly select “.NETCore8.0”?

thanx,
marc

Hi Marc

Im using Water with the provided .Net Core template.

The full build log is

ConsoleApplication 1.bugreport.txt (4.0 KB)

The settings are

… and when i change the target fw to 8, the result is exactly the same.

Hope this helps
Thank you

Did you look at that file before you uploaded it? (rhetorical question)

Yes, of course. But maybe i’ve misunderstood something…

I’m asking, because its not a complete build log, and its contents is rather obviously useless :wink:

"C:\Program Files (x86)\RemObjects Software\Elements\Bin\EBuild.exe" --logger:fire "D:\temp\RO Tests\CoreDebuggerError\ConsoleApplication\ConsoleApplication.sln" --configuration:Debug --rebuild --setting:TreatFixableErrorsAsWarnings=True "--xml:D:\temp\RO Tests\CoreDebuggerError\ConsoleApplication\obj\ConsoleApplication.water.xml" --no-goal --verbosity:normal
RemObjects EBuild. An open source build engine for Elements and beyond.
Copyright RemObjects Software 2016-2024. All Rights Reserved. Created by marc hoffman.
Version 12.0.0.2919 (develop) built on bajor, 20240405-195957. Commit fd77e8e.

   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Cleanup.cache
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.deps.json
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.dll
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.exe
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.pdb
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.publichash
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.runtimeconfig.dev.json
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\ConsoleApplication.runtimeconfig.json
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Echoes.dll
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Caches\CoreCompile.cache
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Caches\EchoesResources.cache
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Caches\ResolveReferences.cache
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Caches\Rodls.cache
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Caches
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Generators\Properties-Resources.Designer.pas
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Generators\Properties-Settings.Designer.pas
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Generators
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\res\Properties-Resources.resources
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\res
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes\Rodls
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug\Echoes
   Deleted C:\Users\Flucke\AppData\Local\RemObjects Software\EBuild\Obj\77BA3091D41946E7E06381AE256F899BE813FF25\Debug
   Solution 'ConsoleApplication' cleaned successfully.
   Reference 'Echoes' was resolved to 'C:\Program Files (x86)\RemObjects Software\Elements\References\Echoes\NETCore5.0\Echoes.dll' via XML for target 'Echoes'.
   Solution 'ConsoleApplication' built successfully.

Yes. That’s waht i get when calling Help/Troubleshooting/Generate Report for Compiler Issue
after a Rebuild.
Maybe i’m stupid, how do i get a better log ?

Maybe this is better…

EBuild.txt (25.5 KB)

No (a) thats after Clean, not a Rebuild, and (b_), please turn on Diagnostic build level in preferences.

Not really. I’m sure you can see that there’s no useful info in these files, if you look at them yourself?

ConsoleApplication 1.bugreport.txt (58.4 KB)

Sorry, i never used that setting…

Maybe this is of some help…

Thanx. the project is indeed correctly built for .NET Core 8. So that is good. Im not sure why it would try and debug it under .NET Core 6.0.

That said, re-reading the original message again, it also mentioned Architecture. You have the x64 version of .NET Core 8 installed (according to the message). Since in your other thread you mentioned about issues with building for i386 – is your project set to build for 32bit or 64bit?

No, this is normal. The DbgShim package is not meant for referencing in a project; int only delivers the .dll we need for debugging. So that error/warning message is correct; you should not reference this package directly…

Hi Marc,
After trying to run the Core Version of EBuild (experimental setting in Water) i got this:

EBuild_Core.txt (967 Bytes)

So i installed the Core Version 6 (additionally) and everything works fine.
EBuild runs and the debugging issue is solved.

So i can work/evaluate/debug now. :slight_smile:

Excellent. FWIW, to run EBuild (and Water) on Core, .NET 6 is required, yes; as .NET Core apps are always tied to one version. But it’s still odd that you and debug your own app on Core 8; this works fine in our testing…