Skip to content

Take into account xamarin.*.csharp.targets when finding location … - #2460

Merged
forki merged 1 commit into
fsprojects:masterfrom
dmunch:dmunch-xamarin-csharp-targets-insert-spot
Jun 25, 2017
Merged

forki merged 1 commit into
fsprojects:masterfrom
dmunch:dmunch-xamarin-csharp-targets-insert-spot

Conversation

@dmunch

@dmunch dmunch commented Jun 23, 2017

Copy link
Copy Markdown
Contributor

… for inserting framework specific props/targets.

E.g. the following NuGet packages generate target framework specific properties.

framework: monoandroid70

source https://nuget.org/api/v2

nuget Xamarin.Android.Support.v4 == 25.3.1
nuget Xamarin.Android.Support.v7.RecyclerView == 25.3.1
nuget Xamarin.Android.Support.Design == 25.3.1
nuget Xamarin.Android.Support.v7.CardView == 25.3.1
<Choose>
    <When Condition="$(TargetFrameworkIdentifier) == 'MonoAndroid' And ($(TargetFrameworkVersion) == 'v1.0' Or $(TargetFrameworkVersion) == 'v2.2' Or $(TargetFrameworkVersion) == 'v2.3' Or $(TargetFrameworkVersion) == 'v4.0.3' Or $(TargetFrameworkVersion) == 'v4.1' Or $(TargetFrameworkVersion) == 'v4.2' Or $(TargetFrameworkVersion) == 'v4.3' Or $(TargetFrameworkVersion) == 'v4.4' Or $(TargetFrameworkVersion) == 'v4.4W' Or $(TargetFrameworkVersion) == 'v5.0' Or $(TargetFrameworkVersion) == 'v5.1' Or $(TargetFrameworkVersion) == 'v6.0' Or $(TargetFrameworkVersion) == 'v7.0' Or $(TargetFrameworkVersion) == 'v7.1')">
      <PropertyGroup

If not placed after the import of Xamarin.Android.CSharp.targets those properties won't be defined resulting in a broken build.

Not quite sure if or where to add tests for those, any hints appreciated!

…take into account xamarin.*.csharp.targets as well.
@matthid

matthid commented Jun 24, 2017

Copy link
Copy Markdown
Member

Is there a more general solution to this problem? I don't think it is good to list the world here...

@forki
forki merged commit 422d2ee into fsprojects:master Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants