简体   繁体   中英

can't import an installed package c# in visual studio

(Sorry for my bad english) I am working on a unity 2019 project and I created a model.h5 file with keras in python and I want to load this model in visual stusio C# with Kera.NET package

I installed Keras.NET successfully

installed Keras.NET package.png

but I got this error when I tried to import it in my code using Keras error.png

Gravité Code Description Projet Fichier Ligne État de la suppression Erreur CS0246 Le nom de type ou d'espace de noms 'Keras' est introuvable (vous manque-t-il une directive using ou une référence d'assembly ?) Assembly-CSharp C:\Users\asus\Documents\Unity 2019 Projects\Kinect test\Assets\Scripts\Keras_Test.cs 2 Actif

it means Keras is not recognized

thanks for help

I finally fixed the problem

in my version of Visual Studio 2019 I didn't find 'Add reference when I did right-click on "Assembly-CSharp.csproj\Reference" I did right-click on Project Tab then 'Add reference'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM