diff --git a/docs/usage/msbuild-task.md b/docs/usage/msbuild-task.md
index bdb35c2502..18921d7ff7 100644
--- a/docs/usage/msbuild-task.md
+++ b/docs/usage/msbuild-task.md
@@ -88,6 +88,20 @@ Task Name: `GitVersionTask.WriteVersionInfoToBuildLog`
If, at build time, it is detected that the build is occurring inside a Build Server server then the [variables](more-info/variables.md) will be written to the build log in a format that the current Build Server can consume. See [Build Server Support](build-server-support.md).
+## Conditional control tasks
+
+Properties `WriteVersionInfoToBuildLog`, `UpdateAssemblyInfo` and `GetVersion` are checked before running these tasks.
+
+If you, eg., want to disable `GitVersionTask.UpdateAssemblyInfo` just define `UpdateAssemblyInfo` to something other than `true` in your MSBuild script, like this:
+
+```
+
+ ...
+ false
+ ...
+
+```
+
## My Git repository requires authentication. What do I do?
Set the environmental variables `GITVERSION_REMOTE_USERNAME` and `GITVERSION_REMOTE_PASSWORD` before the build is initiated.
\ No newline at end of file
diff --git a/src/GitVersionCore.Tests/VersionCalculation/Strategies/VersionInBranchBaseVersionStrategyTests.cs b/src/GitVersionCore.Tests/VersionCalculation/Strategies/VersionInBranchBaseVersionStrategyTests.cs
index 4ccd31f861..7625e5f558 100644
--- a/src/GitVersionCore.Tests/VersionCalculation/Strategies/VersionInBranchBaseVersionStrategyTests.cs
+++ b/src/GitVersionCore.Tests/VersionCalculation/Strategies/VersionInBranchBaseVersionStrategyTests.cs
@@ -15,7 +15,6 @@ public class VersionInBranchBaseVersionStrategyTests
[TestCase("release/2.0.0", "2.0.0")]
[TestCase("hotfix-2.0.0", "2.0.0")]
[TestCase("hotfix/2.0.0", "2.0.0")]
- [TestCase("hotfix/2.0.0", "2.0.0")]
[TestCase("custom/JIRA-123", null)]
public void CanTakeVersionFromBranchName(string branchName, string expectedBaseVersion)
{
diff --git a/src/GitVersionTask/NugetAssets/GitVersionTask.targets b/src/GitVersionTask/NugetAssets/GitVersionTask.targets
index fe61029dcd..f70d77f3ef 100644
--- a/src/GitVersionTask/NugetAssets/GitVersionTask.targets
+++ b/src/GitVersionTask/NugetAssets/GitVersionTask.targets
@@ -1,34 +1,43 @@
- $(MSBuildProjectDirectory)..\
- $(MSBuildProjectDirectory)obj\$(Configuration)\
+ $(MSBuildProjectDirectory)\..\
+ $(MSBuildProjectDirectory)\obj\$(Configuration)\
false
+
+
+ true
+
+
+ true
+
+
+ true
+
-
-
-
+
+
+
+
+
+ SolutionDirectory="$(SolutionDir)"
+ NoFetch="$(GitVersion_NoFetchEnabled)"
+ ProjectFile="$(MSBuildProjectFullPath)"
+ IntermediateOutputPath="$(IntermediateOutputPath)"
+ RootNamespace="$(RootNamespace)"
+ CompileFiles ="@(Compile)">
@@ -37,7 +46,9 @@
-
+
+
+