nunit-console: Cannot create non-optimized builds of nunit.engine(.*)

13 views
Skip to first unread message

x7...@posteo.de

unread,
Oct 25, 2020, 12:22:17 AM10/25/20
to NUnit Developer List
Hello developers,

I am working on issue #789 of nunit-console.

To better understand the existing code I wanted to trace the control flow within the DirectoryFinder with a debugger. I wanted to use existing and new test cases as a base for this.
But somehow I can't manage to create a non-optimized build of nunit.engine and nunit.engine.api/core. So the debugger is not as helpful as I had hoped.
It doesn't matter if I build nunit by script or with Visual Studio (2019 Community). In my desperation I have already disabled the optimization for all configurations of both projects in the project files, but without success.
When I start a test via the VS test-explorer, I also see that exactly the assemblies I created before are loaded. There are no nunit assemblies in the GAC and no publisher policies.

Even though I can work without a debugger or outsource the code-to-fix to a separate project during development, I don't find either ideal.

So the questions for you experienced nunit developers are:
Do you have a setup that allows you to debug the engine?
Do you have an idea what I am doing wrong?
I checked building.md, the developer pages and the mailing list but I could not find any hints.

I'm using Windows 10 (32 Bit) with Visual Studio Community 2019 and have SDKs for .NET Framework 3.5 and Core 3.1 installed.

Thanks for your help,
    Till

Charlie Poole

unread,
Oct 25, 2020, 12:31:54 AM10/25/20
to nunit-developer
If you are running using the NUnit adapter, then you are using the copies of the engine distributed with the adapter, which are release builds. With a recent adapter version, you are using either the 3.10 or 3.11 engine.

--
You received this message because you are subscribed to the Google Groups "NUnit Developer List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nunit-developer/56938b6b-c1df-433f-b2f1-5ef1b97c87dan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages