On VS2022, I open a solution that I downloaded from codeproject
This solution used to be in .net framework 4.6.1 ; when I open it in VS2022 it was migrated to .net framework 4.8
Not sure above information are relevant.
But when I try to start it (Project Win Form), I got issue because Application.ExecutablePath return an inconsistent string with back and forward slash.
C:\HOMEWARE\Code\C#/BrainTeaser2/Demo/bin/Debug/Demo.exe
Later, I have an external library which use this Property as follow Application.ExecutablePath.LeftOfRightmostOf("\\")
So it gets the wrong path.
Does any one face same issue? Is there a way to have the Application.ExecutablePath to return this string instead: C:\HOMEWARE\Code\C#\BrainTeaser2\Demo\bin\Debug\Demo.exe
(I built a new Win Form project from my VS2022 in .NET 8 and the Application.ExecutablePath is well formatted. So I don't thing my problem will be reproducible by others. But if someone get any clue to go around my issue without to have to creating a new solution and re-creating all the projects, it will be great.)