Skip to content

Running app (with Hastlayer) using dotnet run fails with a dependency exception #109

Answered by sarahelsaig
OlegKarasik asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is not IDE-specific, I can reproduce it in command line as well:

It's related to the current working directory, because Hastlayer expects it to be the executable's location. It's expected for eagerly loading the Hast.*.dll files, but also other build related lookups like the HardwareFramework directory that contains the VHDL framework (Hast_IP). This is not an issue in Visual Studio or Rider because the default working directory is already where the executable is created. I'm not sure why VS code doesn't work like that out of the box.
I will push some improvements to make the build more robust soon, but in the meantime you can fix it by adding /Debug/net7.0 to the cwd propert…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Piedone
Comment options

@OlegKarasik
Comment options

@Piedone
Comment options

@sarahelsaig
Comment options

Answer selected by OlegKarasik
@Piedone
Comment options

@OlegKarasik
Comment options

@Piedone
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants