Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

@JimmyPun610
Copy link

Since invalid item id always occurs if the library is beta version, this update allow us bypass the validation so Xamarin.Build.Download will not block the build.

Issue related:
#1293
Invalid item ID image-1.0.0-beta1
Invalid item ID image-1.0.0-beta1

Accept property XamarinBuildDownloadBypassValidation from .csproj to bypass validation on downloading packages by adding these lines in csproj.

<Project>
....
	<Target Name="SetXamarinBuildDownloadBypassValidation" DependsOnTargets="BeforeBuild">
		<PropertyGroup>
			<XamarinBuildDownloadBypassValidation>true</XamarinBuildDownloadBypassValidation>
		</PropertyGroup>
	</Target>
....
</Project>

This will ignore error ErrorCodes.XbdInvalidItemId and download the beta package.

…ypass validation on downloading package. This will ignore ErrorCodes.XbdInvalidItemId.
@net-foundation-cla
Copy link

net-foundation-cla bot commented Jun 2, 2022

CLA assistant check
All CLA requirements met.

@jpobst
Copy link
Contributor

jpobst commented Oct 13, 2022

We expanded the RegEx to allow for prerelease id's so hopefully this isn't needed anymore:
#1384

I'm going to close this, but it can be re-opened in the future if we find a case that would be better solved with a "bypass" like this.

@jpobst jpobst closed this Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants