-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error during binding discovery with x86 #61
Comments
I think this is a duplicate of #50. |
It doesn't. Maybe something change during these 6 month? I have been looking at the code, and the as far as I can see the processor architecture is not used to determined the dotnet.exe version: OutProcSpecFlowConnector.cs private string GetDotNetInstallLocation()
{
var programFiles = Environment.GetEnvironmentVariable("ProgramW6432");
if (string.IsNullOrEmpty(programFiles))
programFiles = Environment.GetEnvironmentVariable("ProgramFiles");
return Path.Combine(programFiles, "dotnet");
} Could be changed to this: private string GetDotNetInstallLocation()
{
var programFiles = Environment.GetEnvironmentVariable("ProgramW6432");
if (_configuration.ProcessorArchitecture == ProcessorArchitectureSetting.X86)
programFiles = Environment.GetEnvironmentVariable("ProgramFiles(x86)");
if (string.IsNullOrEmpty(programFiles))
programFiles = Environment.GetEnvironmentVariable("ProgramFiles");
return Path.Combine(programFiles, "dotnet");
} |
@mbendtsen Makes sense. Is this the official way in .NET Core to run dotnet.exe in x86 mode? I mean that you have to run it from the |
@gasparnagy As far as I know, this is the way. We are using Win32 libraries and because of that we have to use x86 for platform and this gives us problem on our build server, where we had to use our own script to use the right dotnet.exe version. It seems like Visual Studio uses MSBuild which then uses dotnet.exe. For some reason this does not cause problems. I have just made a test build of the solution, and the it solves my problem. |
I will make a release tomorrow with this, thx. |
@gasparnagy Not to push, but do you know when you will be making the release? |
@mbendtsen push is good. I have forgotten about it, sorry. I do it now. |
released. :) |
My project is set to x86 and when opening the feature file this error occurs:
If I run the command manuallly with the x86 version of dotnet, it works fine. Is there any way to control which dotnet version is used?
Project file:
The text was updated successfully, but these errors were encountered: