Forum member

MihaMarkic

17 posts

Posts by MihaMarkic

  1. NCrunch fails to build UnitTests project

    In my case this exact problem happened because somehow I didn't have NuGet package source set up on computer (not sure why). Once I've added it again, NCrunch started working fine.

  2. Conditionally referenced project fails to build

    Hey, setting workspace base path does the trick (didn't know what to look for before), thanks! Yet another paper cut from Windows long paths implementation I guess...

  3. Conditionally referenced project fails to build

    It seems that indeed is a path length problem. Argh, Windows and its stupid paths. However in this particular case it seems that the target directory is the problem, because it's appdata local and starts with quite a long path: [code=plain]C:\Users\USERNAME\AppData\Local\NCrunch\42900\1[/code] …

  4. Conditionally referenced project fails to build

    [quote=Remco;17709]NCrunch should be able to handle distant siblings. It does this by nesting the workspace path so that the relative references can still function. However, this will increase the overall path length. Does moving the workspace base path close to your disk root (i.e. something l…

  5. Conditionally referenced project fails to build

    Hi Remco, I've tried removing conditional include and it didn't help. Now, there is another possibility that I can think of - there problematic projects are not under the root directory of the solution, they are more or less distant siblings, i.e. PROBLEMATIC_ROOT |- SRC |- SLNROOT …

  6. Conditionally referenced project fails to build

    So I have this solution [url=https://github.com/MihaMarkic/C64-Assembler-Studio]C64 Assembler Studio[/url] and in C64AssemblerStudio.Engine.csproj I have this ItemGroup: [code=xml]<ItemGroup Condition=" '$(Configuration)' == 'Local Debug' "> <ProjectReference Include="..\..\..\..\retro-dbg-dat…

  7. A project using Fody & PropertyChanged not building

    [quote=Remco;17108]Could you try the build below and let me know if this solves the issue? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_5.3.0.1.msi]NCrunch_Console_5.3.0.1.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_5.3.0.1.zip]NCrunch_Con…

  8. A project using Fody & PropertyChanged not building

    Sure, I did but the result is the same. I also tried to quickly put a simple repro together, but it isn't that easy to create one. However, I have an open source project where this problem manifests - https://github.com/MihaMarkic/modern-vice-pdb-monitor. Open \source\Modern.Vice.PdbMonitor\Modern…

  9. A project using Fody & PropertyChanged not building

    Additional note: When I disable RDI, it works as before.

  10. A project using Fody & PropertyChanged not building

    Hi, This project worked fine with 4.* and it stopped after I've upgraded to 5.1. When I enabled Fody/PropertyChanged on a .net 8 project, NCrunch throws the error below. If I comment out PropertyChanged plugin, NCrunch works. Is this a bug or am I missing a setting? [quote]NCrunch has en…

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

    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.

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

    Hi Remco, It actually has plenty of types and was also building before. The csproj looks like this (below), nothing special except for InternalsVisibleToAttribute (which declares that attribute, but same approach is used in my other projects and it is not new for this project as well). Any idea …

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

    I'm seeing a similar issue, but the exception seems different (peeked into report.zip). Also, only a single (not test) project fails to build. Reinstalling doesn't help. Bug report submitted.

  14. InvalidOperationException with init properties

    Yep, that does the trick.

  15. InvalidOperationException with init properties

    Hi guys, I'm seeing an InvalidProgramException being thrown when assigning a init property to a record or a class. Both test project and testee are .Net 5. [quote] public record ApsProperty { public string Name { get; init; } }[/quote] And code in test project is like this: [quo…

  16. ValueTask confuses NSubstitute

    Yep, this version seems to fix it.

  17. ValueTask confuses NSubstitute

    I'm seeing a problem probably related to NCrunch. See the code below. One needs NUnit and NSubstitute nuget packages. It's a .net 4.6.1 class library. The test passes. Now, add System.Threading.Tasks.Extensions 4.5.1 nuget library and test will start failing. If running outside NCrunch test…