Adding images to SubVersion through Visual Studio using AnkhSVN - issues? - visual-studio

For the most part, AnkhSVN is working well with VS2008. The only issue I'm seeing is when an image is added from one dev, it is not added to any other machines when the SubVersion Update to Latest Version is executed.
The log file shows that the image was in fact added and submitted to SVN, but no file is downloaded added locally.
So far I've only seen this with .gif files.
Any tips?
Thanks.

See here for why this is and how to resolve it:
SVN: Colleague checked in a folder into repository, but I can't Update my version to it

Subversion is not natively supported by Visual Studio 2008. Which add-on are you using to access Subversion?
I would use the SVN command line client or TortoiseSVN to do a checkout of the source code and see whether it is committed properly. Then take a look at whether the project files have a reference to the file at all.

I don't suppose you've added .gif files to your excluded list, right? It's tough to do that unintentionally. Worth at least looking at.

Did you also commit the project file. Most project files keep a list of items that should be included in the project. Adding a new file also adds it to that list.

Related

How to work on an external developer's project using Team Foundation Server

Me - Front End web developer with an ok working knowledge of writing VB.NET code but I have never built a .NET project from scratch using Visual Studio.
External developer - Experienced VB.NET developer but completely new to version control and TFS. Also extremely cheap and prone to infuriatingly poor programming practices. He does things that make you bang your head on the table.
Background
Our external developer has coded our site but over the last few years I have been tweaking aspects of pages and have managed to learn quite a bit of VB.NET along the way. He has never used source control and I don't think he's ever had to work with another developer before.
Up until now he has maintained a local copy of the website. He makes changes to this local copy and when he wants us to test it he uploads the relevant files to our dev server. I have no experience of Visual Studio projects/solutions so if I have made tweaks to things I have edited the aspx/asxh/config files in my preferred editor and then uploaded them to the dev server. If everything works correctly I ask him to download them from the server so he can update his local copy.
I have been maintaining a local git repository of the website for the last 2 years. If he makes a change I check it in.
Obviously this is a nightmare to work with so we have now insisted that he starts using version control. I recommended GIT but he has decided to use TFS.
He has now put his solution and all the files into TFS. I have installed Visual Studio 2015 and successfully connected to TFS. I have mapped the files from source control to my own workspace but I am now at a loss as to what to do next.
Questions
As soon as I open the .sln file he has uploaded it says I have checked out the file and made changes. When I check the diff it seems to be because I am using a newer version of Visual Studio than he is. Does the .sln file need to be in version control? Or are we suppose to maintain our own versions of the .sln file and simply check in everything else?
If I try and build the project it fails because the web.config is set up for his machine and not mine. How can we maintain 3 versions of the web.config file? One for my local, one for his, and one for our dev/live environments?
I am not convinced he will have added the project to TFS correctly because he's never used it before. This is basically the blind leading the blind.
Question 1:
You need to put the .sln file in version control. Before check out the .sln file, please do a "get latest" step, which will make sure both of you are working on the latest version. When you try to check your local version in the server, and he had uploaded his local version in the server. You may have to solve conflicts before the check in.
Question 2:
You should build your project and published the website on the server. The build agent will only maintain one version of the web.config file. If he has built the project with his web.config. And you want to build the project again with your web.config, the build agent will delete the previous web.config and pull down your version. Then build the project with your's web.config.
Moreover, if both of you are not similar with TFS. Suggest you taking a look at below MSDN link which related to source control and build.
Use Team Foundation Version Control
TFS Vnext Build

Migrating from webstorm to Visual Studio 2015 - importing files from subversion using ankhsvn

I have been using the Webstorm trial version for a month and it has expired, so now I am considering using Visual Studio.
However, I have come across a stumbling block using ankhsvn, which is that I cannot figure out how to "import" files from existing files in subversion and add them to a project. Add to Subversion simply adds a new folder to the repo and I cannot see the existing files in the project explorer.
Is there a newbie friendly tutorial on how to import files from an existing svn repo to a solution in local space?
D'oh! Turns out I just needed to use Tortoise to check out the files, then create a blank solution in the same folder as the check out (this is important or ankhsvn won't play nice), and then add existing website to the project.

Nuget keeps adding repositories.config in source control (TFS) regardless of disableSourceControlIntegration flag

Nuget seems to stubbornly ignore the flag inside .nuget/nuget.config file. It's important to note that no actual packages are being added to the source control, just the annoying repositories.config.
I can confirm that our settings are correct, and if I remove the flag from the .nuget folder, then also packages start being added.
The only reference to my problem I could find here - https://github.com/Haacked/NuGet/pull/2. But it seems that this pull request is made in a clone repository.
For reference we are using VS 2013 with TFS 2013 with latest updates. We use server workspaces and I couldn't make .tfignore file work probably due to that.
Has anyone experienced that problem and if so, how did you overcome with it?
we use a .tfignore file for this. Here's a blog on how to do it:
http://blog.appliedis.com/2014/11/06/excluding-files-from-team-foundation-version-control-using-tfignore-files/

Get Back Reverted File Visual Studio 2005

I know this question may be similar to others, but I could not find the solution. My SVN version is 1.8.2 I am using Visual Studio 2005 and I accidentally have reverted a file that I was working on. I watched on Recycle Bin, but could not find that file. What ways are there to get back my reverted file ? I need back not the base file, but my working copy.
Thanks
No, subversion does not have a built in "revert reverted file"-function. You could download a recovery-program and hope that the file hasn't been overwritten so you can recover it.

SVN How do I make visual studio warn me there is a newer version of a file?

I hope this questions isn't too obvious or vague but I am problems searching for an answer as I'm not sure of terminology.
I am using TortoiseSVN with Unfuddle and Visual Studio 2010.
Previously I used Sourcegear's Fortress which worked really well for me but my new company uses SVN.
The problem I am currently having is:
If I edit a file in visual studio, then commit (Check in) the changes back to SVN and then
My colleague then goes to edit the same file (checks it out) from his visual studio it doesn't automatically update to the new version that I just checked in, so when he then goes to check in the file after he's changed it it throws a conflict error.
So my question is:
Is there a setting that will automatically make it update to the latest version when you check out a file? Or am I using it wrong?
Thanks for any help.
Bex
You don't "check out" files, you should update before editing. Subversion uses a different versioning model than what you're used to.
Also make sure to use a good conflict editor when conflicts do occur. Personally I use DiffMerge configured as both diff and merge tool in AnkhSVN.

Resources