While performing JsonConvert, Im facing below issue.
The code was developed long back with Legacy compatibility. Now when we convert into windows, We are facing this issue.
Can anyone help me with this ?
Thanks in advance for all your time
Error message :
Compiler error(s) encountered processing expression "Directory.GetFiles(Environment.CurrentDirectory+"\Data\Output")".
Directory' is ambiguous, imported from the namespaces or types 'Microsoft.Graph, System.IO'.
I understand your issue. I faced the same. Please check if you created āJsonConvertā as variable. If Yes, Remove it from Variable panel. The āJsonConvertā is a namespace and hence cant be declared in Variable panel. Also, Can you please share Xaml file on how JsonConvert is getting used for Directory.GetFiles!? (Just curious to learn)
Issue 1 : Jason Convert issue when dealing with Windows compatability.
In here, The JsonConvert logic placed in legacy works fine. However through windows it throws error
Issue 2: Directoryā is ambiguous, imported from the namespaces or types āMicrosoft.Graph, System.IOā.
@Dipali_Gomes , Ohh! we request moving on to create separate topics. So if one search for the topic, they will be able to understand the solution!.
To answer your question, on high level, i could think of based on your question
for ISSUE 1,
Please check if you created Variable for āJsonConvertā. If Yes, delete that.
If NO, Please share Xaml file or screenshot to understand more