Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Add workaround for Xamarin.Android 9.4
Browse files Browse the repository at this point in the history
When building a .nuproj project that referenced a Xamarin.Android
project _GetReferencedPackageContents would fail when
Xamarin.Android 9.4 was installed with the error:

    The "FilterAssemblies" task was not given a value for the required
    parameter "DesignTimeBuild".

To workaround this the DesignTimeBuild property is set to false
when GetPackageContents is called for each project.
  • Loading branch information
mrward authored and kzu committed Nov 7, 2019
1 parent 88f9e4b commit 133ccf9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,13 @@ Copyright (c) .NET Foundation. All rights reserved.
current project.
-->

<!--
Workaround for Xamarin.Android 9.4 requires DesignTimeBuild to be set for its FilterAssemblies target
-->
<MSBuild Projects="@(_NuGetizedProjectReference)"
Targets="GetPackageContents"
BuildInParallel="$(BuildInParallel)"
Properties="%(_NuGetizedProjectReference.SetConfiguration); %(_NuGetizedProjectReference.SetPlatform); BuildingPackage=$(BuildingPackage)"
Properties="%(_NuGetizedProjectReference.SetConfiguration); %(_NuGetizedProjectReference.SetPlatform); BuildingPackage=$(BuildingPackage); DesignTimeBuild=false"
Condition="'@(ProjectReferenceWithConfiguration)' != '' and '@(_NuGetizedProjectReference)' != ''"
RemoveProperties="%(_NuGetizedProjectReference.GlobalPropertiesToRemove)">
<Output TaskParameter="TargetOutputs" ItemName="_ReferencedPackageContent" />
Expand Down

0 comments on commit 133ccf9

Please sign in to comment.