[create-vsix] Improve compatibility with commercial .vsix #605
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reduce the number of differences between the
.vsixfile we build andthe
Xamarin.Android.Sdk*.vsixfile which is provided commercially:The
$(VsixVersion)wasn't a valid version value; it was e.g.7.3.99.(note trailing.). This was caused by611bb66, which removed
$(_XACommitCount), replacing it with`$(XAVersionCommitCount).
Default to
$(IsProductComponent)=True, and separate its logic from$(IsExperimental).$(IsProductComponent)alters the value ofthe
packages[0].idvalue withincatalog.json: when$(IsProductComponent)is False,packages[0].id *starts with*Component, e.g.Component.Xamarin.Android.Sdk`, which is wrong.I'm still not sure why
$(IsProductComponent)and$(IsExperimental)were previously tied together as they were.Set
$(ExtensionInstallationFolder)so that thepackages[0].extensionDirvalue withincatalog.jsondoesn'tcontain a random filename. Previously, it would be e.g.:
Setting
$(ExtensionInstallationFolder)allows this to instead be:TODO/Note: I suspect that the
Microsoft.VSSDK.BuildToolscodewhich creates
extensionDiris usingPath.Combine(), becausewe're getting a
.../Xamarin.Android.Sdkvalue (/is used).The existing commercial package uses
\\consistently.I don't know if this will be a problem.
Set
%(Content.IncludeInVSIX)=True forAndroidSdkPackage.ico, sothat it is included in the
.vsixfile.Create the files
bin\$(Configuration)\lib\xbuild\Xamarin\Android\Version.txtandbin\$(Configuration)\lib\mandroid\MULTIDEX_JAR_LICENSE.txtto work around Bug #54804 so that we have some form of
Version*andMULTIDEX_JAR_LICENSEfile within the.vsix.Review the
@(MSBuild)items. Apparently this construct:doesn't behave as intended:
host-mxe-Win64is not added to the.vsix; the preceding%(MSBuild.Remove)takes precedence.Instead of removing "all bad" then adding the desired values, just
remove the the undesirable values. (This means we might miss some,
but at least this way we keep the values we want!)