nixon-voxell / UnityNLP

Natural Language Processing in Unity.
https://unitynlp.readthedocs.io/
Apache License 2.0
62 stars 6 forks source link

System.Configuration dll seems to be missing from the package files #12

Open marlaoza opened 9 months ago

marlaoza commented 9 months ago

Error: I keep seeing these two warnings when i try to import this package and compile:

[1]

F:/UP/My project (1)/Packages/voxell.nlp/Runtime/VoxellNLP/csc.rsp Parse Error : F:/UP/My project (1)/Packages/voxell.nlp/Runtime/VoxellNLP/csc.rsp: not parsed correctly: System.Configuration.dll could not be found as a system library.
If this was meant as a user reference please provide the relative path from project root (parent of the Assets folder) in the response file.
UnityEngine.Debug:LogError (object)
Microsoft.Unity.VisualStudio.Editor.ProjectGeneration:ParseResponseFileData (UnityEditor.Compilation.Assembly) (at Library/PackageCache/com.unity.ide.visualstudio@2.0.17/Editor/ProjectGeneration/ProjectGeneration.cs:332)
Microsoft.Unity.VisualStudio.Editor.ProjectGeneration:GenerateAndWriteSolutionAndProjects () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.17/Editor/ProjectGeneration/ProjectGeneration.cs:308)
Microsoft.Unity.VisualStudio.Editor.ProjectGeneration:Sync () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.17/Editor/ProjectGeneration/ProjectGeneration.cs:208)
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:SyncAll () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.17/Editor/VisualStudioEditor.cs:179)
UnityEditor.CodeEditorProjectSync:SyncEditorProject () 
![image](https://github.com/voxell-tech/UnityNLP/assets/42979884/778ea095-07a5-4ac5-9718-ae16882e97c5)

[2] error CS0006: Metadata file 'System.Configuration.dll' could not be found

I'm using VX AI, VX NLP and VX Util, all installed at the packages folder, but the error only once i add VX NLP. All the models are also installed and located at StreamingAssets.

Fixes: I've tried adding the dll via Visual Studio, directly at the project references, Searching for system configurations, ConfigurationManager and other packages in the package manager (as i had to do it with newtonsoft earlier) and i tried to put the dll manually in my Unity plugins folder, but i can't find where to update the reference path to this dll in the package itself, so it also didn't work.

Manually adding "using System.Configuration" to the headers in most of the .cs files of this package removes the first error, but then, i still cant compile anything with the second one.

researching anything around this subject only points me to removing my library folder and reinstalling all packages to force unity to regenerate .meta files, so i also did that with and without a System.configuration.dll in my plugins folder, but it didn't work either, so i'm at a loss here.

Screenshots: image

marlaoza commented 9 months ago

i've only now seen the previous fix of changing the .net in the edit > settings > api compatibility. Doing that seems to make the warnings disappear but now the game crashes everytime i try to compile (or do anything for that matter, it is very unstable).

Mohammad-zakikhani commented 5 months ago

same here ! does anyone found a way ?

nixon-voxell commented 5 months ago

Hi, I have not been updating this for a very long time now because Unity now has their own Sentis package that can inference LLM with NLP much better than what we get here.

For the issues above, I believe it is about switching from using .Net 2.1 to .Net 4.x.