Skip to content

debugging modules with nuget references #727

Answered by mikecasas
markdav-is asked this question in General
Discussion options

You must be logged in to vote

@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 the PropertyGroup section:

    <!--this will force the compiler to copy all of the DLL dependencies from the Nuget package locations to the project /bin-->
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

Then in your debug.cmd in the Package project copy the dlls over to the framework.

REM Copy Dapper to the Bin folder (and any dll dependencies)
XCOPY "..\Server\bin\Debug\netcoreapp3.1\Dapper.dll" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\netcoreapp3.1\" /Y
XCOPY "..\Server\bin\Debug\netcoreapp3.1\Dapper.Contrib.dll" "..\..\oqtane.f…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@markdav-is
Comment options

Answer selected by markdav-is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants