Forum member

ghelyar

15 posts

Posts by ghelyar

  1. Are Runtime Identifiers supported?

    When the nuget package contains a native dll in /runtimes/{RID}/native/foo.dll and the top level application or unit test project is built with that RID either by specifying in the csproj <RuntimeIdentifier>{RID}</RuntimeIdentifier> or on the command line with dotnet build -r {RID} (I think msbuild …

  2. Are Runtime Identifiers supported?

    "Copy Referenced Assemblies To Workspace" seems to do the trick, but has obvious disadvantages. Is there a better way? Being able to test multiple RIDs is very similar to being able to test multiple target frameworks, but if it isn't already supported then that would be a feature request.

  3. Are Runtime Identifiers supported?

    I have a nuget package that has some native .dlls and a .net p/invoke wrapper for them. It uses runtime identifiers to deploy the correct native .dll e.g. in the .nupkg it has /runtimes/win-x64/native/foo_native.dll as well as others for other RIDs. When adding this package to a project, addin…

  4. Empty TestOutput files

    Is there a way to prevent creation of test output files that are empty? e.g. a 0kb file called "_0abEPvK2tjZfjSxYurqeVlH9MAk_2.txt" We run our ncrunch tests on a build machine and having tens of thousands of these empty files is slowing us down. We could delete them after ncrunch completes but…

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

    Thanks. 3.9.0.1 works for me. I was able to remove the CopyReferencedAssembliesToWorkspace setting, CopyReferencedAssembliesToWorkspaceIsOn warning and AspNetTestHostCompatibility warning with the setup I described above (asp.net core (.net framework)) and all tests ran and passed successfully with …

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

    [quote=Remco;10490]Since you have the 'Copy referenced assemblies to workspace' setting turned on, it shouldn't make any difference in your case ..[/quote] I have only turned it on because of the new behaviour/warning introduced in ncrunch 3.8. I did what it told me to do, and when it still gave me…

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

    [quote=Remco;10487]@ghelyar: Sorry, just to confirm your situation, are you using the Microsoft.AspNetCore.TestHost package under classic .NET and not .NET Core?[/quote] Yes, the project template in Visual Studio 2017 is "ASP.NET Core Web Application (.NET Framework)" and the unit test project is…

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

    This was working fine for me on ncrunch 3.6 with an asp.net core (.net framework) project and a .net framework class library unit test project running nunit. Since upgrading to 3.8 it still works but I get the "The Microsoft.AspNetCore.TestHost package contains code that extracts dependency data …

  9. NCrunch 3 ignores CPU architecture config and overwrites it

    Thanks, I'll give it a go. Today is my last day until the new year but I'll let you know if it happens today. With the solution zip I provided I could get it to happen even after opening a completely new VS 2015 instance at the solution i.e. 1) unzip 2) open .sln in VS 2015 3) check if the ncr…

  10. NCrunch 3 ignores CPU architecture config and overwrites it

    Thanks, I've sent the solution zip through the contact form.

  11. NCrunch 3 ignores CPU architecture config and overwrites it

    I have submitted the bug report from the single project solution as per your instructions.

  12. NCrunch 3 ignores CPU architecture config and overwrites it

    I've just reproduced it losing the configuration on a blank solution with 1 project (with v2 files in the same directory, not sure if that was necessary) With a single NUnit 3.5 test: Assert.That(Environment.Is64BitProcess); The unit test passed (presumably auto detected as x64), but when I…

  13. NCrunch 3 ignores CPU architecture config and overwrites it

    I forgot to mention, this happens on at least 3.1.0.1 and 3.2.0.3 [quote=Remco;9599]- What is your 'Engine hosting strategy' global configuration setting set to? I.e. is NCrunch hosted in the IDE or in a Satellite Process?[/quote] The General Settings -> Engine hosting strategy is x64Satellit…

  14. NCrunch 3 ignores CPU architecture config and overwrites it

    [quote=Remco;9588]- Does NCrunch give you any errors in the Tests Window about your settings failing to load?[/quote] No. The errors I get are things like BadImageFormatException when it tries to load a 64 bit dll into a 32 bit process. [quote=Remco;9588]- Are you using the simplified configurat…

  15. NCrunch 3 ignores CPU architecture config and overwrites it

    I have a few legacy projects which use native x64 dlls, which means they need to be executed as x64. I have this in my .v3.ncrunchproject and have it checked into source control (TFS) but when I load the solution, the configuration UI shows "AutoDetect" and the local file gets silently overridden…