Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Conversation

@jonathanpeppers
Copy link
Member

Context: dotnet/android#7837
Context: #46

I ended up making this change in xamarin-android to avoid a potential issue in all .NET projects, so bringing it here as well.

In cases where the android workload is not installed, Xamarin.Legacy.Sdk can accidentally wildcard your entire disk:

MSBUILD : warning MSB5029: The value “\**\.*\**” of the “Exclude” attribute in element <ItemGroup> in file “/Users/moljac/.nuget/packages/xamarin.legacy.sdk/0.2.0-alpha2/Sdk/AutoImport.Android.props (26,61)” is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.

Add checks that $(MonoAndroidAssetsPrefix) and
$(MonoAndroidResourcePrefix) are not blank.

Context: dotnet/android#7837
Context: #46

I ended up making this change in xamarin-android to avoid a potential
issue in all .NET projects, so bringing it here as well.

In cases where the `android` workload is not installed,
Xamarin.Legacy.Sdk can accidentally wildcard your entire disk:

    MSBUILD : warning MSB5029: The value “\**\.*\**” of the “Exclude” attribute in element <ItemGroup> in file “/Users/moljac/.nuget/packages/xamarin.legacy.sdk/0.2.0-alpha2/Sdk/AutoImport.Android.props (26,61)” is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.

Add checks that `$(MonoAndroidAssetsPrefix)` and
`$(MonoAndroidResourcePrefix)` are not blank.
Copy link

@moljac moljac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

and sorry for other PR.

@jonathanpeppers jonathanpeppers merged commit 3489d96 into main Mar 6, 2023
@jonathanpeppers jonathanpeppers deleted the AutoImport.props branch March 6, 2023 15:04
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.

3 participants