Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Microsoft Team Foundation Server 2015 Cookbook
Microsoft Team Foundation Server 2015 Cookbook

Microsoft Team Foundation Server 2015 Cookbook: Over 80 hands-on DevOps and ALM-focused recipes for Scrum Teams to enable the Continuous Delivery of high-quality Software... Faster!

Arrow left icon
Profile Icon Tarun Arora Profile Icon Arora
Arrow right icon
Mex$1128.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (18 Ratings)
Paperback Jan 2016 340 pages 1st Edition
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
Arrow left icon
Profile Icon Tarun Arora Profile Icon Arora
Arrow right icon
Mex$1128.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2 (18 Ratings)
Paperback Jan 2016 340 pages 1st Edition
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Microsoft Team Foundation Server 2015 Cookbook

Chapter 2. Setting Up and Managing Code Repositories

 

"Quality is never an accident; it is always the result of intelligent effort".

 
 --John Ruskin

In this chapter, we will cover:

  • Creating a Git repository in an existing TFVC Team Project
  • Enabling code analysis check-in policy
  • Performing a baseless merge between sibling branches in TFVC
  • Reparenting a branch in TFVC
  • Unlocking files checked out by someone else
  • Unshelving a shelveset created in one branch to another branch
  • Ignoring file types from check-in using .tfignore and .gitignore
  • Conducting code reviews in TFS
  • Setting up policies for branches in Git
  • Conducting Pull requests in TFS
  • Analyzing code churn with TFS analysis services cube

Introduction

Code repositories enable developers to write code more confidently. More developers are using source control than ever before. The most obvious benefits of a code repository can be seen when multiple developers are collaborating on code. Many hands in the pot means there is a greater need to manage and understand revisions. If you ever have to make an argument to support source control, then the questions to ask would be the following:

  • Have you ever made a change to code, realized it was a mistake and wanted to revert back?
  • Have you ever lost code or had a backup that was too old?
  • Have you ever had to maintain multiple versions of a product?
  • Have you ever wanted to see the difference between two (or more) versions of your code?
  • Have you ever wanted to prove that a particular change broke or fixed a piece of code?
  • Have you ever wanted to review the history of some code?
  • Have you ever wanted to submit a change to someone else's code?
  • Have you ever wanted to share your code or let...

Creating a Git repository in an existing TFVC Team Project

Traditionally, it has only been possible to have TFVC as a source control repository. TFS started supporting Git as a source control from TFS 2013 onwards. Git offers many benefits for distributed Teams collaborating across the same codebase; you can read more about the benefits here at https://git-scm.com/about. TFVC Teams that are keen to try out Git, but cannot because of the rework involved in migrating their existing investments now have a solution. TFS now supports hybrid Team Projects. In this recipe, you'll learn how to set up a Git repository within an existing TFVC-based Team Project.

Getting ready

In Team Foundation Server 2015 Update 1, you need to be a member of the project administrator group to make an existing TFVC or Git project into a hybrid project, a project that hosts both a TFVC repository and multiple Git repositories. Users will need Visual Studio 2015 Update 1 to work with the hybrid project. Older versions...

Enabling code analysis check-in policy

Many organizations recommend certain checks be done before committing code into source control. The cost of fixing bad code increases overtime. There is incentive in identifying and fixing issues in code early. We discussed the definition of done in the previous chapter; think of this as the definition of check-in. In TFS, a check-in policy is a rule that is executed during the check-in operation to ensure that the selected change set is okay to commit. The check-in policies are stored on the server and executed on the client machines at the time of check-in. Check-in policies are only supported in TFVC projects. While TFS has some preconfigured check-in policies, several other check-in policies are added by TFS Power Tools. In this recipe, you'll learn how to configure the code analysis check-in policy. The code analysis check-in policy requires that code analysis is run before check-in.

Getting ready

To complete this recipe, you'll need:

  • A...

Performing a baseless merge between sibling branches in TFVC

Managing source code can get challenging when multiple Teams are contributing to the same repository. Are you already familiar with the branching and merging tools available in TFS? If not, I would encourage you to go through the ALM Rangers Version Control Guidance http://bit.ly/1He8pmL. The guidance talks in detail about the various branching strategy and its pros and cons.

Performing a baseless merge between sibling branches in TFVC

An extract from the ALM Rangers Version Control Guide showing different branching strategies

Branching in TFVC can get complicated over time; branching in Git is lightweight and path independent. In Git, many developers create a branch for each new feature they are coding, sometimes on a daily basis. Git allows you to quickly switch from one branch to another to pivot among different variations of your codebase. When using Git, you can create branches that exist only on your Dev machine and share them if and when you're ready. Consider evaluating your...

