Sitelet https://github.com/fsprojects/Paket/issues/3528
Skip to content

FormatException: Unrecognized Guid format. #3528

Description

@sigiesec

Description

When running paket update, I get a FormatException. Paket version is 5.198.0

Expected behavior

Paket update succeeds.

Actual behavior

Paket fails with the following output (with --verbose):

 - Installing for projects
   - paket.references -> [...].csproj
Installing to [...].csproj with ToolsVersion 4
    - Deleting Paket Reference nodes
Performance:
 - Resolver: 5 seconds (1 runs)
    - Runtime: 196 milliseconds
    - Blocked (retrieving package details): 196 milliseconds (3 times)
    - Blocked (retrieving package versions): 5 seconds (2 times)
    - Not Blocked (retrieving package versions): 1 times
 - Disk IO: 4 milliseconds
 - Average Request Time: 722 milliseconds
 - Number of Requests: 6
 - Runtime: 6 seconds
Paket failed with
-> FormatException: Unbekanntes Guid-Format.
   StackTrace:
        bei System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
        bei System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
        bei System.Guid.Parse(String input)
        bei Paket.ProjectFileModule.makePathNode@1380(ProjectFile project, XmlNode node, Boolean referenceOutputAssembly, String path)
        bei Paket.ProjectFileModule.getInterProjectDependencies@1362.GenerateNext(IEnumerable`1& next)
        bei Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
        bei Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
        bei Paket.InstallProcess.dependencies@235-10[a](GroupName groupName, FSharpFunc`2 findDependencies, Dictionary`2 projectCache, Dictionary`2 dependencyGraph, Dictionary`2 referenceFiles, ProjectFile projectFile)
        bei Paket.InstallProcess.applyBindingRedirects@264-8.Invoke(ProjectFile projectFile)
        bei Paket.BindingRedirects.applyBindingRedirects@183-6[a](Boolean isFirstGroup, Boolean createNewBindingFiles, Boolean cleanBindingRedirects, IEnumerable`1 allKnownLibNames, FSharpFunc`2 bindingRedirects, ProjectFile projectFile)
        bei Paket.BindingRedirects.applyBindingRedirectsToFolder[a](Boolean isFirstGroup, Boolean createNewBindingFiles, Boolean cleanBindingRedirects, String rootPath, IEnumerable`1 allKnownLibNames, FSharpFunc`2 bindingRedirects)
        bei Paket.InstallProcess.InstallIntoProjects[a](InstallerOptions options, Boolean forceTouch, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList`1 projectsAndReferences, FSharpMap`2 updatedGroups)
        bei Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
        bei <StartupCode$Paket-Core>.$PublicAPI.Update@321.Invoke(Unit unitVar0)

        bei Paket.Utils.RunInLockedAccessMode[a](String lockedFolder, FSharpFunc`2 action)
        bei Paket.Program.handleCommand@841-16.Invoke(ParseResults`1 results)
        bei Paket.Program.processWithValidationEx$cont@42[a](Boolean silent, FSharpFunc`2 commandF, a result, Unit unitVar)
        bei Paket.Program.processWithValidation[T](Boolean silent, FSharpFunc`2 validateF, FSharpFunc`2 commandF, ParseResults`1 result)
        bei Paket.Program.handleCommand(Boolean silent, Command command)
        bei Paket.Program.main()

In english, the exception message is "Unrecognized Guid format."

I suspect that this refers to a Guid specified in some .csproj file, but there is not enough information to identify the offending file/location. There are more .csproj files than the one mentioned above, and at least in the mentioned one the only Guid entry is

    <ProjectGuid>{29C06D6C-678D-4354-A64A-FE33C6DA974A}</ProjectGuid>

which does not look suspicious.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions