Edit project file in Visual Studio 2010 using TFS2010 - visual-studio-2010

I've got a solution checked out from our TFS2010 system and want to edit the .csproj file itself in native text format (and not via the Project->Properties). Until we introduced TFS2010 I just edited the .csproj file in a simple text editor. How can I edit the project file regarding TFS2010 CheckIn/CheckOut mechanisms?
Many Thanks, Konrad

You can access the project files by right clicking the project in the solution and selecting "Unload Project" then right click on it again and select "Edit MyProject.csproj". To open the project again, right click and select "Reload Project".

Related

Can't find "Edit Project" command in Visual Studio for Mac

The title says it all, really. I am looking for the equivalent to the Visual Studio for Windows feature wherein I can right-click a .NET Core/.NET Standard project in the Solution Explorer and edit the *.csproj file in the IDE editor. I can't find this command anywhere in VS for Mac. I have also tried unloading the project (right-click project > Unload menu item), to no avail; I cannot edit the project file there either. As a result, I cannot edit my .NET Core/.NET Standard project files without using another application. Most annoying. (I am using Visual Studio Community version 7.3, build 708, if it helps.) Can anyone here point me in the right direction, or otherwise confirm that this feature is not available in VS for Mac? Thanks!
Right click the project and select Tools - Edit File.
That will open the project file in the text editor.

How to add the currently edited file to project

In Visual Studio 2013, often I am editing a file that is not in the current project, and would like to add this file to the project. Is there an easy way to do that? The only way I've found is via right click on the project, Add/Existing Item (Shift+Alt+A), and then browse to the file I want to add in the dialog. Is there a shortcut I am missing?
This works in Visual Studio 2010:
Right-click on the document tab, select "Copy Full Path".
Project - Add Existing Item - Ctrl+V - Add.

Why does Visual Studio prevent me from seeing the .csproj file, and is there a way to force it open?

When I sought the hardcoded origin of the port number my Web API uses, I found it in the project's *.csproj file. Yet when I 2-click it from the Find Results window in Visual Studio, it won't open and I'm rather brusquely informed, "The document 'Bla*.csproj' is already open as a project or a solution and cannot be opened in an editor at this time."
To look at it, I have to open it with Notepad++, which shows me what I want:
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>28642</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:28642/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
...but this is kind of painful. Is there a quicker way to open a .csproj file from within the project/Visual Studio (2013)?
To edit a .csproj (or any other project file) directly from Visual Studio, do the following:
Right click the project in Solution Explorer
Select "Unload project"
Project is now unloaded
Right click the project again and select "Edit blah.csproj"
Make your changes and save them
Right click the project and select "Reload project" to apply the changes
Right-click project -> Unload project, then right-click again -> Edit

csproj file in solution explorer

It's possible to set *.csproj file visible in Solution Explorer?
Now I use option "Open containing folder" on file from project and search *.csproj. How can I show it in SE? I use Visual Studio 2010 Premium.
Your *.csproj is the project(s) icons that show up below your solution root. You edit the .csproj right clicking the project icon in solution explorer and select properties. What else would you want?
You need to unload the project from solution. After that you can right click and select edit. There should be an extension somewhere that does this. Try PowerCommands. I believe it adds the conveniens button "Edit Project".

Tool for editing Project File to add Import Tag

Is there any tool within Visual Studio IDE to edit <Import Project ... /> settings?
Currently we have to open project file in notepad and update the project setting manually.
Thanks in Advance.
In Visual Studio right click your project, select Unload Project, right click again and select Edit ProjectName.csproj.
When you're done, right click again and select Reload Project.

Resources