Forum member

alastairs

55 posts

Posts by alastairs

  1. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    *facepalm* The one thing I didn't even think about! Good detective work, thanks Remco :-)

  2. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Ok, thanks Remco. I tried doing the step-by-step conversion this morning, and the repro project just kept working :) All of the test projects are targeting netcoreapp1.1. Looking at the simpler of the two real-world solutions, I see that the Web project is indeed present in the workspace directory f…

  3. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Ok, I've done a comparison of the real-world solution's deps file from Visual Studio vs. the one in the NCrunch workspace, and have found the following things of interest: * The VS-generated deps file contains a dependency listing for the project itself (i.e., WebAPIClient.Tests), whereas the NCr…

  4. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    The repro project is continuing to work properly :D :facepalm: Would the deps files from our solutions be enough, or do you need the solutions themselves?

  5. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Ok, thanks Remco. What's odd is, having tried it in another real-world solution that has exactly the same structure as the repro project I supplied (plus the missing reference from test project to web API project), the tests there still fail too. Again, I've tried turning on "copy referenced assembl…

  6. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    In the real-world solution, we have the following project reference structure: [list][*]WebAPI.sln [list][*]Shared Libraries (Solution Folder) [*]WebAPI [list][*]Shared Libraries[/list][*] WebAPIClient [*] WebAPI.Tests [list][*]WebAPI[/list][*]WebAPIClient.Tests [list][*]WebAPI [*]WebAPICl…

  7. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Here's a git repo you can clone that contains the sample detailed in my original post: https://github.com/alastairs/ncrunchbugrepro. There's probably something in the project that I missed in my description :)

  8. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Sure thing. It was too large for the forum, so [url=https://gist.github.com/alastairs/1b7ffd94421aa8009c83042b79f7a8ad#file-ncrunchbugrepro-test-deps-json]here's a gist[/url]. I've included the NCrunch deps too, just in case.

  9. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Yes, I get the new warning, which is how I knew to try the "Copy referenced assemblies" setting: [quote]The Microsoft.AspNetCore.TestHost package contains code that extracts dependency data from the .deps files of user projects in its environment. NCrunch is unable to safely provide this dependenc…

  10. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Hi Remco, sadly the fix doesn't seem to work for me; TestHost returns the same 404s as before. I tried turning on "Copy referenced assemblies" for all the projects involved in these tests (one ASP.NET Web API, one client Class Library, two test projects), with no luck. The same goes for the repro pr…

  11. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Thank you so much, Remco. Looking forward to taking this for a spin today!

  12. NCrunch 3.7 causes VS 2017 to crash if you edit a .NET Core csproj file

    [quote=b33rdy;10444]Excellent, thanks Remco! I can confirm this build fixes the issue. [/quote] +1 :)

  13. Multiple markers when renaming class with ReSharper

    [quote=Remco;10440]What do you have configured for your visual settings? Are you using line numbering or outlining? Do you have anything else added to your left margin? Are you running any other 3rd party plugins that introduce changes to the VS UI?[/quote] I have line numbering and Code Lens …

  14. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    Hi Remco No worries, I had a suspicion it would be a tricky one. I can tag these tests to be ignored in NCrunch for now - we have some work to do anyway to separate unit from integration and acceptance - and that will be an acceptable workaround until a fix is available. Something I'm not cle…

  15. Tests utilising Microsoft.AspNet.TestHost fail in NCrunch

    I have a test project that integration tests an ASP.NET MVC Core API service using the [url=https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/]Microsoft.AspNetCore.TestHost package[/url]. The tests fail when run in NCrunch: every HTTP request issued by a client is responded to with a 404 …

  16. System.Xml.ReaderWriter not found when running ASP.NET Core projects in NCrunch

    I think I've found it - another project in the solution is explicitly referencing System.Xml.ReaderWriter at a lower version than the one expected by the ASP.NET Core project above. Thanks for being my rubber duck :)

  17. System.Xml.ReaderWriter not found when running ASP.NET Core projects in NCrunch

    Ok, thanks Remco. I'll see if I can spot any obvious differences in the project files and I'll try to put together a reproduction.

  18. System.Xml.ReaderWriter not found when running ASP.NET Core projects in NCrunch

    I'll try to create a reproduction, but I've only seen this behaviour with this one project of many that we have... Would providing the .deps file be useful? The thing that puzzles me most is why the same behaviour isn't present in other test runners.

  19. Multiple markers when renaming class with ReSharper

    Yes, it's reproducible consistently :)

  20. System.Xml.ReaderWriter not found when running ASP.NET Core projects in NCrunch

    I'm using Visual Studio 2017 Professional, NCrunch 3.7.0.7. When I run my ASP.NET Core project in other test runners (e.g. ReSharper's, Visual Studio's), the tests run successfully. In NCrunch, however, the test run fails with the following exception: [code] System.IO.FileNotFoundException: Coul…