I've carefully used this answer to build a .vsix for Visual Studio 2017 Professional such that a certain project with check-in policies is registered and used whenever I check-in some code to TFS.
After the .vsix installation when I open Team Explorer and the Pending Changes page an error appears:
I've opened privateregistry.bin hive with regedit and I couldn't find a similar key with the one which I added for Visual Studio 2010.
.pkgdef file:
[$RootKey$\TeamFoundation\SourceControl\Checkin Policies]
"KeywordExpansionPolicy"="$PackageFolder$\KeywordExpansionPolicy.dll"
.vsixmanifest file:
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="CheckInPolicies.761071af-97b8-4262-a392-35ff1ee54968" Version="1.0" Language="en-US" Publisher="publisher" />
<DisplayName>CheckInPolicies</DisplayName>
<Description xml:space="preserve">Policies: keyword expansion.</Description>
</Metadata>
<Installation>
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[15.0,16.0)" Id="Microsoft.VisualStudio.IntegratedShell" />
</Installation>
<Dependencies>
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="Project" d:ProjectName="KeywordExpansionPolicy" Path="|KeywordExpansionPolicy|" AssemblyName="|KeywordExpansionPolicy;AssemblyName|" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="KeywordExpansion.pkgdef" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
What could possibly go wrong?


