Skip to content

Policy Assemblies failed to load #1352

@pdeiml

Description

@pdeiml

Hello,

I am working with Visual Studio 2019 and in principle git-tfs works as expected.
But as soon as I want to do a rcheckin or checkin I receive the following errors:

[ERROR]: Policy: Internal error in Builds. Error loading the builds policy (The policy assembly 'Microsoft.TeamFoundation.Build.Controls, Version=10.0.0.0, Culture=neutral, Public KeayToken= // Public Key' is not registered.).
Installation instructions:
Note: If the checkin policy fails because the assemblies failed to load, please run the file 'enable_checkin_policies_support.bat` in the git-tfs directory and try again.

Unfortunately, running the .bat has no effect. The error still occurs. Even if I run the disable_checkin_policies_support.bat the error is still there.

A hacky workaround is to force the checkin with the --force option but then in the TFS commit the upper Policy warning is written down with a override warning. This works but is not really nice because in TFS it sounds like I overrode a TFS policy warning that is not an actual TFS ovverride warning.

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