Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. Unit Testing Source Generators

    Hi, thanks for sharing this problem. In NCrunch v4.9, we introduced support for compile-time source generators. One of the main issues we needed to overcome was related to NCrunch's instrumentation. When the source generator runs at compile time, it executes the source generation code inside an…

  2. Tests with Category Not Showing Up in Tests Window

    [quote=CoolBreeze;15568] Oops, sorry to leave off the test framework info. Here it is: Visual Studio 2019 4.9.08 (I just upgraded last week). I tried both versions of the attribute: <Category("EntityFramework") <NUnit.Framework.Category("EntityFramework")> Neither version work…

  3. Large solution - Visual Studio 2019

    Hi, thanks for sharing this. Would you mind submitting a bug report after you've had this happen to you? Something must be failing under the hood here.

  4. Tests with Category Not Showing Up in Tests Window

    Hi Ed, Thanks for posting. Can you clarify which test framework you're using? Do you see the same result if you use NCrunch.Framework.CategoryAttribute instead?

  5. Apphost.exe was not found

    I've done a bit more experimentation around this issue. Right now it looks to me like the AppHost.exe error appears when attempting to build using the preview version of .NET6. Because MSBuild always rolls forwards into the preview versions under NCrunch (as described in the thread above), this me…

  6. Apphost.exe was not found

    [quote=MarcChu;15560]I'm having this same problem. However, I'm having it in VS2022 preview (it seems that others are having it in VS2019), and I'm not having the problem locally. Rather, I'm having the problem on 2 out of 3 of my distributed nodes (the other one builds just fine). When I first ran …

  7. "unable to resolve dependency data for NCrunch internal assemblies"

    Hi, thanks for posting. This problem is caused when something blocks MSBuild from restoring packages on your machine. This could be due to a firewall or virus scanner, or maybe something in your security settings. The good news is that it's fairly easy to work around it. Usually the error co…

  8. Apphost.exe was not found

    [quote=bhugot;15553]Ok thanks last option is fine for me. Did you see or posted an issue to microsoft on this?[/quote] No. I think it's extremely unlikely that they don't know about the issue. You are welcome to report it to them if you can find the time.

  9. Apphost.exe was not found

    Thanks to your help, I've managed to reproduce this issue. Even after I had it consistently happening for me, it took a while to figure out what was actually going on. I'm not terribly impressed with how MS have implemented this under the hood. Basically, the root problem appears to be due to a…

  10. Apphost.exe was not found

    Thanks for sharing this issue. Are you able to provide a self contained code sample that can reproduce this issue? Or otherwise guidance on which VS project template can cause it?

  11. IXunitSerializable and serializable

    Perhaps the issue here was with the wording of my response. When I suggest a solution to a problem, I often try to avoid making a determined statement that it will solve the problem (even when it works on my side), since often people will come back and accuse me of being wrong. I'm learned not to …

  12. The target "_SplitProjectReferencesByFileExistence" does not exist in the project.

    [quote=DavidPartington;15544] Uninstalled NCrunch. Rebooted. Reinstalled NCrunch and it's WORKING :) I really have no idea what was broken, or exactly what fixed it, but uninstalling both VS and NCrunch and re-installing them both has fixed it. [/quote] AWESOME!! [quote=DavidPartington;…

  13. IXunitSerializable and serializable

    [quote=Dirk Maegh;15535] It does not explain though why NCrunch sees only one test case ?[/quote] This would be due to the inability to tell one instance of the user type apart from another. Does overriding .ToString() and the equality/hashing methods resolve this?

  14. The target "_SplitProjectReferencesByFileExistence" does not exist in the project.

    There are some subtle differences in how VS handles the build of projects vs how they are handled by MSBuild. This includes everything from different property values injected into the build to environmental differences in the process doing the work. NCrunch's build system is more closely aligned…

  15. Project failing to build - stuck in 'First time build' status

    [quote=MihaMarkic;15537]Hm, not sure what or when it happened, but the project is building again and tests are running. Before that I've tried to isolate the problematic project, but it worked in a new solution. Basically it's fine now and I can't reproduce it anymore. Hopefully it won't reappear.[…

  16. The target "_SplitProjectReferencesByFileExistence" does not exist in the project.

    Thanks for sending through the bug report. I can't see a clear reason for this error. The project looks fine. I think the Windows update may have broken something in the underlying toolset. Can you try the following? 1. Find your version of MSBuild.exe that ships with VS (usually something …

  17. IXunitSerializable and serializable

    Hi, thanks for sharing this issue. This problem is related to the overall architecture of the continuous runner. For NCrunch to do things the way it does, it needs to have two different domains - one to discover the tests, and one to run the tests. This is different from serial test runners tha…

  18. VS 2022 Preview + FSharp = Boom

    Congrats on finding our first VS2022 explosion!! :) Can you confirm that the project builds correctly under VS2022? (Sorry, I know this is probably implied, but the nature of this error looks very toolset-y). Edit: Something else to check would be whether changing your [url=https://www.ncrunch…

  19. The target "_SplitProjectReferencesByFileExistence" does not exist in the project.

    Hi, thanks for sharing this issue. This error is a catch-all thrown up by MSBuild when it can't resolve the base system targets from the project file. Can you confirm if this project file builds normally using MSBuild via the command line? ... And could you submit an NCrunch bug report afte…

  20. Project failing to build - stuck in 'First time build' status

    Is there any chance you can build a code sample that can reproduce the issue which you can share with me? Something is unusual about the structure of the DLL being built here. I wonder if that AssemblyAttribute might have something to do with it.