In case anyone is interested, I've come up with a workaround to get the maxversion attribute to be automatically packaged in the manifest file inside the .sdlplugin file built in plugin projects in Visual Studio. As of right now, it doesn't seem that the build task of the SDK adds this attribute in, even when it has been added in the manifest file in the project. To get around this and avoid having to open the plugin with 7-Zip and manually edit the manifest by hand, I've made custom MSBuild task to do it. For more info, I describe all the steps here.