Can't open text file in Visual studio while de

2019-09-09 01:07发布

问题:

I tried to search for the problem on google but didn't manage to find anything useful. I'm working with a MacOsx with Parallels running Windows 8.1, I installed Visual Studio 2013 and set the Project Default Location in

C:\Users\myname\Documents\Visual Studio 2013

so that is a local location. The problem is that when I try to debug a program which need to read a text file, such file is not read properly. The text file is in the same folder of the executable. Strange thing is, if I navigate to that directory with the cmd.exe and try to run the executable, the file is correctly read.

That prevents me to use the debugger, because when I try to use it the file is not read. What kind of problem is that? Any clue about how I can solve it?

EDIT: After some searches, I think this could be related to .NET Trusted folders.