Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. System.IO.IOException on GridNode

    Hi Alex, Thanks for taking the time to report this problem. This is a known issue that was introduced in the v4.10 release. It affects systems that have preview versions of the Dotnet SDK installed alongside the gridnode. It is caused by a fix that was introduced to help resolve client-side pr…

  2. Installer for VS2019 tries to write to D drive and stops

    Hi, thanks for sharing this issue. The MSI for NCrunch uses a VS API to try and find the installation of VS. In the past, we've found this API is not 100% reliable, and we implemented a number of fallbacks ... which unfortunately are also not 100% reliable. My best guess here is that you prob…

  3. WPF project build error - Could not copy xxx.csproj.nuget.dgspec.json

    Hi, thanks for sharing this problem. I've managed to reproduce it using the standard WPF application template bundled with VS2022. It looks like this file needs to be included in the NCrunch workspace. You are correct that adding the file to the 'Additional files to include' setting in NCrunch …

  4. VS 2022 "The msbuild command returned exit code 1" error

    Hi, thanks for sharing this issue. For NCrunch to be able to execute tests on your system, its own code has dependencies on certain Nuget packages. Because we don't include these packages in the installer, they need to be restored using an MSBuild step when NCrunch goes to set up its environme…

  5. Re-run specific tests

    Internally, NCrunch uses System.Text.RegularExpressions.Regex.IsMatch to match the regex to the physical name of the test. There is a tricky catch here. The test name for the regex's match doesn't use the tests 'Display name' that is shown in the Tests Window. Instead, it uses the name for the …

  6. MsTestv2 - TestMethod with DataRow - Empty Array - Causes compiler errors in NCrunch

    Hi, thanks for sharing this problem. I've reproduced it exactly as described. The problem is in NCrunch's MSTest static analyser. It can't handle the Enum types. I'm going to take a closer look at this to see what kind of support can be provided. As the static analyser doesn't work the same a…

  7. nCrunchTemp_* directories in weird place, and not being cleaned up

    [quote=rwv37;15713] (2) However, if I put it back in and explicitly set it to [h]false[/h], it does [i]not[/i] happen.[/quote] Nice work :) In this case, we can try the following: <PropertyGroup Condition="'$(NCrunch)' != '1'"> <GenerateDocumentationFile>true</GenerateDocumentationFile> …

  8. nCrunchTemp_* directories in weird place, and not being cleaned up

    Thanks for these details. Could you try making the 'GenerateDocumentationFile' property conditional inside its own PropertyGroup to see if this solves the problem? Example below: <PropertyGroup Condition="'$(NCrunch)' != '1'"> <GenerateDocumentationFile>true</GenerateDocumentationFile> </Pr…

  9. Apphost.exe was not found

    I've eventually caved on this and implemented a workaround in NCrunch to get us around this problem. Essentially, NCrunch will now try to detect a scenario when the IDE is operating in non-preview mode while a preview SDK is installed on the system. When this happens, NCrunch will set the DOTNET…

  10. VS 2022 Preview 5 error - SDK Resolver Failure NugetSdkResolver

    This should now be resolved in NCrunch v4.10 [url=https://www.ncrunch.net/download](just released)[/url]

  11. TeamCity build waits for unneeded NCrunch node build

    The change included in the above build identifies a situation where a grid node does not need to execute build steps because all the executable tests have been run - it won't have any impact on node synchronisation. However, occasional long sync steps can happen if the entire snapshot needs to be t…

  12. VS 2022 Preview 5 error - SDK Resolver Failure NugetSdkResolver

    Hi, thanks for sharing this. In summary, MS broke the API call we were using to load the project files with the new VS2022 release. It doesn't seem they use the API internally, so we're probably alone with this one. I'll update you when the fix is available in the form of a new NCrunch build.

  13. nCrunchTemp_* directories in weird place, and not being cleaned up

    Hi, thanks for sharing this issue. When NCrunch loads the project, it creates a renamed clone of the project with some minor modifications. My expectation here is that you're using a package or toolset that is taking the name of the project and using this to generate files when at least part o…

  14. Directory.Build.props and ReferenceProject entries

    [quote=b33rdy;15693]Ahh, well. Thanks for checking! It's a shame, because it's a pattern that works really well on large projects (made up of many solutions, using the Directory.Build.props via a git submodule).[/quote] Sorry :( I understand the appeal. We've been wanting to do something simi…

  15. Directory.Build.props and ReferenceProject entries

    Hi, thanks for sharing this. Unfortunately, we cannot support a use case where project references are defined in included imports (such as directory.build.props). This is because NCrunch's manipulation and workspacing only targets project files, and it's assumed that any project references will …

  16. TeamCity build waits for unneeded NCrunch node build

    Would you be interested in trying the build below to see if it behaves better for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.5.msi]NCrunch_Console_4.10.0.5.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.5.zip]NCrunch_Cons…

  17. TeamCity build waits for unneeded NCrunch node build

    Hi, thanks for sharing this. Other than configuring your build system to only use selective servers for each build (i.e. micro-managing your grid resources), I can't think of a way to solve this with NCrunch in its current state. Ideally, we'd want the console tool to terminate the run once al…

  18. Hotspot bars are all zero length

    [quote=jmwnoble;15685]I have a related issue. Running NCrunch against a .Net Core 5 solution, the performance metrics seem way off. An integration test that I watch taking 3 mins to run, has a hotspot on the parent method of 800ms when it should reflect the 3 mins it is actually taking. If I pu…

  19. Crash when opening config on VS2022 Preview 4.1

    We've conducted some in-depth testing around known scenarios here involving differences in VS install state and have been unable to reproduce this issue. The following issue reports are extremely interesting: [url=https://github.com/dotnet/wpf/issues/4181]https://github.com/dotnet/wpf/issues/418…

  20. Crash when opening config on VS2022 Preview 4.1

    [quote=rgwood;15678]Thanks for the quick reply. Same result after deleting .user files and restarting VS.[/quote] Thanks, we're trying to reproduce this. Can you confirm if any of the other NCrunch tool windows work for you? (i.e. Tests Window, Processing Queue, etc).