Forum member

CodeAdze

29 posts

Posts by CodeAdze

  1. System.Windows.Application Not Populated Under NCrunch

    Inside a class library of a WPF app I am using the [h]FindRecourse()[/h] method of [h]System.Windows.Application.Current[/h] class. The code compiles and runs fine but NCrunch is reporting a NullReferenceException on this line. It would appear that System.Windows.Application isn't populated under Nc…

  2. NCrunch Builds and 'Hangs'

    Hi Remco, I think I might have found what the problem is, it appears that it could be the ransomware protection inside my antivirus software which is weird as these two have been happily playing on the same box for ages now. I have turned the ransomware protection off and NCrunch appears to be bac…

  3. NCrunch Builds and 'Hangs'

    Hi Remco, thanks for getting back to me, the answers to your questions are below: I only really work with one solution but testing NCrunch on some stuff I had the problem appears to be just with this one solution. I built this solution from the begining with NCrunch and it's been working fine …

  4. NCrunch Builds and 'Hangs'

    Hi, I'm having a problem with NCrunch. After opening my Solution NCrunch initializes ok but the first time you make a change and NCrunch has to do a build it stops responding. I noticed that: [list][*]NCrunch shows that it builds forever (the build icon with it's orbitor never goes from the status…

  5. System.InvalidOperationException. The thread must be STA

    Hi Ralf, Thanks for your help with this, yes I was using NUnit 3 which I forgot to mention in my post and your suggestion to change <STAThread> to <Apartment(ApartmentState.STA)> worked perfectly. Thanks again!

  6. System.InvalidOperationException. The thread must be STA

    Hi, I have the following test fixture.[code=vb] Imports System.Windows.Controls Imports NUnit.Framework <TestFixture> Public Class SearchResultPaserTests <Test> <STAThread> Public Sub ParseMethodReturnsComboBoxItem() Dim srp As New SearchResultPaser Assert.AreEqual(GetT…

  7. NCrunch cannot compile projects with spaces in its name

    Hi Remco, I just installed version 2.9 and it has sorted this problem. Thanks for your help with this.

  8. NCrunch cannot compile projects with spaces in its name

    Hi Remco, No I didn't change the name of the output assemblies. To rename the projects and the files in them I just used the Rename context menu item from inside VS solution explorer.

  9. NCrunch cannot compile projects with spaces in its name

    Hi Remco, I think I am facing the same issue as Ralf but Ralf's renaming solution didn't work for me. My VS solution has 6 projects in it most of which have spaces in there names and in the names of the files they contain but NCrunch is only complaining about one of the projects. I did what Ralf su…