Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
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.
08 Aug 2016 05:06 UTC
-
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.
08 Aug 2016 05:04 UTC
-
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") …
02 Aug 2016 20:37 UTC
-
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…
01 Aug 2016 11:42 UTC
-
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>
01 Aug 2016 11:08 UTC
-
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…
01 Aug 2016 10:42 UTC
-
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 …
01 Aug 2016 09:10 UTC
-
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 …
01 Aug 2016 08:53 UTC
-
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…
01 Aug 2016 08:44 UTC
-
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.
01 Aug 2016 08:31 UTC
-
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 …
30 Jul 2016 05:00 UTC
-
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…
29 Jul 2016 06:09 UTC
-
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…
28 Jul 2016 23:22 UTC
-
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…
27 Jul 2016 21:29 UTC
-
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…
27 Jul 2016 13:27 UTC
-
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…
26 Jul 2016 23:40 UTC
-
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…
25 Jul 2016 23:55 UTC
-
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 …
25 Jul 2016 10:52 UTC
-
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…
23 Jul 2016 23:28 UTC
-
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 …
22 Jul 2016 23:43 UTC