C# submission with multiple .cs files

I’m doing the SprialMatrix problem and my tests pass locally. However, I’ve added 3 new classes in separate .cs files and this causes the tests to fail when submitted to exercism because they are not included in the compilation at exercism.

The only thing I can do to fix this I suppose is to put all the classes into the same SpiralMatrix.cs file but I’d rather keep them as separate distinct files.

Is there any other way to fix this?

Have you submitted all files to the exercise (aside from the tests file and the README)?

But having a comment stating how you would separate them is just as good, in my opinion.

Anything not listed in the .files.solution array in ./.exercism/config.json has to be listed separately for exercism submit, and if you do that you need to include every file to submit:

exercism submit SpiralMatrix.cs Class1.cs Class2.cs

Hi, yes I added the new files to config.json and re-submitted but it still didn’t work. I eventually just added the classes in those new files to the SpiralMatrix.cs and that did the trick.

Thanks everyone for your help.

I’m glad you found a workaround. Perhaps a C# expert can help out…

Thank you for expanding on that. Specifically the executing line.

@ChristopherPope Would you mind opening an issue at GitHub - exercism/csharp-test-runner: An experimental test runner for Exercism's C# Track?