I have a Xamarin-project that build an iOS and an Android app. The core project today is PCL and it builds just fine on Bitrise.
When I change the core project to a .NET Standard project (2.0) it compiles and runs locally on both Visual Studio on WIndows and Visual Studio on Mac. But building with Bitrise fails.
Visual Studio for Mac Installer appears to install dot net core 2.0 component automatically when you do a clean install today but as far as I can see dot net core is missing in the VM - and that breaks the build.
If you get the xamarin-archive step to build your solution using the workaround you run into the next issue. The NUnit test runner fails because it is using an outdated version of nunit3-console.exe that does not support dotnet standard projects. I think nunit3-console.exe also a part that is installed into osx-vs4mac-stable VM and you should refresh it to use the latest version.
Workaraound
To verify that this is the case I added a script step and downloaded and run “dotnet-install.sh --channel 2.0”. Just to be safe I also throw in a “dotnet restore” but that should not be needed when running core 2.
(The existing step to install dotnet core that you can find through the workflow editor is broken and should be removed since it is not maintained)
@fredrikhaglund we checked your log and it seems that NuGet simply does not generate the test results, or at least not at the path where it’s expected.
Just one more note: you can see the full command performed by the NUnit step in the step’s log, $ "/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild" ...
Could you please attach your solution file (Ticket.Client.sln)? It seems like the NUnit tests are not selected by the configuration (Beta) and platform (Any).
I am having the exact same problem. I have a .NET Core 2.0 unit test project and a .NET Standard class library, and I also get the “Test run failed, error: No project to build found” error.
Not sure if this is related, but I picked up an issue with Xamarin Studio 7.4.4 which you can read about here:
It seems that there is a bug in the beta version of XS. I switched back to stable channel and they started running locally on XS and VS, but now I can’t get it to run on bitrise.
PS My build stack on bitrise is set to the stable channel.
It has two simple solutions with a .NET Core unit test project. I’ve tried to get bitrise to run the tests with the nunit runner step but the same problem persists.
What’s the issue/error? The “Test run failed, error: No project to build found” one?
In which step/command you get this?
Can you please share the link of the related bitrise.io build?
Hello I have the same issue, 1 year later and I cannot find any solution, do you guys have a fix for this? Can you run Nunit step with .netstandard projects?