Skip to content

Debug .NET DllExport

Denis Kuzmin [ GitHub/3F ] edited this page Jun 12, 2020 · 1 revision

How to Debug .NET DllExport

Wizard through MSBuild, for example:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

Arguments:

"net.r_eg.DllExport.Wizard.targets" /p:wRootPath="<...>" 
/p:wSlnFile="<SolutionFile_for_debugging>.sln" /p:wAction="Configure" 
/p:wPkgPath=packages/DllExport<version>

Working directory:

<path_to>\packages\DllExport<version>\tools

DllExport.MSBuild, for example:

C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe

Arguments:

"<path_to_SolutionFile_for_debugging>.sln" /t:Build /p:Configuration=<Configuration>

use additional Diagnostic key to msbuild if you need more details:

"<SolutionFile>.sln" /verbosity:Diagnostic /t:Rebuild /p:Configuration=<Configuration>

Now you can debug at runtime.

Clone this wiki locally