Forum member

Remco NCrunch Developer

7611 posts

Posts by Remco

  1. Issue with building some projects from solution.

    Hi, In this case, it looks like the declarations for your configuration and platform have been moved to the bottom of the file, so they are executing too late in MSBuild's evaluation order. Move the bottom-most PropertyGroup to the top of the file and the issue should be resolved.

  2. ncrunch 3.12.0.15

    Hi, The onedrive links you've provided above don't seem to work for me (not sure why?). NCrunch has had problems with Windows Smartscreen in the past because of the reputation system used by Smartscreen. Basically, the logic used by the scanner is that if there is a downloadable that hasn't bee…

  3. Select current file in NCrunch metrics?

    I guess this is the same sort of thing we have already in the Tests Window (i.e. pin test and show it), but it's for the Metrics Window instead :) There is nothing right now that can do this. Would you like to [dead link]?

  4. Running Build and Post-Build Steps against the original solution [SOLVED]

    [quote=Brondahl;11578] Or doing you mean that the references need to be defined on the csproj - as if it were referencing a library or directly calling another projects public classes? [/quote] If there's already a ProjectReference (MSBuild XML tag) pointing at the dependencies from the Tests p…

  5. Package error

    [quote=kentcb;11575]I installed manually and it's working for now. Still, would be good to know why this was required.[/quote] As far as I know, it's a bug in VS. When NCrunch installs, it makes a change to the C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensio…

  6. Package error

    Hi, This is a VS install state issue. For some reason, VS hasn't refreshed it's extension cache after the MSI was run. To fix this, run 'devenv.exe /setup' as an administrator and wait for this to finish processing in the background.

  7. Running Build and Post-Build Steps against the original solution [SOLVED]

    Hi, thanks for posting. By having the post build steps copying these DLLs into your resource location, you've effectively introduced an implicit dependency from DLLReader.Tests to your TestCaseExamples. This is not a dealbreaker and it can be handled, it just needs a bit more plumbing. You'll…

  8. .NET Core 2.x fails on DotNetCliToolReference with * as Version number

    Hi, thanks for sharing this problem. Yes, this makes sense. The DotNetCliToolReferences aren't represented in project.assets.json, so NCrunch has to do special parallel logic to identify this dependency. I wasn't aware that the '*' option existed, so naturally NCrunch can't handle it. I'll s…

  9. How can we test the new C# 8.0/Experimental features?

    Hi, NCrunch sits atop the build system, so it will use whatever MSBuild does. The version of MSBuild used by NCrunch is that same as the one installed in the instance of Visual Studio you're using (i.e. C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin). This mea…

  10. Recomendations for working with local db/sqlserver

    The best approach I've found here is by using transactions to isolate activities in the database, making sure you roll back a transaction at the end of your test run, and never commit. In this way, your database is always left in a known state. Some ORMs use a pattern of storing the transaction …

  11. ncrunch 3.12.0.15

    It will run in the background. Wait until it's finished before you try to re-run VS.

  12. ncrunch 3.12.0.15

    Sorry, make sure you run it as an administrator.

  13. ncrunch 3.12.0.15

    VS has an internal cache of extensions that are installed. This cache includes a range of important information about extensions, such as their primary DLL, menu options, etc. If something didn't go right during installation, it's possible that the cache is out of date. This may be why it's loo…

  14. Core 2.0 test project not able to read deps

    If this is the same as the known problem, there will be a limited number of Nuget references affected by this. The root of the issue is that NCrunch still supports .NET Core 1.1, so all of its .NET Core libraries are compiled to this version of the framework. Because the referencing system is di…

  15. ncrunch 3.12.0.15

    Sorry, thanks for confirming this. Could you check if you're able to open the nCrunch.VSIntegration2017.dll using any other tool on your machine? (i.e. even notepad). This error suggests that something is blocking access to this file or one of its dependencies. Are you running a virus scanner or …

  16. Core 2.0 test project not able to read deps

    NCrunch is reliant on Visual Studio restoring Nuget packages for it. In the early stages of integration with .NET Core, NCrunch tried to do this itself, but it only caused chaos. If you're seeing this consistently after resetting the engine, check to make sure you have a Nuget dependency on Syst…

  17. ncrunch 3.12.0.15

    Did you install this manually from ZIP previously? This looks like a blocked file issue. Try the [url=http://www.ncrunch.net/documentation/V3/troubleshooting_installation-and-setup-problems]removal and reinstall fix[/url]. If installing manually, make sure you follow the [url=http://www.ncrunch…

  18. Console/Command window flashing

    Hi, There are two possibilities here: 1. You have a build task that is creating a console window when NCrunch builds your projects 2. You have test code that either directly or indirectly causes the creation of a console window To tell between these two, try running NCrunch in the 'Run all…

  19. Ignored tests and .v3.ncrunchproject-files

    Hi, thanks for posting! There are two ways of using NCrunch's ignored tests feature, and nothing in between: 1. You use it to temporarily ignore tests for yourself that you don't want to focus on running. In this case, make sure you have the 'Share tests ignored by NCrunch' setting set to 'Fa…

  20. Test using Owin TestServer fails

    Try the build below and see how you go. We've had some on and off issues with TestHost over the last few months, and I'm aware of at least one problem existing in the v3.11 release that we've managed to fix: [url=http://downloads.ncrunch.net/NCrunch_Console_3.12.0.14.msi]http://downloads.ncrunch…