Build/Test Issues

Aspire 17

Started by acm23 on 10 views

Aspire 17 has changed the way the AppHost stitches together applications. Now it uses relative path references instead of the previous system. The great news is that stand-alone projects (e.g. domain projects) can have their tests run under NCrunch.

Tests that use DistributedApplicationTestingBuilder however, will fail with a project not found error, thanks to the relative paths being incorrect when in NCrunch's build environment. I know that these tests will probably not be the tests you want to run under NCrunch, but I was wondering if there is a work-around for the relative paths. I was thinking of either fixing the paths, or even NCrunch copying referenced projects into the same workspace. Or maybe there is some other smart solution?
Hi, thanks for posting.

The last time I had a deep dive on Aspire, we were a very long way away from being able to make it work in NCrunch. It is a very complex environment that isn't engineered with NCrunch's constraints in mind, and I think it's unlikely that a change in path management is likely to change that.

I haven't tried Aspire 17, but I have no confidence in integrating it without a lot of code changes being necessary. Even if many of the paths are translating favourably now, this was far from the only constraint I encountered in my attempts to have this system work under NCrunch (it was actually the only constraint I had a proven solution for).

Aspire launches its own testing environment, with its own dependency management system. To have NCrunch's features work, I'd need to find a way to inject them into that environment. It's not impossible, but it's difficult to do reliably and very hard to keep stable, because even the smallest change to the toolset would break us.

Sorry, it continues to be a platform that NCrunch can't support.

Post a reply

Log in to reply.