Forum member
Remco NCrunch Developer
7611 posts
Posts by Remco
-
Teamcity integration Object reference not set to an instance of an object at nCrunch.Compiler.DotNet
Do you have the build server configured to perform a restore step before running NCrunch? I suspect this package may not exist in the restore paths prior to the NCrunch console tool being invoked. When trying to find the installation of Dotnet, NCrunch will first check the DOTNET_MSBUILD_SDK_RES…
16 Dec 2021 03:12 UTC
-
Teamcity integration Object reference not set to an instance of an object at nCrunch.Compiler.DotNet
Thanks! Can you confirm if you have the dotnet.exe file in your system PATH environment variable?
15 Dec 2021 23:38 UTC
-
VSTest playlist
[quote=GurdipS;15875] This may be for TeamCity (my build server), but how can I fail a build if code coverage is below a metric?[/quote] We don't have any feature inside NCrunch that can fail the build based on code coverage percentages, but the console tool does output a range of reports and XM…
15 Dec 2021 23:32 UTC
-
Teamcity integration Object reference not set to an instance of an object at nCrunch.Compiler.DotNet
Hi, thanks for posting. Can you confirm if you have any version of the .NET Core (or .NET5/6) SDK installed on this machine?
15 Dec 2021 23:28 UTC
-
VSTest playlist
Hi, thanks for posting. Sorry, we don't support vstest playlists. You might want to look at using [url=https://www.ncrunch.net/documentation/concepts_test-categories]test categories[/url] and [url=https://www.ncrunch.net/documentation/concepts_engine-modes]custom engine modes[/url] instead.
14 Dec 2021 23:35 UTC
-
MSTest AssemblyInitialize & TestContext
Hi, thanks for sharing this. There's a bit of history behind why this is the way that it is. The properties in the TestContext here (namely ResultsDirectory, which is the one you're after) get populated by MSTest when it sets up a temporary deployment directory prior to the tests being run. Var…
09 Dec 2021 00:27 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
[quote=Marcello;15865]Hi Remco, The new build fixes the issue! Thanks a lot for your effort.[/quote] Great to hear! Thanks for your patience. We got there in the end :)
07 Dec 2021 23:49 UTC
-
Test Run Life Cycle
Hi Ed, Thanks for sharing this. Your Test_Factory method is invoked by NUnit during a test discovery step that under NCrunch is physically separate from the execution of tests, and in some cases is even run in an entirely different process. It's dangerous to introduce direct dependencies betwee…
07 Dec 2021 23:26 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
[quote=Marcello;15863]Do we need an additional license for v4.12.0.1?[/quote] As far as I can tell, the licenses for your site are still well within their support period, so v4.12 should work fine with your existing licenses.
07 Dec 2021 12:37 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
[quote=Marcello;15861]Can v4.12.0.1 be installed side-by-side with v4.11.0.2? I ask this because when we upgraded from v.4.9 to v.4.11 all the developers here had to upgrade the client in their machine as well.[/quote] Sorry, I had to change the grid protocol to implement this fix, so v4.12 wo…
06 Dec 2021 21:28 UTC
-
Load Failure
[quote=spolonski;15859]Sorry, i can't reproduce it anymore. I have not saved files from the directory C:\Users\f-tfsbuild\AppData\Local\NCrunch\BuildSystem [/quote] Fair enough :) The fix included in this build makes NCrunch more resilient to corruption of this particular directory. I think…
06 Dec 2021 12:14 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
Could you try the build below and let me know if it solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.12.0.1.msi]NCrunch_Console_4.12.0.1.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.12.0.1.zip]NCrunch_Console_4.1…
04 Dec 2021 12:29 UTC
-
Load Failure
Could you try the build below and let me know if it solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.12.0.1.msi]NCrunch_Console_4.12.0.1.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.12.0.1.zip]NCrunch_Console_4.1…
04 Dec 2021 12:29 UTC
-
Load Failure
Thanks for confirming this. I'm wondering if you can check the following for me: - Is there any difference if you specify the version of Visual Studio to be used by the console tool through the /VS parameter? - Which versions of Visual Studio or the MSBuild tools do you have installed on your b…
03 Dec 2021 01:36 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
Great work, I think you've found it. Here is the .nuget.g.targets file as it exists on my machine (prior to being uploaded to the grid node): [code] <?xml version="1.0" encoding="utf-8" standalone="no"?> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> …
02 Dec 2021 23:42 UTC
-
Load Failure
The logs indicated that this setting is overridden for a number of the projects in your solution. I've identified an issue that can cause erroneous behaviour when the setting has different values between projects. Does removing the setting value at project level for all your projects (thus mak…
02 Dec 2021 11:36 UTC
-
Load Failure
Thanks for sending this through. Could you confirm for me if you have the NCrunch 'Build process CPU architecture' setting set to a consistent value for all the projects in your solution, and if not, does setting this to the same thing for all projects resolve the issue?
02 Dec 2021 09:12 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
I've done some experimentation here with a local VM and I'm wondering if you could try a few things for me. The relevant item here is the protobuf-net.csproj.nuget.g.props inside the obj directory in the workspace on the grid node. This file contains the references to the Nuget package root used…
01 Dec 2021 00:36 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
Thanks! This is extremely interesting. The protobuf-net.csproj.nuget.g.props file contains a number of paths that don't appear to have been correctly mapped by NCrunch. It's not clear to me yet why this fails in your environment but not others. I'm going to take a deeper look at this and will ge…
30 Nov 2021 03:56 UTC
-
NCrunch cannot build .NET Standard 2.0 projects
Thanks for showing this. When you perform a /t:Restore in the NCrunch workspace, you are replacing the platform bindings in the workspace with new bindings that are set up for the grid node. This isn't a solution we can implement in NCrunch, as it significantly slows the build system on the nodes …
26 Nov 2021 23:01 UTC