Reparenting a branch in TFVC

Team Foundation Version Control provides you with an option to prune a branch from somewhere in a given hierarchy and graft it on elsewhere in the same hierarchy. Consider using this approach if the branch structure you put in place is incorrectly set up or has stopped working as you have scaled up. In this recipe, you'll learn how to reparent a branch in TFVC.

Note

The movement of the reparented branch is logical not physical and can be done without stopping developers from working. However, it's a good idea to get developers to shelve changes. You should also endeavor to make the new parent as close in content to the old parent to avoid merge conflicts.

Getting ready

In order to reparent a branch, your user account needs to have the Manage branch permission. The project administrator group and project collection administrator group already grant this permission; however, this permission can be set to allow directly on individual users and groups:

Getting ready

The...

Unlocking files checked out by someone else

In distributed Teams, developers often have pending changes that overlap shared code files. Don't you hate it when a developer takes a day off with files exclusively checked out to them or when a developer leaves an organization with files still checked out? When a file is exclusively locked, no check-in can be performed on the file until the lock is removed. In this recipe, you'll learn how to unlock files checked out by other users.

Getting ready

To undo the pending changes in another user's workspace, you must have the Administer workspaces permission set to Allow:

Getting ready

How to do it...

  1. Developer A has checked out $/FabrikamTFVC/Main/Source/FabrikamFiber.CallCenter/FabrikamFiber.Web/Web.config in the FabrikamTFVC project with a check-in lock type. So while other users can check out the Web.config file, no one can check in Web.config until developer A has lifted this lock:
    How to do it...

    In the following image, Web.config is checked out with the check...

Introduction


Code repositories enable developers to write code more confidently. More developers are using source control than ever before. The most obvious benefits of a code repository can be seen when multiple developers are collaborating on code. Many hands in the pot means there is a greater need to manage and understand revisions. If you ever have to make an argument to support source control, then the questions to ask would be the following:

  • Have you ever made a change to code, realized it was a mistake and wanted to revert back?

  • Have you ever lost code or had a backup that was too old?

  • Have you ever had to maintain multiple versions of a product?

  • Have you ever wanted to see the difference between two (or more) versions of your code?

  • Have you ever wanted to prove that a particular change broke or fixed a piece of code?

  • Have you ever wanted to review the history of some code?

  • Have you ever wanted to submit a change to someone else's code?

  • Have you ever wanted to share your code or let other...

Creating a Git repository in an existing TFVC Team Project


Traditionally, it has only been possible to have TFVC as a source control repository. TFS started supporting Git as a source control from TFS 2013 onwards. Git offers many benefits for distributed Teams collaborating across the same codebase; you can read more about the benefits here at https://git-scm.com/about. TFVC Teams that are keen to try out Git, but cannot because of the rework involved in migrating their existing investments now have a solution. TFS now supports hybrid Team Projects. In this recipe, you'll learn how to set up a Git repository within an existing TFVC-based Team Project.

Getting ready

In Team Foundation Server 2015 Update 1, you need to be a member of the project administrator group to make an existing TFVC or Git project into a hybrid project, a project that hosts both a TFVC repository and multiple Git repositories. Users will need Visual Studio 2015 Update 1 to work with the hybrid project. Older versions...

Enabling code analysis check-in policy


Many organizations recommend certain checks be done before committing code into source control. The cost of fixing bad code increases overtime. There is incentive in identifying and fixing issues in code early. We discussed the definition of done in the previous chapter; think of this as the definition of check-in. In TFS, a check-in policy is a rule that is executed during the check-in operation to ensure that the selected change set is okay to commit. The check-in policies are stored on the server and executed on the client machines at the time of check-in. Check-in policies are only supported in TFVC projects. While TFS has some preconfigured check-in policies, several other check-in policies are added by TFS Power Tools. In this recipe, you'll learn how to configure the code analysis check-in policy. The code analysis check-in policy requires that code analysis is run before check-in.

Getting ready

To complete this recipe, you'll need:

  • A TFVC Team...

Performing a baseless merge between sibling branches in TFVC


Managing source code can get challenging when multiple Teams are contributing to the same repository. Are you already familiar with the branching and merging tools available in TFS? If not, I would encourage you to go through the ALM Rangers Version Control Guidance http://bit.ly/1He8pmL. The guidance talks in detail about the various branching strategy and its pros and cons.

An extract from the ALM Rangers Version Control Guide showing different branching strategies

