Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch & Claude Code on WSL
9swampy
#1 Posted : Saturday, October 18, 2025 10:19:27 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/8/2016(UTC)
Posts: 14
Location: United Kingdom

Is there a best practices guide on combining Visual Studio 2022 & NCrunch with Claude Code running in WSL.

Is this a supported setup?

File change detection seems to be problematic and Nugets keep "disappearing" - requires a manual "reset and reload this component" sometimes several times just to get a build.
Remco
#2 Posted : Saturday, October 18, 2025 11:01:29 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,578

Thanks: 1036 times
Was thanked: 1396 time(s) in 1294 post(s)
9swampy;18417 wrote:
Is there a best practices guide on combining Visual Studio 2022 & NCrunch with Claude Code running in WSL.


Sorry, it's hard for me to give advice on this as I'm not familiar with this particular toolset.

9swampy;18417 wrote:

Is this a supported setup?


Not specifically, but this doesn't necessarily mean that it can't be made to work. No code exists in NCrunch to integrate with this toolset, but personally I wouldn't expect AI based toolsets to clash with NCrunch unless they are doing something odd.

9swampy;18417 wrote:

File change detection seems to be problematic and Nugets keep "disappearing" - requires a manual "reset and reload this component" sometimes several times just to get a build.


Synchronisation with the project.assets.json file (and its derivatives) has always been slightly unreliable in NCrunch because of the way that VS refreshes them asynchronously after projects have loaded. There is a lot of logic to try and identify situations where this file changes and force the reload, but there still seems to be inconsistent edge cases in VS where the tracking needs a kick to reload itself. Normally this isn't a problem because projects.assets.json rarely changes during a session.

If you're seeing this, it means that something on your system is triggering constant project restore steps to be run. That's not something you want, as it causes a lot of stuff to move around which can cause intermittent downstream issues. It may be worth examining why this keeps happening to see if there's something you can do to prevent it from happening. I can't imagine your list of installed packages needs to change every few seconds.
Der-Albert.com
#3 Posted : Thursday, July 23, 2026 3:23:33 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 260

Thanks: 17 times
Was thanked: 61 time(s) in 57 post(s)
Just to chime in...

In the current world of coding agents and more capable models, the trend to sandbox the AI agents is getting more uptick. It is possible in today's world to put everything in a virtual machine, Docker container, or in WSL2. On Windows, WSL2 and Docker may be the most used variants. And that an AI does more things than expected and the agent harness cannot 100% contain it is a risk.

Rider, for example, supports WSL 2: https://www.jetbrains.co...ment-a.html#run_in_wsl, I have no knowledge about VS (I know you can run and debug code inside a container, but I don't know if you can develop within - it's possible with VSCode, I think).

The problem in this case is that NCrunch currently runs only under Windows. So the IDE cannot work inside because NCrunch and the IDE need access to the source code. So it would be possible to mount the code in the container, but then the file system performance would be terrible. For the IDE and the agent working inside the container, it would be the best scenario. But this would leave NCrunch out.

But then I thought a little further. What if NCrunch combines some features it already has with some glue.

We know that NCrunch has a Grid Node Server. It can run the test independently on a different machine. The code and the server part of the IDE could live in the container. And on the Client/Host (inside the IDE), NCrunch acts like a "local" grid node, and on the Container, it is just running a small NCrunch Files service that just transports the files from the Container to the host (or other Grid Nodes, with the IDE NCrunch as a proxy if needed).

With that, I would say it would be possible to lock the container with minimal rights in the container. Work inside the container via remote development, and NCrunch could still run the test on the Windows host. And NCrunch could still work as I type and run the tests as fast as possible. Of course I think working inside a container is not for every type of application, but that is an application and not an NCrunch problem.

As we are moving increasingly to AI-assisted coding, I would love to see such a possibility. And I think compliance and security will require AI development inside containers in the near future, if a company does not do this already. And that would also rule out the usage of NCrunch when there is no possibility.

And yes, this is still work to implement this, but I think the scope would be way less than a complete Linux version of NCrunch which can run inside of containers.
Remco
#4 Posted : Friday, July 24, 2026 12:39:30 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,578

Thanks: 1036 times
Was thanked: 1396 time(s) in 1294 post(s)
Der-Albert.com;18864 wrote:

The problem in this case is that NCrunch currently runs only under Windows. So the IDE cannot work inside because NCrunch and the IDE need access to the source code. So it would be possible to mount the code in the container, but then the file system performance would be terrible. For the IDE and the agent working inside the container, it would be the best scenario. But this would leave NCrunch out.


Yes, the Windows-only limitation is starting to get much more painful now. AI seems to be naturally gravitating towards linux based setups.

As I've discussed much throughout this forum, Linux support is not in scope for NCrunch right now. It would theoretically be a massive piece of work, since the product was never designed with it in mind. There's a couple of things that give me some hope here though:
1. An AI-only version of NCrunch wouldn't need a GUI. Porting the GUI to Linux is the hardest part.
2. Agents are getting really good at handling these sorts of problems. I don't think we're quite there yet, but this may eventually be something I can task to an agent and have it perform two years worth of work autonomously.

So I'm hopeful. On my personal list of things I want from NCrunch, Linux support is at the top of the list. I make no promises right now.

Der-Albert.com;18864 wrote:

