You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
.NET Framework 4.6.1 - ML.NET package does't show up in references, thus can't use its assembly references. #366
I created a console App to use Microsoft.ML. I tried to install ML.NET package - the package manager successfully installed it but it never shows up in references.
I am not able to use ML.NET libraries, as even after successfully installing it the using statements gives me red lines to show missing assembly reference error.
I installed(both links) as suggested. I can now see packages in References but still cant use it in code. Also, System.ValueTuple shows exclamation mark weirdly.
My apologies, @SharPiy, I had been busy doing other things and finally got back to looking into this.
Can you try manually editing the .csproj and add the line <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades> in the first <PropertyGroup>? I was forced to do this in order to workaround dotnet/sdk#1539.
Also, can you trying building the project, and listing any errors that occur? That may also give some idea as to what is going wrong.
When the code builds it says that everything is good and no reference errors. As soon as you run dotnet run then the references are underlined and the below error occurs.
I am not sure if this is a bug with visual studios or ML.NET. Any assistance would be helpful.
Microsoft Visual Studio Community 2017
Version 15.7.5
VisualStudio.15.Release/15.7.5+27703.2042
Microsoft .NET Framework
Version 4.7.03056
@carldupreez111 can you show your .csproj file? Also, make sure you target x64. You can’t use AnyCPU.
One last thing: when you say ‘dotnet run’ you mean from the command line? What happens if you just hit F5 in VS?
If you are using the command line, can you show the output of ‘dotnet -- info’
Activity
jwood803 commentedon Jun 18, 2018
This may be similar to #357?
eerhardt commentedon Jun 18, 2018
What version of Visual Studio are you using? Can you paste the information from the Help -> About dialog using the
Copy Infobutton on the right?SharPiy commentedon Jun 18, 2018
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02558
Installed Version: Professional
Visual C# 2015 00322-40000-00000-AA122
Microsoft Visual C# 2015
eerhardt commentedon Jun 18, 2018
Since you are using VS 2015, and Microsoft.ML is a
netstandard2.0package, you need to be sure to install:Does that help resolve the problem?
SharPiy commentedon Jun 18, 2018
Does updating VS to 2017 would fix this?
eerhardt commentedon Jun 18, 2018
Yes, it works with the VS 2017 out of the box.
But you can use VS 2015 with the above 2 extensions installed (they shouldn't take more than 5-10 minutes to install - they are pretty small).
SharPiy commentedon Jun 18, 2018
I installed(both links) as suggested. I can now see packages in References but still cant use it in code. Also, System.ValueTuple shows exclamation mark weirdly.


eerhardt commentedon Jun 18, 2018
Did you re-install the package after you installed the extensions?
SharPiy commentedon Jun 18, 2018
Yes. I did.
eerhardt commentedon Jun 19, 2018
Hmm, I'm not quite sure what is happening. Can you zip up your project (without the
binandobjfolders) and attach it to this issue?SharPiy commentedon Jun 19, 2018
MachineLearningProj.zip
Please find attached
eerhardt commentedon Jul 6, 2018
My apologies, @SharPiy, I had been busy doing other things and finally got back to looking into this.
Can you try manually editing the .csproj and add the line
<ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>in the first<PropertyGroup>? I was forced to do this in order to workaround dotnet/sdk#1539.Also, can you trying building the project, and listing any errors that occur? That may also give some idea as to what is going wrong.
carldupreez111 commentedon Aug 13, 2018
Hi.
I have the same or similar issue and I am using ML.NET 0.4.0. I'll explain what is happening in full below.
I am trying to do the tutorial on the following page - https://www.microsoft.com/net/learn/machine-learning-and-ai/get-started-with-ml-dotnet-tutorial.
When the code builds it says that everything is good and no reference errors. As soon as you run dotnet run then the references are underlined and the below error occurs.
I am not sure if this is a bug with visual studios or ML.NET. Any assistance would be helpful.
Microsoft Visual Studio Community 2017
Version 15.7.5
VisualStudio.15.Release/15.7.5+27703.2042
Microsoft .NET Framework
Version 4.7.03056
Thanks.
eerhardt commentedon Aug 13, 2018
@carldupreez111 can you show your .csproj file? Also, make sure you target x64. You can’t use AnyCPU.
One last thing: when you say ‘dotnet run’ you mean from the command line? What happens if you just hit F5 in VS?
If you are using the command line, can you show the output of ‘dotnet -- info’
carldupreez111 commentedon Aug 13, 2018
If I use F5 it does the same thing as if I run dotnet run in the command line.
Below is my .csproj file contents
This is from the command line "dotnet --info".
I did change the solution platform to x64 and pushed F5 and seems to run. Thanks, I was aware that you need to make sure its set to x64.
Thanks for the assistance.
eerhardt commentedon Aug 14, 2018
Closing as I believe the original issue/questions have been addressed.
command line api upgrade and progress bar rendering bug (dotnet#366)
code migration from machinelearning-automl to machinelearning repo fe…
command line api upgrade and progress bar rendering bug (dotnet#366)
Added onnx export functionality for LpNormNormalizingTransformer (#4161)
Added Onnx export functionality to PCATransformer (#4188)