Branching in TFVC can get complicated over time; branching in Git is lightweight and path independent. In Git, many developers create a branch for each new feature they are coding, sometimes on a daily basis. Git allows you to quickly switch from one branch to another to pivot among different variations of your codebase. When using Git, you can create branches that exist only on your Dev machine and share them if and when you're ready. Consider evaluating your source...

Reparenting a branch in TFVC


Team Foundation Version Control provides you with an option to prune a branch from somewhere in a given hierarchy and graft it on elsewhere in the same hierarchy. Consider using this approach if the branch structure you put in place is incorrectly set up or has stopped working as you have scaled up. In this recipe, you'll learn how to reparent a branch in TFVC.

Note

The movement of the reparented branch is logical not physical and can be done without stopping developers from working. However, it's a good idea to get developers to shelve changes. You should also endeavor to make the new parent as close in content to the old parent to avoid merge conflicts.

Getting ready

In order to reparent a branch, your user account needs to have the Manage branch permission. The project administrator group and project collection administrator group already grant this permission; however, this permission can be set to allow directly on individual users and groups:

The Manage branch...

Unlocking files checked out by someone else


In distributed Teams, developers often have pending changes that overlap shared code files. Don't you hate it when a developer takes a day off with files exclusively checked out to them or when a developer leaves an organization with files still checked out? When a file is exclusively locked, no check-in can be performed on the file until the lock is removed. In this recipe, you'll learn how to unlock files checked out by other users.

Getting ready

To undo the pending changes in another user's workspace, you must have the Administer workspaces permission set to Allow:

How to do it...

  1. Developer A has checked out $/FabrikamTFVC/Main/Source/FabrikamFiber.CallCenter/FabrikamFiber.Web/Web.config in the FabrikamTFVC project with a check-in lock type. So while other users can check out the Web.config file, no one can check in Web.config until developer A has lifted this lock:

    In the following image, Web.config is checked out with the check-in lock. This is...

Left arrow icon Right arrow icon

Key benefits

  • Release high quality, reliable software quickly through building, testing, and deployment automation
  • Improve the predictability, reliability, and availability of TFS in your organization by scheduling administration and maintenance activities
  • Extend, customize, and integrate tools with TFS, enabling your teams to manage their application lifecycles effectively

Description

Team Foundation Server (TFS) allows you to manage code repositories, build processes, test infrastructure, and deploy labs. TFS supports your team, enabling you to connect, collaborate, and deliver on time. Microsoft's approach to Application Lifecycle Management (ALM) provides a flexible and agile environment that adapts to the needs of your team, removes barriers between roles, and streamlines processes. The book introduces you to creating and setting up team projects for scrum teams. You'll explore various source control repositories, branching, and merging activities, along with a demonstration of how to embed quality into every code check-in. Then, you'll discover agile project planning and management tools. Later, emphasis is given to the testing and release management features of TFS which facilitate the automation of the release pipeline in order to create potentially shippable increments. By the end of the book, you'll have learned to extend and customize TFS plugins to incorporate them into other platforms and enable teams to manage the software lifecycle effectively.

Who is this book for?

This book is aimed at software professionals including Developers, Testers, Architects, Configuration Analysts, and Release Managers who want to understand the capabilities of TFS to deliver better quality software faster. A working setup of TFS 2015 and some familiarity with the concepts of software life cycle management is assumed.

What you will learn

  • Creating a Team Project with Dashboards, Assigning License, Adding users, and
  • Auditing Access
  • Setting up a Git repository in an existing TFVC-based Team Project
  • Setting up branch policies and conducting Pull requests with code reviews
  • Mapping, assigning and tracking work items shared by multiple teams
  • Setting up and customizing Backlogs, Kanban board, Sprint Taskboard, and dashboards
  • Creating a Continuous Integration, Continuous Build, and Release Pipeline
  • Integrating SonarQube with TFBuild to manage Technical Debt
  • Triggering Selenium Web Tests on a Selenium Test Grid using TFBuild
  • Using Visual Studio Team Services Cloud load testing capability with new Build framework
  • Extending and customizing the capabilities of Team Foundation Server using API and Process Editor
Estimated delivery fee Deliver to Mexico

Standard delivery 10 - 13 business days

Mex$149.95

Premium delivery 3 - 6 business days

Mex$299.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 30, 2016
Length: 340 pages
Edition : 1st
Language : English
ISBN-13 : 9781784391058
Vendor :
Microsoft
Category :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Mexico

Standard delivery 10 - 13 business days

