Forum member

Remco NCrunch Developer

7586 posts

Posts by Remco

  1. System.IndexOutOfRangeException from NCrunch compiler, MSBuild working fine

    [url=http://www.ncrunch.net/download]v2.25 has just been released[/url] including a change that will make the instrumentor ignore any lines that are pointing at invalid/missing lines of code.

  2. What triggers a build?

    [url=http://www.ncrunch.net/download]v2.25 has just been released[/url], including a fix for the 'Files excluded from auto build' setting not working for file system changes.

  3. System.IndexOutOfRangeException from NCrunch compiler, MSBuild working fine

    Hi, thanks for sharing this issue. It looks to me like there is something not quite right with this assembly. The assembly's PDB file is referencing a source line that doesn't seem to exist in your source code. For example, your codebase contains a source file (let's say "MySourceFile.cs") …

  4. Load Project failure: Your project.json doesn't have a runtimes section

    [quote=pbering;9077]That did the trick! Thank you! Where does this setting come from? The .NET Core preview tooling, Nuget extension or? [/quote] It's related to a Nuget build task responsible for doing some tricky things around resolving packages. By turning off the resolution property, the tar…

  5. Load Project failure: Your project.json doesn't have a runtimes section

    Try adding this to the top of your project file (as the first propertygroup): <PropertyGroup> <ResolveNuGetPackages Condition="'$(NCrunch)' == '1'">false</ResolveNuGetPackages> </PropertyGroup>

  6. Load Project failure: Your project.json doesn't have a runtimes section

    [quote=pbering;9073]It does not seem to have any effect. Even when I exclude both json files from the project, ncrunch still fails. When I remove both json filen (and the lock files) and reloads solution then it works. Added the json files (without including in project) works until dotnet restore. I…

  7. Load Project failure: Your project.json doesn't have a runtimes section

    Try using an MSBuild expression to exclude the json files from the project for NCrunch builds, for example: <ItemGroup Condition="'$(NCrunch)' != '1'"> <None Include="ClassLibrary4.project.json" /> <None Include="project.json" /> </ItemGroup> With this in place, the files won't …

  8. Missing test coverage dots across projects when referencing build output

    Hi, Thanks for sharing this issue. The problem you're experiencing is caused directly by including the bin\output dir in your additional files to include. By doing this, you are effectively including referenced assemblies from the foreground solution, which will not only suppress any capture …

  9. Load Project failure: Your project.json doesn't have a runtimes section

    My first thought was that this error was originating from NCrunch's own DNX integration, as last year there were some builds of NCrunch that specifically looked for project.json and tried to interact with the DNX runtime to load them. This integration was disabled/removed after the DNX runtime chan…

  10. Load Project failure: Your project.json doesn't have a runtimes section

    Thanks for sharing this issue. Can you confirm which version of NCrunch you're running? This looks suspiciously similar to a problem that was fixed late last year.

  11. NCrunch tries to process unloaded projects

    Thanks! I've now reproduced this issue. I will see what I can do to fix it. Meanwhile, to work around this, I'd suggest reloading the project in VS with NCrunch disabled. You can then find the project in the configuration window and set the 'Ignore this project completely' setting to True, then …

  12. NCrunch Build error

    Hi Sheryl, You are correct in your understanding that this is a regression in v2.24. v2.24 introduced a change in the handling of how resource files are copied into project output directories. A fix for this is now pending in the next release of NCrunch, but we need to get you working. Unfor…

  13. NCrunch Build error

    Hi, thanks for sharing this issue. It looks like this project has two or more resource/content files that are marked to be copied into the build output directory, and they are set to copy to the same place. NCrunch isn't handling this right, and it's exploding. It should be possible to narrow…

  14. NCrunch tries to process unloaded projects

    [quote=powerdude;9054] It would be better if NCrunch ignored unloaded projects. It seems the configuration manager does and the projects aren't loaded there and the setting can't be selected.[/quote] Hi, yes, I do agree. The current approach is limited by the way in which the VS integration is…

  15. Some tests stay on status 'Running (First time run)'

    [quote=isb-ik;9052]It seems to be a problem with the NUnit Version. First I have tried NUnit 3.2.1 but the problem was the same. Then I changed back to NUnit 2.6.3 and then all works fine.[/quote] NCrunch uses a completely different adapter for NUnit v2, so this suggests it's something NUnit v3/N…

  16. Some tests stay on status 'Running (First time run)'

    Hi, thanks for sharing this issue. Is there a pattern as to which tests are hanging? Is it possible to examine the test behaviour by running them with the debugger (under NCrunch)? My gut feel is that these tests may have some state or sequence related assumptions causing them to hang (see [url…

  17. v2.24 not coping referenced assemblies

    [quote=samlan;9048]We have the same issue with 2.24. The test project references another project which has an XML file contained in a folder, with "Build Action" set to "Content" and "Copy to Output Directory" set to "Copy always". The XML file does not get copied. Everything worked fine in the prev…

  18. Exit Code 2 issue when connecting to grid nodes

    There isn't really a need to adjust the MaxTestRunnerProcessesToPool - the default here is probably OK. If you set this to more than 1, the engine may use slightly more memory when executing and the performance may be a bit better if you have multiple test projects in your solution. Setting it to …

  19. v2.24 not coping referenced assemblies

    [quote=MikeWard;9043]I haven't dug deep into just yet but it appears to be referenced assemblies from referenced projects. I can't share the project with the issue but I think I can put something together to demonstrate the issue. [/quote] Thanks for offering to do that. I have a fairly extensiv…

  20. Exit Code 2 issue when connecting to grid nodes

    I've been having a bit of a think about this issue ... I think it highlights a hole in the processing behaviour in the console tool. If the console tool is fully dependent on grid nodes for its processing, and there is a connection problem that results in these nodes being disconnected, the tool …