Abstract: codeplex is an open-source Engineering website of Microsoft. It involves many open-source projects with the latest Microsoft technologies. At the same time, you can build and present your own open-source projects to the world. Compared with SourceForge and googlecode, codeplex has its own advantages, especially. NET developers, codeplex supports TFs code control (of course, codeplex not only supports TFs code control, but also supports other methods ), visual Studio team explorer of visual studio2010 supports TFs connections, so it is relatively convenient to use. Today we will take a look at how to use codeplex to host our own projects.
Main content:
1. Register and create a project on the codeplex website
2. Use Visual Studio team explorer to connect to codeplex
3. Add the project to codeplex and release it.
1. Register and create a project on the codeplex website
The first step to use codeplex to host a project is to register your own account on www.codeplex.com. You can use this account for project management in the future (pay attention to it here, in future project management, the password is the current registration password, but the user name is different from the user name registered at this time ).
After logging on, you can select Create project.
Note that the sourcecontrol option is selected. Because we want to use TFs hosting and team lead e management, we have made the choice.
The next step is to verify the email address.
Now that the project is created, we can go to the project homepage to see
On the homepage, we see the prompt that your source code must be published within 30 days, and there is a "publish this project" button, of course, you cannot publish it because your code has not been uploaded yet.
2. Use Visual Studio team explorer to connect to codeplex
Next, connect to codeplex. First open vs2010 and click "connect to team Foundation server". If you have previously connected to TFS, it will be selected by default and connected, if not, click severs and then add.
The input of the above information is very important. What information do we need to enter? There may be some questions about friends who have not used codeplex or TFs. In fact, we don't have to worry about it. As long as we log on to the codeplex website, select source code, and then on the right side of the website, we can see source control (including four methods), click "Visual Studio team Explorer"
Here we can see all the information for connecting to TFS, And then we fill in the correct information
Enter the user name and password. Note that the user name is displayed on the website.
After entering the information, you will be prompted to select a project.
Then click Connect. The codeplex connection is now complete.
3. Add a project to codeplex and release it
Next we will put the project on codeplex, and then perform the above steps. After connecting to TFS, we can see the following interface in team lead e of.
Double-click sourcecontrol.
Select "cmj" in the left-side tree structure, and then you can see "local path: No mapped" (for example) on the right ), click "No mapped" to set the local directory to be placed at the end of the current project.
After selecting the directory, right-click "cmj" in the left-side tree structure and choose "add items to folder"
Click "Browse" in the upper-right corner to select the directory where the project file is located. All files and subdirectories in this directory are listed. Select the files and directories to be uploaded and click "finishi" to add them. At this point, the file is added to the TFS local management directory, and has not been uploaded to codeplex. Next, select "cmj" in the tree structure and right-click "check in pending change"
Select the content to upload and click "check in.
So far, the project has been put on codeplex, but it has not yet been released. We can go to the codeplex website and click "publish this project" to complete the release.
Note:
1. in fact, the process of adding a project above is a little complicated. The simpler method is to directly open the project, right-click to add "add solution to source control", and enter the user name and password to connect to TFs, check in later.
2. if a temporary network disconnection fails to connect to TFS, you can modify the code by modifying the read-only attribute of the file, select File-source control-go online when you can connect to the network. A file is prompted for modification.
Then "go online"
Next, "check in.