Error 1 The "GitVersionFile" task failed unexpectedly

Apr 28, 2012 at 9:15 PM

Hi,

I have the following Error when building with GIT:

Error 1 The "GitVersionFile" task failed unexpectedly.System.InvalidOperationException: Nullable object must have a value.   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)   at System.Nullable`1.get_Value()   at MSBuildVersioning.GitInfoProvider.GetRevisionNumber()   at MSBuildVersioning.GitVersionTokenReplacer.<>c__DisplayClasse.<.ctor>b__0()   at MSBuildVersioning.VersionTokenReplacer.NoArgsToken.Replace(String str)   at MSBuildVersioning.VersionTokenReplacer.Replace(String content)   at MSBuildVersioning.VersionFile.Execute()   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:\develop\proj.csproj 633 5 PROJ

 

Does anyone have a fix?


Thanks,

Eyal