In the past this worked fine, but not anymore. I used the line of code below to retrieve files from this location:
C:\Users\ZAT\source\repos\KPItoolConsole\KPItoolConsole\input\patterns
string[] files = Directory.GetFiles(@"input\patterns", "*.json", SearchOption.AllDirectories);
But now I get the following error when debugging:
Could not find a part of the path 'C:\Users\ZAT\source\repos\KPItoolConsole\KPItoolConsole\bin\Debug\netcoreapp2.0\input\patterns'
Can someone tell me how I can make it look at the parent folder again?
This is for a Console .NET Core application. I think it stopped working after a Visual Studio update.