Closed sharky98 closed 1 month ago
<ItemGroup>
<Reference Include="EdgeJs">
<HintPath>..\..\node_modules\edge-js\lib\bootstrap\bin\Release\EdgeJs.dll</HintPath>
</Reference>
</ItemGroup>
Is correct, once you build your project all dlls including EdgeJs.dll are copied to your output folder in case of quick-start it would be in edge-js-quick-start\src\QuickStart.Core\bin\Debug\net7.0
. That is the folder you would include in your published application in case of quick-start.
<ItemGroup>
<PackageReference Include="EdgeJs" Version="20.12.3" />
</ItemGroup>
Is referring to a completely different use case where you are calling Node.js from C#.
Closing due to inactivity.
I see in the quick-start, that the
csproj
file have a reference to the DLL inside thenode_modules
folder. However, in my case I would not have NodeJS inside the same project, so I wouldn't have access to that file. I was expecting to create a project, build and publish it then move the published DLL (with all its referenced DLL) near my NodeJS project and simply create aPackageReference
to the nuget package EdgeJs. However it doesn't work, even in the quick-start.Replacing this
With that
Result in the following error.