Visual Studio cannot open the file

I am working on my first project in Visual Studio, and I have not used Windows a lot since '05, so please bear with me.

I have my project open in Visual Studio 2008 and I'm trying to open a specific file for editing, but I get an error

"c: \ path \ to \ file
Cannot open file.

I checked that the file exists, and I can open it from Windows Explorer, but nothing from Visual Studio, any ideas?


I am not familiar with Visual Studio, so my terminology may be incorrect.

The file appears in the tree in the Explorer pane of Visual Studio, so I double-clicked it and got an error. The error indicated nothing more than the file path: the file could not be opened.

How to check permissions / ACLs in Windows? I suggested that since I could open it in Windows Explorer, I could open it in Visual Studio.

And this is the .cpp file.

+3
source share
3 answers

You can right-click on a file in the tree and delete it from the project.

Then add an existing item.

Hope this fixes the problem.

+7
source

Although I am not familiar with this specifically, if you just want to move forward, I would recommend creating a new type of project and just add all existing files to it. Being faster and easier than diagnosing can be a lot of problems.

, : , /ACL ( VS) ..

+1

, , , .Net, , .

visual studio , , " ".

( csproj ), .

0

Source: https://habr.com/ru/post/1715788/


All Articles