Is there a posible to get previous version of code in TFS Build script? I need to get curren version of config file and version from previous check-in, compare them, check if some files in other folders have the same changes and save the results to log.
MSBuild: get previous version from msbuild script
267 Views Asked by Roman Kuzyk At
1
There are 1 best solutions below
Related Questions in TFS
- Missing Header (Feature Title and Toolbar) on some Feature Work Items in TFS Web Access
- Upgrading separate Project Collection Database to new TFS Version
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- HowTo: change a project's status from `Invalid` to `Valid`?
- TFS 2013 Object reference not set to an instance of an object in Team Explorer
- Release Management for Visual Studio 2013 - Release Exception
- Visual studio 2013 team project has been deleted
- TFS version control does not show conflicts
- include typescript file in output result build with TFS
- Team Foundation 2012 not recognising changes in vb6 app
- WebDeploy from TFS using Build Definitions to IIS site containing files changed by users
- Team Foundation plugin for Android Studio
- TFS 2013 with Octopus Deploy, Email Template - Resolved Bugs/User Stories
- What is the best branching strategy in TFS to share code between multiple team projects?
Related Questions in MSBUILD
- How to define WIX agent requirement in TeamCity?
- Reading msbuild syntax
- Release Management for Visual Studio 2013 - Release Exception
- Exception in SonarQube.Msbuild.Runner
- How to build rptproj using C#
- Can't build a project with Postsharp 4.1.14
- Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines
- Run MSBuild from powershell without specifying .Net version
- hosted build visual studio online
- WebDeploy from TFS using Build Definitions to IIS site containing files changed by users
- How to use Clang compiler with MSBuild?
- How to include js files in a Visual Studio project on build
- TFS 2015 RC Build.Preview Execute xUnit Tests
- Visual Studio Code, C# support on Windows
- Does Task Runner Explorer support CI build servers?
Related Questions in VERSION
- How to handle distro versions in Yocto
- Updating project version: Composer
- Updating app icon and screenshots
- Git shortlog exclude comments starting with string
- JPA Version column isn't updating after merge()
- Version Comparison using KSH
- When i run the below query in MySQL 5.6 it shows 141000 records. but when i run this on MySQL 5.0 it fetches only 91 records
- bash 4.2 / 4.3: Different behavior in C-style loop
- How can I install ruby 2.2.1 if I am on 2.2.2?
- Points to be looked into while upgrading from redis-2.8.19 to redis-3.0.2
- How to force a jar to run in java 7?
- UniServer Coral and UniServerZ Running Wrong PHP Version
- Can you update QPython3 version of Python3?
- How to add user into specific branch in svn subversion (batch script or api)
- Reactjs Methods in React Native to Find DOM Node Dimensions
Related Questions in CHANGESET
- Re-associate changesets and work items with build
- Ecto Changeset, required fields not validating on changes
- TFS rollback a previous changeset that has has files changed by latter changesets
- TFS - Is it possible to rollback a changeset committed before the branching?
- List all SVN change-sets of Mylyn task in Eclipse
- TFS: List changesets that have not been merged
- TFS 2010 API - Iterating through list of changesets returned in QueryHistory is way too slow
- How to download source code by specific change set number in jenkins?
- Change Set Management With Visual Studio Web Projects
- BRMS- resource and change-set
- How can I make a link to a git changeset in Trac when there is more than one repository and neither one is default?
- Tf changeset latest with a different login
- How to get the correct Version when unshelving older Shelvesets in TFS?
- TFS - Set a branch to allow check ins of "Merge" changeset only
- Same change keeps reappearing after checkout
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
We have a similar situation, where we need to get data from a file before getting the latest version. I don't know how much of this is applicable to you, but here's how we do it:
autogetsourcecontrol in our configurations.tf getoperation (as an MSBuild task)Both in our case and yours I guess that a method for retrieving/comparing with the "previous" version of an item would have been preferred, but I was stumped there; I couldn't find any relatively easy way to retrieve the previous change set for an item. If anyone has any good ideas there, I'd like to hear these as well :).