Skip to content

Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' #1873

@ghost

Description

Fresh repo, fresh project, receiving this error when building in AppVeyor:

gitversion /l console /output buildserver /updateAssemblyInfo
INFO [10/28/19 17:31:25:93] Working directory: C:\projects\recibos
INFO [10/28/19 17:31:25:94] IsDynamicGitRepository: False
INFO [10/28/19 17:31:25:97] Returning Project Root from DotGitDirectory: C:\projects\recibos\.git\ - C:\projects\recibos\
INFO [10/28/19 17:31:25:97] Running on Windows.
INFO [10/28/19 17:31:25:97] Applicable build agent found: 'AppVeyor'.
INFO [10/28/19 17:31:25:97] Branch from build environment: master
INFO [10/28/19 17:31:25:98] Begin: Normalizing git directory for branch 'master'
INFO [10/28/19 17:31:26:01] One remote found (origin -> 'https://github.com/joaosantana/recibos.git').
INFO [10/28/19 17:31:26:02] Fetching from remote 'origin' using the following refspecs: +refs/heads/*:refs/remotes/origin/*.
INFO [10/28/19 17:31:26:19] Updating local branch refs/heads/master to match ref master
INFO [10/28/19 17:31:26:23] Creating local branch from remote tracking 'refs/remotes/origin/develop'.
INFO [10/28/19 17:31:26:25] HEAD points at branch 'refs/heads/master'.
INFO [10/28/19 17:31:26:25] End: Normalizing git directory for branch 'master' (Took: 274.59ms)
INFO [10/28/19 17:31:26:25] IsDynamicGitRepository: False
INFO [10/28/19 17:31:26:25] Returning Project Root from DotGitDirectory: C:\projects\recibos\.git\ - C:\projects\recibos\
INFO [10/28/19 17:31:26:25] Project root is: C:\projects\recibos\
INFO [10/28/19 17:31:26:25] DotGit directory is: C:\projects\recibos\.git
INFO [10/28/19 17:31:26:29] IsDynamicGitRepository: False
INFO [10/28/19 17:31:26:29] Returning Project Root from DotGitDirectory: C:\projects\recibos\.git\ - C:\projects\recibos\
INFO [10/28/19 17:31:26:30] Begin: Loading version variables from disk cache
INFO [10/28/19 17:31:26:30] Cache file C:\projects\recibos\.git\gitversion_cache\AD36760B0CBEB73CF54BAFA08A79116F03AC5413.yml not found.
INFO [10/28/19 17:31:26:30] End: Loading version variables from disk cache (Took: 3.93ms)
INFO [10/28/19 17:31:26:30] IsDynamicGitRepository: False
INFO [10/28/19 17:31:26:31] Returning Project Root from DotGitDirectory: C:\projects\recibos\.git\ - C:\projects\recibos\
INFO [10/28/19 17:31:26:46] Using latest commit on specified branch
INFO [10/28/19 17:31:26:48] Running against branch: master (b8b74302b6295f13db412eea5a98d5e4aa831882)
INFO [10/28/19 17:31:26:48] Begin: Calculating base versions
INFO [10/28/19 17:31:26:49] Fallback base version: 0.1.0 with commit count source b8b74302b6295f13db412eea5a98d5e4aa831882 (Incremented: None)
INFO [10/28/19 17:31:26:53] Found multiple base versions which will produce the same SemVer (0.1.0), taking oldest source for commit counting (Fallback base version)
INFO [10/28/19 17:31:26:53] Base version used: Fallback base version: 0.1.0 with commit count source b8b74302b6295f13db412eea5a98d5e4aa831882 (Incremented: None)
INFO [10/28/19 17:31:26:53] End: Calculating base versions (Took: 48.55ms)
INFO [10/28/19 17:31:26:53] Skipping version increment
INFO [10/28/19 17:31:26:53] 0 commits found between b8b74302b6295f13db412eea5a98d5e4aa831882 and b8b74302b6295f13db412eea5a98d5e4aa831882
INFO [10/28/19 17:31:26:53] Begin: Getting version tags from branch 'refs/heads/master'.
INFO [10/28/19 17:31:26:54] End: Getting version tags from branch 'refs/heads/master'. (Took: 4.16ms)
INFO [10/28/19 17:31:26:55] Begin: Creating dictionary
INFO [10/28/19 17:31:26:55] End: Creating dictionary (Took: 7.12ms)
INFO [10/28/19 17:31:26:56] Begin: Storing version variables to cache file C:\projects\recibos\.git\gitversion_cache\AD36760B0CBEB73CF54BAFA08A79116F03AC5413.yml
INFO [10/28/19 17:31:26:63] End: Storing version variables to cache file C:\projects\recibos\.git\gitversion_cache\AD36760B0CBEB73CF54BAFA08A79116F03AC5413.yml (Took: 71.02ms)
INFO [10/28/19 17:31:26:63] Applicable build agent found: 'AppVeyor'.
Executing GenerateSetVersionMessage for 'AppVeyor'.
Set AppVeyor build number to '0.1.0-stable.1+0'.
Executing GenerateBuildLogOutput for 'AppVeyor'.
gitversion :   ERROR [10/28/19 17:31:27:84] An unexpected error occurred:
At line:1 char:1
+ gitversion /l console /output buildserver /updateAssemblyInfo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (  ERROR [10/28/...error occurred::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
System.TypeLoadException: Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' from assembly 'System.Net.WebHeaderCollection, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f
5f7f11d50a3a'.
   at GitVersion.BuildServers.AppVeyor.GenerateSetParameterMessage(String name, String value)
   at GitVersion.OutputFormatters.BuildOutputFormatter.GenerateBuildLogOutput(IBuildServer buildServer, VersionVariables variables)
   at GitVersion.BuildServerBase.WriteIntegration(Action`1 writer, VersionVariables variables)
   at GitVersion.ExecCommand.Execute()
   at GitVersion.GitVersionExecutor.VerifyArgumentsAndRun(Arguments arguments)
INFO [10/28/19 17:31:27:84] 
INFO [10/28/19 17:31:27:84] Attempting to show the current git graph (please include in issue): 
INFO [10/28/19 17:31:27:84] Showing max of 100 commits
INFO [10/28/19 17:31:28:00] * b8b7430 2 minutes ago  (HEAD -> master, origin/master, origin/develop, origin/HEAD, develop)

My GitVersion.yml file:

mode: ContinuousDelivery
branches:
  develop:
    tag: dev
  feature:
    tag: feat
  hotfix:
    tag: fix
  master:
    tag: stable
  release:
    tag: rc
  pull-request:
    tag: pr
  support:
    tag: support
ignore:
  sha: []
merge-message-formats: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions