Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet-test-xunit 1.0.0-rc2-build10015 has a 32 bit binary in the runtimes/net451/win7-x64 directory #843

Closed
pranavkm opened this issue May 16, 2016 · 19 comments
Labels
Milestone

Comments

@pranavkm
Copy link

@pranavkm pranavkm commented May 16, 2016

Running corflags:

C:\Program Files (x86)\Microsoft Visual Studio 14.0>corflags ".nuget\packages\dotnet-test-xunit\1.0.0-rc2-build10015\runtimes\win7-x64\lib\net451\dotnet-test-xunit.exe"
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.6.1055.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Version   : v4.0.30319
CLR Header: 2.5
PE        : PE32
CorFlags  : 0x20003
ILONLY    : 1
32BITREQ  : 0
32BITPREF : 1
Signed    : 0

Using a 64 bit dotnet to run tests results in the following failure:

xUnit.net .NET CLI test runner (32-bit win81-x86)
System.DllNotFoundException: Unable to load DLL 'Microsoft.DiaSymReader.Native.x86.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
@muratg
Copy link

@muratg muratg commented May 16, 2016

👀

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 17, 2016

I just hit this as well, trying to run xunit tests (using the bits detailed at https://xunit.github.io/docs/getting-started-dotnet-core.html), targeting net452 on a Win 10 x64 machine

xUnit.net .NET CLI test runner (32-bit win10-x86)
System.DllNotFoundException: Unable to load DLL 'Microsoft.DiaSymReader.Native.x86.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

@pranavkm
Copy link
Author

@pranavkm pranavkm commented May 17, 2016

@bradwilson
Copy link
Member

@bradwilson bradwilson commented May 17, 2016

You can pull an RC 3 build from MyGet if this is blocking you. https://myget.org/gallery/xunit

@bradwilson bradwilson added this to the next milestone May 17, 2016
@bradwilson bradwilson closed this May 17, 2016
@miyu
Copy link

@miyu miyu commented May 18, 2016

Hmm now getting

System.DllNotFoundException: Unable to load DLL 'Microsoft.DiaSymReader.Native.amd64.dll':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Framework: net451, dependencies:
"xunit": "2.2.0-beta2-build3279",
"dotnet-test-xunit": "1.0.0-rc3-build10019"

I'm on .NET Command Line Tools (1.0.0-preview1-002702)

@Kurira
Copy link

@Kurira Kurira commented May 18, 2016

Did any one even managed to run dotnet test yet?
Seems like a real blocker now, because neither 1.0.0-rc2-build10015 nor 1.0.0-rc3-build10019 works.
Is there a different way to run tests?

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 18, 2016

I can confirm that I have now, successfully, executed tests for both netcoreapp1.0 andnet452 using

  • dotnet-test-xunit 1.0.0-rc3-build10019
  • xunit 2.1.0
  • SDK 1.0.0-preview1-002702
  • Dotnet CLI 1.0.0-preview1-002702

On a Windows 10 x64 machine

@pranavkm
Copy link
Author

@pranavkm pranavkm commented May 18, 2016

@ItzWarty on a net451 application you have to include "Microsoft.NETCore.Platforms": "1.0.1-rc2-24027" as a dependency.

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 19, 2016

@pranavkm I think it's better to say that if you target full-framework then you need Microsoft.NETCore.Platforms, but when you target core you get it as a transient dependency from Microsoft.NETCore.App

@bragma
Copy link

@bragma bragma commented May 19, 2016

@pranavkm thanks a lot your suggestion solved my problem with xunit and an asp net core project targetting net461! Where did you get that info? I'm totally confused by the new "framework" section of project.json and the new dependency requirements.

@pranavkm
Copy link
Author

@pranavkm pranavkm commented May 20, 2016

@bragma, Microsoft.NETCore.Platforms tells nuget \ dotnet restore how to bring in native dependencies. The package should've added this dependency so a user wouldn't have to do this.

@kcd83
Copy link

@kcd83 kcd83 commented May 20, 2016

I can confirm updating to dotnet-test-xunit rc3 fixed this for me. I have a dnx project I migrated to rc2.

"dependencies": {
    "MyProject": "1.0.0-*",
    "Moq": "4.2.1510.2205",
    "xunit": "2.1.0",
    "dotnet-test-xunit": "1.0.0-rc3-*"
  },
  "frameworks": {
    "dnx451": {
      "imports": [
        "netcoreapp1.5"
      ]
    }
@macgyver76
Copy link

@macgyver76 macgyver76 commented May 20, 2016

Is there any way to run this on Windows 7 x64 and full .Net Framework net461? Or how to manage to download rc3 version of dotnet-test-xunit?

Nuget (in project.json) shows me:
image

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 20, 2016

@macgyver76 the rc3-verison is not on NuGet, it is only published on the XUnit MyGet feed atm, so add that to your NuGet.config

https://www.myget.org/F/xunit/api/v3/index.json

@macgyver76
Copy link

@macgyver76 macgyver76 commented May 20, 2016

@thecodejunkie Thank you for this hint. If I'm running by dotnet test it's working fine hovewer it's not possible to discover tests in VS. Here's building output:

------ Discover test started ------
Discovering tests in 'Path_To_Project\project.json' ["C:\Program Files\dotnet\dotnet.exe" test "Path_To_Project\project.json" --output "Path_To_Project\bin\Debug\net461\win7-x64" --port 9048 --parentProcessId 6792 --no-build]
'test-xunit' returned '1'.
========== Discover test finished: 0 found (0:00:00,9770977) ==========

Any ideas?

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 20, 2016

I don't think package integrated with the VS test runner (or other runners like ReSharper och TestDriven.NET) yet. I've been using the cmd for single projects, and a small powershell script for solutions with multiple test projects

@macgyver76
Copy link

@macgyver76 macgyver76 commented May 20, 2016

It's working when I add dependency to net461 like:

"net461": {
      "dependencies": {
        "Microsoft.NETCore.Platforms": "1.0.1-rc2-24027"
      }
    }
@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 20, 2016

Yeah I just noticed that it works with the VS runner now

@thecodejunkie
Copy link

@thecodejunkie thecodejunkie commented May 20, 2016

@bvanskiver that's an unrelated problem and should probably be raised in its own issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants
You can’t perform that action at this time.