We know that NCrunch has a Grid Node Server. It can run the test independently on a different machine. The code and the server part of the IDE could live in the container. And on the Client/Host (inside the IDE), NCrunch acts like a "local" grid node, and on the Container, it is just running a small NCrunch Files service that just transports the files from the Container to the host (or other Grid Nodes, with the IDE NCrunch as a proxy if needed).

With that, I would say it would be possible to lock the container with minimal rights in the container. Work inside the container via remote development, and NCrunch could still run the test on the Windows host. And NCrunch could still work as I type and run the tests as fast as possible. Of course I think working inside a container is not for every type of application, but that is an application and not an NCrunch problem.


I'm not sure if I completely understand the boundaries of this, but if we have an NCrunch grid node running on a Windows machine, doesn't that mean that the containerised agent has the ability to execute code outside the container? And wouldn't that be a security risk?

Without a Linux-capable grid node or MCP server, we don't have a way to let an agent run tests inside a Linux based container. The setup I'm using personally involves a Linux VM hosting the agent, which has broad access to a Windows based VM running the NCrunch MCP server with grid node. Access controls are then placed around the VMs using an external firewall. This seems to work well, though I honestly have no idea if such a setup would be allowed inside a larger organisation with more constraints.

Der-Albert.com;18864 wrote:

As we are moving increasingly to AI-assisted coding, I would love to see such a possibility. And I think compliance and security will require AI development inside containers in the near future, if a company does not do this already. And that would also rule out the usage of NCrunch when there is no possibility.


I think it's reasonable to expect that there will be security and compliance standards establishing how agents should be controlled. I have to admit though that with the pace the technology is moving right now, the standards may simply be playing catch-up. There is probably more disruption coming. Some possibilities:
- What if model architectures develop the ability to cheaply train in real time? (i.e evolving intelligence)
- What if the massive push to build AI chips results in oversupply and prices crash? It might become economical for organisations to host their own models outside the datacentre
- What if the intelligence of models reaches a point where we cannot reasonably contain them, or they become more trustworthy than the people tasked to do so?

Whether any of these are actually realistic is probably a matter of opinion at this stage, but there is a lot that could change the way that trust boundaries are established around AI. Building an MCP server for NCrunch was clearly a sensible choice, because people wanted it immediately and they wanted it badly. Building things based on speculation about the technology or the standards around it is harder to justify.

Probably the safest choice would be to just add Linux support. It's just hard, so it's not done yet :)
1 user thanked Remco for this useful post.
davetorutek on 7/24/2026(UTC)
Der-Albert.com
#5 Posted : Friday, July 24, 2026 8:39:45 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 260

Thanks: 17 times
Was thanked: 61 time(s) in 57 post(s)
For the boundaries. My Assumption was that a Grid Node Runner on Linux would also be hard (I think you told that in a different thread). So I proposed in my mind a simpler solution, but it seems i missed the mark.

In that Scenario

* Agent in the Container
* Rider (the remote part) in the Container
* The "real" Rider UI is running on the host machine.
* Real NCrunch on the Host machine
* In the Container is just the NCrunch service which pushes the files to the NCrunch to the Host, or pulled from the Host.
* NCrunch on the Host acts like a Grid Node. An runs the tests on the host.
* If a Grid Node Server is available then the NCrunch on the Host can pass the files to the Server.

Also in that assumption that the host is more powerful than the Container/VM. So the host would be a more natural fit for running the tests.

An AI only NCrunch, which then can run in the Container or on the Host (then just as a Grid Node Server) may also be an option.
Remco
#6 Posted : Friday, July 24, 2026 10:43:17 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,578

Thanks: 1036 times
Was thanked: 1396 time(s) in 1294 post(s)
I'm unfamiliar with the architecture you've described (with part of Rider on the host, and part in the container). Is the containerised part of it just the AI? Or is part of the Rider backend in there too? Right now we integrate with both the Rider frontend and backend, and IPC between them and the NCrunch engine. It's all rather involved, but I expect that if we put a split between those processes, stuff gets ... hard.

Something I have learned on this project is that it's generally better not to do things halfway. When people pay for a license, they expect a degree of polish and reliability. Sometimes a bit of duct-tape can be understandable, but this kind of data piping might be hard to justify.

I appreciate your effort in trying to find a solution though :)
Der-Albert.com
#7 Posted : Friday, July 24, 2026 11:57:54 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 260

Thanks: 17 times
Was thanked: 61 time(s) in 57 post(s)
Yes, in the container there will be a Rider backend installed. To which you can connect with normal Rider Installation (or JetBrains Gateway). Has nothing to do with AI, just remote development. Over an ssh connection. Look at the Start Page on the left side from Rider, where you can select a project.

I never used it, but maybe now it will come in handy with AI in containers.

https://www.jetbrains.com/help/rider/Remote.html

If you need the backend, then I have a different simple ;) 4-step plan for you. Which could be implemented and released at each step.

1) Linux compatible backend and runner for remote development and in AI containers (my described scenario)
2) Linux Based Grid Node Server
3) UI Replacement with Avalonia, Avalonia XPF or Uno
4) macOS/Linux Version within Rider

Addendum to 1), with the Linux backend, I could surely decide if I would also let the tests run in the container, or connect the container to the on the host installed Grid Node Server for more power. ;)
1 user thanked Der-Albert.com for this useful post.
Remco on 7/24/2026(UTC)
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.080 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download