Hi All,
We have recently migrated our code base from .Net 4.0 to .Net 4.7 where we were earlier using MSBuild Extension Pack 4.0.7 and running the stylecop on all the solutions using MSBuild.ExtensionPack.CodeQuality.StyleCop "Scan" action and it was running successfully.
After migration when we ran the same action we got an error as Missing Method Exception - method not found "ctor". After performing some searches we found that we need to update our StyleCop version.
We took the latest MSBuildExtensionPack 4.15 but it was throwing error - "Failed to add file". We looked into the MSBuild.ExtensionPack.StyleCop dll and it was referring to StyleCop v4.0 dll, we modified it to v5.0 but still it is throwing the same error.
Are we missing something during upgrade? We took the latest StyleCop Nuget package and install it in TFS and it's working fine as plug in but not via MSBuild.
Thanks in advance.