Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6954787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:39:05+00:00 2026-05-27T14:39:05+00:00

I have a zip file that I am checking-in to TFS. The zip file

  • 0

I have a zip file that I am checking-in to TFS. The zip file is a save file for a workflow and contains a few xml files. I want the be able to see the differences in the xml files when looking at the history of this file. Right now I am manually extracting the zip and checking-in the extracted files themselves.

Is there a way for me to have TFS detect I am checking-in a zip file and automatically extract and check-in the contents of the zip file as well as the zip file itself?

Is this something that I could do with a custom check-in policy? Is there a better way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:39:05+00:00Added an answer on May 27, 2026 at 2:39 pm

    When you are committing a file to version control it gets committed exactly as it was in your local workspace, aka as a .ZIP file. There’s no out-of-the-box hook in TFS that will extract a zip file, and then check-in the extracted files to version control.

    There are a couple possibilities here…
    You could setup a team build which used the folder which contains your .zip as a workspace and configure it to “build on check-in.” Then, in the logic for your build you grab the .zip file, extract it, and check the files into source control. There is an Unzip task in the MSBuild community extensions ( http://msbuildtasks.tigris.org/ ). You can use the MSBuild Exec task to shell out to tf.exe for performing the check-out \ check-in.

    You could also extend TFS services and write a custom check-in action as described here:
    http://vinubaby.wordpress.com/2009/04/16/perform-a-custom-action-for-check-in-event-in-microsoft-team-foundation-server/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a zip file that contains folder hierarchies and files. \images\ \images\1.jpg \images\2.jpg
I have a .zip file that contains sub-directories with html,png, and css files in
I have one zip file that i want unzip .the size of this file
I have an XML file that I want to parse into a database in
I have a file that can be any thing like ZIP, RAR, txt, CSV,
I have found that creating a zip file using the Zip task provided by
I have a URL that, when requested, start the download of a .zip file.
I have a ZIP archive that's embedded inside a larger file. I know the
I have a small job that takes a text file of email/zip codes and
I have a product that contains a Jar file in its distribution and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.