how to import project via ankhSVN from visual svn server? - visual-studio-2010

We are two developers and want to share a project.
On one PC I have VisualSVN server installed (as a SVN server), TortoiseSVN (for adding project to repository), and ankhSVN (for Visual Studio, because it's easier than the others). I can create a repository and add a project to it. On the same PC I can get the project from SVN server using file://path. On the other PC I can browse the repository in a browser using https://PC2/sbn/prj/trunk, and also with repository browser in VS2010.
But when I want to import the project (file, open, open subversion project), I don't know how to address the URL file, because the https address does not work there.
Is there any special way to address that?

From repository Explorer select your host , add user and password and login to the server , then find your solution and then click on check out from svn , then you will be able to get the project from svn server .

Related

Setup a local TFS/TFVC repository in VS2015

I want to create a new project in VS2015 and set it up to use TFVC instead of Git.
I changed the source control plugin to Visual Studio Team Foundation Server from Tools->Options->Source Control->Plug-in Selection, and I created a new project with "Add to Source Control" checked, but the project is still created with a Git repo.
I also tried adding a server connection from Team Explorer->Manage Connections->Servers...->Add..., but there was no server at http://localhost:8080/tfs (I assume it's not install by default).
My question is how can I work on a TFS repository that is local to my computer (it's OK to use a server so long as it's on localhost).
You have to install Team Foundation Server on your local computer.
This is a separate download and not a part of Visual Studio.
According to the system requirements, TFS (starting with 2013) can only be installed on a 64-bit OS. You don't need to install SharePoint or any other part of TFS that you won't use (like for example Build Services).
You also need an instance of SQL Server running on your local computer. TFS will create a bunch of databases on this instance where it stores its internal data. If you don't have a license for SQL Server, you can use the Express Editions of TFS and SQL Server both for free. These Express Editions are recommended by Microsoft (see previous links) if you plan to use TFS only on you local computer, but of course you can use a paid edition as well if you need some special feature.
After installing TFS you have to create a Team Project Collection in the TFS Administration Console which can be found in the Start menu. Then add a new connection in the Team Explorer as shown in your screenshot and create a new Workspace (Source Control Explorer --> Workspace --> Add) with a Working Folder that matches the local directory containing your source files.
The URL of the TFS is the one that was set in the Application Tier of the TFS Administration Console. (http://localhost:8080/tfs is the default URL.)
As far as I know it's not possible to use a TFS/TFVC without installing and configuring a full Team Foundation Server reachable by a URL, but of course anything can be limited to be usable only on your local computer.

Access SVN server over HTTP in Windows

I have installed VisualSVN Server in a windows machine. And TortoiseSVN client in another server. I want to access the data of VisualSVN server through TortoiseSVN over http or https. How can I do that?
Please help
Just tell TortoiseSVN the URL of your repo:
Open VisualSVN Server Manager. Under repositories, select your repository, right click > Copy URL to clipboard.
Go to other machine, rigth click on folder where you want to checkout the code > SVN Checkout..., paste the above value in the field URL of the repository (TortoiseSVN might even pre-populate this for you from clipboard). Click OK.
That's all.

How do I put an existing Visual Studio solution under source control using VisualSVN Server?

I have an existing Visual Studio 2013 solution, and I want to put it under source control using VisualSVN Server. I installed VisualSVN Server and created a new blank repository. Their Getting Started page doesn't explain how to add a folder structure and files to the repository. I am expecting an import or add files option when right clicking on the repository node in the UI.
How do I add an exiting root folder and all its files and folders of a Visual Studio solution to a repository and make it ready so any SVN client can check out files from it? I am planning to use TortoiseSVN as the client.
You need to install TortoiseSVN and check out a working copy of the repository. Copy from solution into the working copy, select all files, and make a rightclick and select TortoiseSVN -> Add.
Commit the changes and now you have the data added to the repository.

Ankhsvn integration with Visual Studio 2010 - Adding Solution - Working Folders Issue

Newb to Ankhsvn and Ubersvn integration.
I have existing web projects built in Visual Studio 2010 and am attempting to add them into a newly created repositories. The issue I'm having is trying to configure the working local directory. I've got my projects contained in various folders on my machine but it seems Ankhsvn will not let you change the "Local Folder" (which I'm assuming is the working folder) on your machine, it only gives selected options in a dropdown. I know Visual Studio generates it's own solution file in the standard directories (my docs../vis stud../projects/...) but that is not my working directory which it seems Ankhsvn is fixed in.
I don't want to have to move my projects around (and probably don't have enough space on my c: drive anyway). Does someone have any insight on how I can configure the local folders ankhsvn and Ubersvn can work out of?
Using Windows 7 64bit if that has any bearing as well. Our svn repository is hosted externally.
UPDATE
Well I haven't heard any feedback yet on this so I basically went ahead and used the following methodology to get my files into the repository:
1) Used TortoiseSVN to add the files to the svn repository (with TortoiseSVN installed, right click on the folder you want to add, TortoiseSVN -> Import and basically add in the repository URL ad go about adding in folders and files as desired.
2) next step was to then open Visual Studio 2010 and open the given web project folder and then go File -> Subversion -> Open project from subversion. NOTE: make sure when you open that you select the correct folder to import to. It should be one level above the given folder you selected.
3) after the import, all my files appeared as in conflict. I basically just commited the files and the issue went away.
So I now have my project hooked into svn and working through Ankhsvn but has to use TortoiseSVN to get it done...hmmm
To administer the repository in uberSVN you need to make it aware of the repository. The easiest way to do this is to create the repository within the uberSVN admin page, but you've already done that bit, so we need to make uberSVN aware of it.
To do this:
Create a Dump file based on your manually created repository
Login to uberSVN as an System Admin or Repository Admin
Click on Repositories
Click on Add
Enter a Repository Name (which will enter a Location automatically)
Click Next
Click Import From Uploaded Dump File or Import From Dump File Located On The Server
Select the Dump file in question
Click Done
Your repo will now be brought underneath uberSVN, loaded into a newly created Repo sat in the /uberSVN/repositories storage location.
From there you just continue as normal with your preferred subversion client.
Know this QA is old but thought worth updating.
Got a solid, reproducable method for adding projects into remote UberSVN repository from Visual Studio 2010...trial and repeat seems to work consistantly on my side. Here goes
Go to remote UberSVN server, Login
Create Repository
"Your Repository Name"
Added users to repository
Created Visual Studio project (File -> New Project) in similar ubersvn structure…in this case
In windows explorer, created folders D:\\\trunk\
In Visual Studio, create new project, uncheck “Create directory for solution” and I set the “Name” to
"Your Project Name"
In the first solution and subversion create phase, I checked off “Add to Subversion”
Created project and the subversion repository selection popup came up.
typed in the new repository url
http://"your UberSVN Repository URL"/"Your Repository Name"/
Below the Repository URL, I selected the repository “Database” image and then I clicked “Create Folder”
NOTE: When I did again, it seemed that there was already a “trunk”, ”branches” and “tags” folders generated under the repository database -> I clicked on the trunk folder).
If the folders from above notes do not exist, I typed in “trunk” as new folder and then the proper Project url appeared in the “Project will be created in:” section at the bottom of the popup (
http://"your UberSVN Repository URL"/"Your Repository
Name"/trunk/"Your Project Name"/
)
Clicked OK
Started copying files from existing website/project to new project
Once all files are in and no more errors exist, start to do initial commits
Visual Studio 2010 NOTES:
May have to regenerate designer files from older visual studio 2008 projects. Right click on the web form page you want to convert to “Web Application” and it will autogenerate the designer file for the given webform (web page)
Will have to add in references from the bin folder for any dlls needed in project
If bringing over classes from another project (i.e. in App_Code folder), need to right click on each (or select multiple) and go to properties -> Build Action and change from “Content” to “Compile”

How can I change the SVN URL in Visual Studio

In my office, I have a working repository, where I am able to work on my laptop to modify files and commit them to that repository. I am using a local URL for this, which points directly to the PC containing the repository. Additionally, we published this repository for external users as well, so they are able to make changes to the repository without being on our local network. All is working fine there. However, my laptop which normally using the local connection, now needs to be moved to one of those external locations. I would like to be able to change the URL in my solution in Visual Studio, without having to 'create project from SVN'
Navigate to View -> Pending Changes.
You can see the Pending Changes prompt at the bottom.Then Select the drop down on the top right and select other option. Provide the new URL and click on OK button.
Done!
Whay you need is relocate (NOT switch) to tell your working copy that the URL of the repository changed (from your local URL to the external URL).
In the thread Collin linked to is most likely the correct answer:
How to switch subversion repository in Visual Studio using AnkhSVN?
How to switch subversion repository in Visual Studio using AnkhSVN?

Resources