sxxov/windows-ss

.NET core isnt installed even though it is

itzTheMeow opened this issue · 3 comments

I ran set COREHOST_TRACE=1 as well
Error:

Load edge native library from: \node_modules\windows-ss\dist\native\win32\x64\16.6.0\edge_coreclr
CoreClrEmbedding::Initialize - Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1

node:internal/process/esm_loader:74    internalBinding('errors').triggerUncaughtException(
                              ^    
Error: This is not a published, standalone application and we are unable to locate the .NET Core SDK.  Please make sure that it is installed; see http://microsoft.com/net/core for more details.
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)    at Module.require (node:internal/modules/cjs/loader:1005:19)      
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (\node_modules\windows-ss\dist\index.js:105:10)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)     
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)

the edge_coreclr is there:
image
.net 5 and 6 are both installed:
image

that's with this package version: 1.0.1-xx

sxxov commented

edge-js (which this package depends on) seems to be expecting .NET <5. Could you try installing .NET 4.5 & letting me know if it works? If yes, I'll add that to the documentation, or see what I can fix.

installed using this link, had to uninstall 5 and 6 to get it to install
this is what is installed:
image

also attempted to install it with buildtools, closest version was 4.7
image
doesnt show up in programs list though
same error
image

sxxov commented

@itzTheMeow

apologies for the confusion & late reply, this should fix the issue:

  1. run the following in a terminal
dotnet --info
  1. ensure under ".NET runtimes installed:", that a version of Microsoft.AspNetCore.App is installed (eg. Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App])
  2. if there isn't a version of .NET Core (not .NET Framework) installed, you may download the runtime here (at the time of writing, it is under ".NET Core 3.1")

do let me know if this resolves the issue (: