Forum member

rlawley

11 posts

Posts by rlawley

  1. Build fails due to a Typescript Error

    Came across this post while looking to disable typescript build from ncrunch. With the link on conditions from here plus a page from somewhere else, here's the simple way: [code=xml]<PropertyGroup> <TypeScriptCompileBlocked Condition="'$(NCrunch)' == '1'">true</TypeScriptCompileBlocked> </Pr…

  2. Pausing ncrunch from External Build

    I'm aware that ncrunch pauses execution if the instance of VS it's running inside starts a build task, but I was wondering whether there was any way to force it to pause from an external build? I have a system which uses a number of related solutions, all of which build to a common location to be r…

  3. ncrunch chooses incorrect target with multi-targetted project reference

    This looks like it's fixed the issue - both my proof of concept and production projects which were failing before pass with the new build. Thanks!

  4. ncrunch chooses incorrect target with multi-targetted project reference

    I've noticed that when using net5 test projects which reference multi-targeted libraries (net472 & netstandard2.1), ncrunch chooses the incorrect version to make available. For me, this has led to type load exceptions as it tries to execute net framework code which doesn't work in net5, even though…

  5. Certain Tests Won't Run (Collection was modified from GetAccessedFiles)

    Ok, thanks. Is there any way to disable this globally, rather than in each solution's settings?

  6. Certain Tests Won't Run (Collection was modified from GetAccessedFiles)

    Thanks for replying. Turning off the option did appear to fix the problem - I turned it back on and the problem reappeared. I'm not aware of my tests having any background code, and this certainly isn't something which has changed recently if any do. Is this a feature recently added to ncru…

  7. Certain Tests Won't Run (Collection was modified from GetAccessedFiles)

    In a few of my solutions, I'm getting some tests which refuse to re-run. Once they go to failed, they will not re-run again. This presents itself as: [list] [*]Test List shows "Is Out of date" = True [*]Test List shows Status = "Running (Failed last time)" [*]Activity indicator in status bar…

  8. Build fails with VS2015 Analyzers

    I can confirm that adding the files in this way does allow the build to function. However, as this is one of the new features added in VS2015, I think it'll be something people come up against fairly regularly, so it would be good to have as an enhancement in a future version.

  9. Build fails with VS2015 Analyzers

    One of the new features of VS2015, Live Code Analysers, prevents ncrunch from being able to build a project. Simple test case: [list=1][*]File > New > Class Library (I used .NET Framework 4.6) [*]Enable ncrunch (build succeeds) [*]Install-Package Microsoft.AnalyzerPowerPack [/list] Build…

  10. Go to next build failure with no open windows

    The "Go To Next..." features do not work if no editor windows are open. Instead, you get an error "Attempting to get the view from an adapter in state Closed". It would be nicer if this condition was handled so the shortcut keys would work even if no editor windows were currently open. Tested…

  11. Problems with automapper?

    I use AutoMapper throughout my projects, and ncrunch doesn't have a problem with it. I'm not sure what your AutoMapperConfig method is, but I define all my mappings in Profile objects, and just call Mapper.AddProfile<RelevantProfile>() in the TestInitialize or Setup method of a test fixture. I…