The other day I wanted to upload code on my laptop to my Visual Studio Team Services account. The problem was that the code had been developed on a different TFS instance.
I found no way to connect to VSTS, with an already existing solution and just upload it, check it in. Instead VSTS required me to create the solution there. Barring any major file copying I could not find a simple way to do this.
There's one other question similar to this on S.O. but it requires 3rd party intervention. Shouldn't this be a simple matter?
Please advise.
Remove the binding to the old TFS first, in VS2013(and 2010) it is here: File -> Source Control -> Advanced -> "Change Source Control...". Select each project in the list and click "Unbind" for each of them.
After that there shouldn't be a problem.
Related
First of all, i'am not looking for a code sample. I just want some directions on something am working on. I'am an intermediate C# developer and i'am developing something, something like a pet/side project [huh.., it's just a crappy form application :-)].
Currently am working on a ASP.NET MVC Web project. When our client request for a change, we make the change and publish the project, then we we copy only the modified/newly added files(.cshtml, .css, .js etc..) and bin files(.dll) (if there is any controller, model etc change during the development) and replace/add them to the server.
What i'am trying to achieve is, after publishing i run a form app and it list all the projects in TFS, then i can select a project and select any changeset associated with the project(usually the latest one or two changesets) and upon click next it finds the modified/newly created files (.cshtml, .css, .js etc..) and modified(modified on the day of publish) bin files(.dll) and copy to desktop in the same folder structure as publish folder as a single compressed file, it is kind of like automating the 'picking apples (or) files'.
I have almost completed the above however just to know is there any tools for this already available that i'am not aware of or is there some option in VS to perform this? Am just a developer and didn't know the endless possibilities of VS (which i'am excited each day while learning it..)
Also please note i don't want to publish all my files to server directly from VS which i'am already aware of.
[EDIT]
I know simply i can create a batch file to find modified files in a folder and do the needed (my rocket engineering solution above vs simply doing it..!! ). I just want to know is there something already in VS etc...
I've been able to add custom file extensions by using: Project >> Properties >> Publish >> Options >> File Associations in the past. However I much prefer to use InstallShield as my installer as opposed to Click Once applications (my users find this more native, and freak out less at updates).
I'm much less experienced with InstallShield and only know the basics, how can I add a custom file extension along with my install?
A quick back story on why I want to do this is that we're going to be moving this entire system over to an ERP system (Navision) in the next year or so. In the mean time I'm attempting to add a layer of security to the files currently created along with each customer order, by forcing the user to open these files in this application. This way, we ensure any updates in these files are replicated on our SQL servers.
You can add an InstallShield project to your VS solution.
Use the projectassistent if you don't have to much experience with it.
You can find a basic tutorial here: http://www.flexerasoftware.com/webdocuments/productdemos/IS2010_VSLE_Demo/IS2010_VSLE_Demo-lite.html
I am having issues with check in my code files because of some changes I have made to the project and solution. I have renamed project files, added different project files in the solution and added many files in the existing project.
Now I am getting an error while checking in the code.
The error details are:
Check In: Operation not performed Could not find file
'....Console.csproj.vspscc'.
How do I create a vspscc file if it does not get created on its own?
Any help would be great and thanks in advance.
This looks pretty stupid on my part. I restarted my Visual Studio and I could perform the check in because Visual Studio created the vspscc file when it opened the projects and solution.
Answering my own question as fast as possible so nobody else prints my own negligence before me.
And for anybody who needs an answer as how to create a vspscc file, restart the visual studio IDE
I have also seen this in another situation (VS2012) where a simple restart didn't do the trick.
I had a number of new projects which I had added to an existing solution but in the wrong place. Undoing and re-adding seemed to be fine until check-in, where it complained that the newly added projects and related .vspscc files could not be found. It was looking for them in the original location rather than where they are now.
Resolution was to go to the Source Control Explorer, which still had check-in items against these files in their original (but non-existing) locations, as well as the files in their correct locations. Selecting these errant references and "Undo pending Changes" for these files did resolve the issue.
I'd try using File/SourceControl/ChangeSourceControl dialog and unbind (if necessary) then rebind the project to TFS to recreate the .csproj.vspscc.
I removed projects and have same issue, so my solution was to re-create the same projects with same name, then remove them cleanly :-) I hope this helps
I had a similar problem, but in my case I Visual Studio/TFS couldn't fine the .csproj file. Anyway, with the help of a colleague I was able to determine that the issue was within TFS itself. TFS may have a different view of your source code than Visual Studio does. I had created the wrong type of project (I'll call it Proj1) and deleted it from within VS. Then created the correct project type, which I'll call Proj2. When I when to check it into TFS it complained about Prog1.csproj, which confused me because I couldn't see it within VS. What I learned was that you have to go into TFS's Source Control Explorer. From there you'll see how TFS sees things. Sure enough, there was Proj1.csproj (and some other related files to Proj1). What I had to do within Source Control Explorer was undo the pending check-in's of those files and folders which I didn't want to check in and no longer existed anyway. Then TFS was happy and I could perform the check-in.
Hi I have a c# project in visual studio 2010 and Im wondering how to do the following
I have deployed this project already to a tester.
It uses a SQL database in the backend.
When I published a new version and sent him the new installer he had to remove the old version first which in turn removed his database.
What I'm looking for is a way to publish the project such that it overwrites the old stuff that has changed while leaving his database in tact.
(This would also need to but probably would circumvent the message that you can't install because its already installed in another location)
Thanks in advance for your help
The absolute simplest solution is to not use an MSI or an installer to update the program. Since this is a .NET app, it just needs to be copied to the file system. (XCOPY deployment)
The next simplest solution is to use a true database - have the database be something that is set up separate from your application.
This might also work, but I have no time to test it personally: If this is a .dbf file or another file included with the project, you might be able to change the option on that file by selecting "Copy if newer" on the Copy to Output Directory Property in the properties pane for that DB file.
Could you use ClickOnce? It is super simple.
Here is a good tutorial - http://www.youtube.com/watch?v=t4BTLdIMYEY
I am in the process of creating a Wizard to help my organization auto create a base project for all applications. The idea is that a programmer can enter a project name, a few other basics and the process will create some projects, add other project from source control, configure IIS, etc...
A lot of the work is done by simply using project templates and the IWizard interface for some of the more complicated operations. What I am trying to do is this, once all of the projects are auto created, I am creating a workspace and automatically moving all of the files under source control. I am also doing things like adding common projects, setting up some special settings in IIS, etc... The problem is that the solution file, although it is under source control, is not actually configured to use source control.
Anyone have an idea on how to programmatically configure a solution so that it is part of source control and ready to use? I've run into a brick wall and can't seem to get any further. BTW: In case a didn't make it clear, I'm essentially trying to do the same in code as right clicking on a project and selecting "Add Solution to Source Control."
Like I've said, I've got most of the issues solved. Just this last one is giving me fits...
The important facts:
Windows XP
VS 2008
TFS
Using Microsoft.TeamFoundation objects....
Can you handle this through the Visual Studio extensibility framework? EnvDTE basically provides access to anything you can do interactively...
I just did what you said while recording a Macro; Looks like:
DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()
DTE.ActiveWindow.Object.GetItem("CLSTestSolution").Select(vsUISelectionType.vsUISelectionTypeSelect)
DTE.ExecuteCommand("File.TfsAddSolutionToSourceControl")
Perhaps you can start there?