Open elliz opened 1 year ago
I got the same error. What helped in my case (when starting the project in Visual Studio) was to set the Working directory to the the same as <OutputPath>
. Without that, the process looked for ijwhost.dll everywhere in %PATH%
, except for the actual folder, where the main .exe was.
I find that this helps:
<PropertyGroup>
<usual>stuff</usual>
<UseIJWHost>true</UseIJWHost> <!-- this right here! -->
</PropertyGroup>
We have SharpProj working in unit test and console .net6 projects using Microsoft.NET.Sdk
When we try to run it in an api using Microsoft.NET.Sdk.Web then we get the following error (even though the dll is found in the same place in bin as the console app.
looking at the output pane in VS can see this:
Copying the appropriate dll using post build scripts does not work either, or forcing ijwhost.dll.