Greetings everyone,
After days of trying to fix the issue I am struggling with, I decided that perhaps I need a fresh perspective from another individual. I want to to invoke c# code which requires a specific package.I tried to download the microsoft package System.DirectoryServices.AccountManagement from “Manage Packages” but this is the outcome:
When I hover over the dependency, it says “Requested = 5.0.0, not resolved”.
I uninstalled the studio, upgraded the version and it was all the same.
Also I tried it with all the versions of the package.
I tried also to uninstall the package and download it from the nuget package site and add it manually to the other packages but unfortunately it didn’t work as well.
Also what I tried was opening the main .xaml file with notepad++ and adding
<AssemblyReference>System.DirectoryServices</AssemblyReference>
<AssemblyReference>System.DirectoryServices.AccountManagement</AssemblyReference>
which added the namespace in the imports panel,
Unfortunately, it only removed the validation errors
but when I tried to compile this is the outcome:
I use the latest version of the .NET framework and my last resort was using an older .NET version but the result was the same.
If anyone has got any recommendations, I will be really grateful .