Mex$149.95

Premium delivery 3 - 6 business days

Mex$299.95
(Includes tracking information)

Product Details

Publication date : Jan 30, 2016
Length: 340 pages
Edition : 1st
Language : English
ISBN-13 : 9781784391058
Vendor :
Microsoft
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 2,708.97
Microsoft Team Foundation Server 2015 Cookbook
Mex$1128.99
Team Foundation Server 2015 Customization
Mex$902.99
Reporting in TFS
Mex$676.99
Total Mex$ 2,708.97 Stars icon

Table of Contents

9 Chapters
1. Team Project Setup Chevron down icon Chevron up icon
2. Setting Up and Managing Code Repositories Chevron down icon Chevron up icon
3. Planning and Tracking Work Chevron down icon Chevron up icon
4. Building Your Application Chevron down icon Chevron up icon
5. Testing Your Application Chevron down icon Chevron up icon
6. Releasing Your Application Chevron down icon Chevron up icon
7. Managing Team Foundation Server Chevron down icon Chevron up icon
8. Extending and Customizing Team Foundation Server Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(18 Ratings)
5 star 61.1%
4 star 16.7%
3 star 5.6%
2 star 11.1%
1 star 5.6%
Filter icon Filter
Top Reviews

Filter reviews by




Sudheer Feb 01, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Tarun Arora, Big Aaplause to you... you have covered amazing over 80 hands-on DevOps and ALM-focused recipes for Scrum Teams to enable the Continuous Delivery of high-quality Software... am happy that have been associated with this book as a technical reviewer....
Amazon Verified review Amazon
Utkarsh Shigihalli Mar 15, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I recently purchased this book and I am totally impressed with it. This book has been my go-to book for ready to use recipes which help me to quickly read and implement them onto the product. This book has everything on TFS 2015 and is suitable for novice and also advanced users of TFS.As the book cover says there are more than 80 recipes in this book. Each topic has detailed instructions and are supported by many screenshots. Every recipe is nicely divided in to 3 important sections - Getting Ready, How to do it and How it works. "Getting Ready" section explains all the pre-requisites you need, "How to do it" section details the steps to do it and lastly "How it works" explains what happened in the previous step in detail. There are also other sections like "There's more" and "See also" which gives additional information on the topic.Each chapter has numerous recipes, from simple recipes like "connecting to a team project" and goes to some advanced recipes like "analyzing code churn with TFS analysis services".This book has also managed to cover all the aspects of DevOps using TFS 2015, from setting up a team project, to building and releasing with new build and release system, to extending TFS using REST and also recipes to better manage the TFS.I highly recommend this book to anyone practicing DevOps and ALM with TFS, and is looking for step-by-step instructions on how to build, test and deliver the high-quality software using TFS 2015.
Amazon Verified review Amazon
Ravi Vajaria Mar 18, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I recommend this book to anyone working with Team Foundation Server. Tarun has due diligently picked the recipes in that target situations in pretty much every project. For each topic, getting ready, how to do it, how it works and there is more sections are very nicely organized and helped me not finding myself lost in the woods!The paperback is on my desk, helping me find answers to common problems and how-tos. The eBook helps me mulling over the ideas and thoughts while I work out!Thanks Tarun for putting this together. Looking forward to your next publication!
Amazon Verified review Amazon
MB Feb 17, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In this book, Tarun covers every area of TFS from source control management, work item management, testing, and build/release automation to administration. I enjoyed this book because Tarun goes beyond the basics of TFS 2015, digging into advanced topics such as extended TFS with the TFS Object Model and REST API. Tarun also covers more advanced TFS administration (i.e., analyzing and configuring the database-level test retention policies, managing CodeLens, and analyzing log files for diagnose common issues).As a long-time TFS user, having performed countless upgrades from all versions, including Visual Source Safe, I still found hidden gems in this book. I particularly enjoyed the chapters on automated testing integration and build/release vNext. I highly recommend this book to anyone that administers, manages, supports, or uses TFS on a regular basis.
Amazon Verified review Amazon
Sergio A Romero Mar 29, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book, Clear examples with practical applications and examples.It can be used as quick guide book for specific scenarios, or self paced introduction to DevOps practices, The recipes listed in this book are sound practical solutions that can be implemented as best practices in any organization.The books walks you through the setting of your project, managing source code, organizing your work and tracking progress, illustrating features available to the Visual Studio Team Services and TFS on premises.The multiple how to examples helps the more advance users to quickly review and use the new features. It is a excellent guide to get the best use of TFS/VSTS tools.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela