Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    Could you try the build below to see if this solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.4.msi]NCrunch_Console_4.7.0.4.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.4.zip]NCrunch_Console_4.7.0.4.zip[/…

  2. NCrunch.Framework license?

    Hi, thanks for posting. The NCrunch.Framework binary should still be Apache-2.0. Nuget changed the system between those versions and it looks like the EULA got cut out somehow. I'll make a task to investigate. You can assure your legal team that from an EULA standpoint there has been no change…

  3. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    This may be an instrumentation problem. If you turn on the 'Instrument Output Assembly' setting and set the 'Instrumentation Strategy' setting to 'Legacy', does this also resolve the problem consistently? I get suspicious when I hear about something that works when only text based changes are ma…

  4. NCrunch was unable to retrieve a meaningful result from this test due to an unexpected error...

    Hi, thanks for sharing this issue. Can you try the following and let me know if you see any difference here? - Try placing the SuppressMessage attribute declaration inside an '#if !NCRUNCH' block. Does this allow NCrunch and the code cleanup to both work? - Can you try turning off the 'Instrum…

  5. .NET 5 unit test projects not building

    [quote=Argamon;15288] So it has definitly something to do with the environment. Still no real clue why this happens every few days and only with .NET Core projects, never with Framework projects[/quote] Since a recent VS update, we've noticed that the IDE doesn't always seem to behave correctl…

  6. .NET 5 unit test projects not building

    Hi, thanks for sharing this problem. It looks like NCrunch is unable to resolve the path of your ProgramFiles directory. Can you check if you have the ProgramFiles, ProgramFiles(x86) and ProgramW6432 environment variables set on your machine? These should point to the x86, x86 and x64 program…

  7. Locate test in Ncrunch Tests window

    Hi Simon, Try the 'Pin covering test to Tests Window' option. You can do this from a shortcut key or by right-clicking the coverage marker. The selection of the current test needed to be rolled into this feature because without it there was no guarantee the test could actually be shown in the…

  8. Migrating to .NET 5 - An item with the same key has already been added

    [quote=jpgrassi;15281] Edit: Sorry for the nagging, but you have an idea if this fix is making to the next release? And if so, do you have maybe an estimate? Or if this build you sent is considered "prod ready" we would also be fine using it while the official release comes.[/quote] Yes, it will…

  9. Migrating to .NET 5 - An item with the same key has already been added

    I've taken a deep look through the bug report you submitted. The problem does indeed seem to be triggered by the multi-targeting. Could you try the build below to see if it resolves the issue? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.7.0.3.msi]NCrunch_Console_4.7.…

  10. HotChocolate repo - Stictching solution - NCrunch keeps busy

    Hi, thanks for sharing this issue. This solution is failing to load under NCrunch because it dynamically specifies the TargetFrameworks property for the projects involved using Directory.build.props files and using custom build properties. We currently do not support working with such a setup un…

  11. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15269] If they're not there, NCrunch will download them, and then fail because it says it couldn't download them.[/quote] Do you have the option of pre-copying the packages and leaving them there? At the moment, the only reason I can think of why they wouldn't be there would b…

  12. Migrating to .NET 5 - An item with the same key has already been added

    Hi, thanks for sharing this problem. It looks like you have two projects in your solution with the same compiled assembly name (or very similar, with '_' and '.' being interchangeable). This causes clashing inside NCrunch's handling for the AspNetMvcTestHost system. I would expect such a setup …

  13. Build fails due to a Typescript Error

    Hi, thanks for sharing this issue. Broadly, you have two options here. You can either disable typescript compilation by [url=https://www.ncrunch.net/documentation/troubleshooting_ncrunch-specific-overrides]adding a condition to your project file[/url], or you can make sure it has the dependencie…

  14. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15263] The packages are downloaded to C:\Users\sa-buildsvr\.nuget\packages[/quote] Can you confirm whether the correct versions of the required packages are stored in this directory? If not, does copying the packages in there (i.e. from another machine) resolve the issue?

  15. NCrunch Console Tool Requiring Unneeded Packages

    [quote=pbassett;15259] NCrunch is doing an msbuild restore (not a dotnet restore) on project generated by NCrunch. That project is found in C:\Users\[username]\AppData\Local\NCrunch\[TempDir]\PackageRestore\restorePackages.csproj [/quote] Correct. Sorry, I remembered that wrong. [quote=pba…

  16. Where to get a list of all Console Tool Settings

    [quote=pbassett;15260]I don't actually use the NCrunch client -- I'm a build engineer, and I only deal with the NCrunch console tool in our pipeline. Is there any way to get a list of the available settings without having to install the NCrunch client?[/quote] Sorry. There is a list of all the …

  17. Where to get a list of all Console Tool Settings

    Hi, thanks for posting. This is the same list of settings as provided in the NCrunch configuration window, though they are specified using their IDs rather than the full names. To get the ID of any particular configuration setting, just set the setting in your NCrunch client, then have a look at…

  18. NCrunch Console Tool Requiring Unneeded Packages

    Hi, thanks for sharing this issue. When NCrunch runs, there are two kinds of packages that are needed on the machine: 1. The packages referenced by your projects and the runtime packages needed to execute the code in your projects 2. The packages required by NCrunch for it to work internally …

  19. Test project not recognized as tests

    [quote=Regenhardt;15247]I tried it using the standard Test Explorer and it didn't run the tests either, marked them as ignored. Not sure how to get logs there, but I assume it's the same problem, so probably not an NCrunch problem. Although there is now a definite gap in both test tools: No feedback…

  20. GitVersion.MSBuild error

    [quote=Tim Long;15243] Correction: on further investigation it's because it can't find the Git repository. I guess I could have NCrunch include the .git directory but what would be even better if to be able to prevent the task from running, like it used to be with GitVersion.Task. [/quote] From…