Supporting both .Net Core and .Net Framework in one process. #194
-
Good morning, everyone. My question is as follows: I can imagine rebuilding edge-js from source code with settings renaming (like EDGE_CORE_APP_ROOT) and referencing two version of package, but, not sure it is a great idea. If anyone can share thoughts\experience, I'd really appreciate that. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
This is actually not an issue when switching between .NET Core and .NET Framework. You can always set However when switching between .NET Core and .NET Standard it is important to NOT set |
Beta Was this translation helpful? Give feedback.
-
Another important thing to clarify is usage of different .NET flavours in one process as you put it in the title of this discussion. It is not possible to switch between .NET Framework and .NET Core during the process lifetime once Edge.Js is loaded. For example setting This does not mean that process.env.EDGE_USE_CORECLR = 1;
const edge = require('edge-js'); |
Beta Was this translation helpful? Give feedback.
Not sure if I understand your reply correctly, if you use .NET Standard then you don't need to set
EDGE_APP_ROOT
parameter at all.And if you use .NET Core then you can set
EDGE_APP_ROOT
and it will be ignored by .NET Framework and only used by .NET Core.I don't see what benefit you can get from adding extra parameter in Edge.Js.
Here is an explanation of
EDGE_APP_ROOT
usage.EDGE_APP_ROOT
Impact