debugging modules with nuget references #727
-
I've created a module with a server nuget reference to RepoDB. To deploy it to the framework, so I've included the file in the nuget package. To debug it, I feel I should copy the required files to the framework folder via debug.cmd I get stuck at this point because there are no referenced DLLs in my module. How can I debug a module with a nuget package dependancy without adding a reference to the framework? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
the work-around I'm using at the moment is adding those packages to the framework |
Beta Was this translation helpful? Give feedback.
-
@nohorse I'm using Dapper in one of my external modules, which is a similar ORM. Try adding the below to your
Then in your
The "trick" is that you may have to copy some of the dependent dlls over too. Some of them may not be initially obvious. |
Beta Was this translation helpful? Give feedback.
@nohorse I'm using Dapper in one of my external modules, which is a similar ORM. Try adding the below to your
Server.csproj
file in thePropertyGroup
section:Then in your
debug.cmd
in the Package project copy the dlls over to the framework.