The item $/... does not exist at the specified version, or you do not have permission to access it.
Somehow the Team Foundation Server (TFS) thought the file already existed, even though I was trying to add it to source control for the first time.
How to solve.
- Copy and paste the text of the file to notepad
- Delete the file in Solution Explorer (this causes a check-out of the .csproj file)
- Check-in (this adds the "delete" to TFS).
- Now, in Solution Explorer, add the view (empty, without model)
- Note that there is now a [+] icon by the view in Solution Explorer
- Paste in the text from Notepad
- Save
- Right click the project (not just the added file) and check in. There should be 2 files in the changeset, the view and the .csproj.
Bryan Valencia is a contributing editor and founder of Visual Studio Journey. He owns and operates Software Services, a web design and hosting company in Manteca, California.
No comments:
Post a Comment