Skip to content

Commit

Permalink
Fix globbing for netX.Y
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Oct 23, 2023
1 parent 3f9ed89 commit 7c119a3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<Compile Update="**\*.windows*$(DefaultLanguageSourceExtension)">
<ExcludeFromCurrentConfiguration>true</ExcludeFromCurrentConfiguration>
</Compile>
<Compile Update="**\*.net*$(DefaultLanguageSourceExtension)">
<ExcludeFromCurrentConfiguration>true</ExcludeFromCurrentConfiguration>
</Compile>

<Compile Condition=" '$(TargetPlatformIdentifier)' == 'ios' " Update="*\*.ios*$(DefaultLanguageSourceExtension)">
<ExcludeFromCurrentConfiguration>False</ExcludeFromCurrentConfiguration>
Expand All @@ -70,24 +73,20 @@
<Compile Condition=" '$(TargetPlatformIdentifier)' == 'tizen' " Update="**\*.tizen*$(DefaultLanguageSourceExtension)">
<ExcludeFromCurrentConfiguration>False</ExcludeFromCurrentConfiguration>
</Compile>
<Compile Condition=" '$(TargetPlatformIdentifier)' == '' " Update="**\*.net*$(DefaultLanguageSourceExtension)">
<ExcludeFromCurrentConfiguration>False</ExcludeFromCurrentConfiguration>
</Compile>

</ItemGroup>

<!-- .NET -->
<ItemGroup Condition="!($(TargetFramework.StartsWith('net')) == true AND $(TargetFramework.EndsWith('.0')) == true AND $(TargetFramework.Contains('-')) != true)">
<!-- e.g net6.0 or net7.0 -->
<Compile Remove="**\Net\**\*.cs" />
<None Include="**\Net\**\*.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>


<Target Name="_MauiRemovePlatformFileNamePatternCompileItems" BeforeTargets="_MauiRemovePlatformCompileItems">
<ItemGroup>
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.ios*$(DefaultLanguageSourceExtension)" />
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.maccatalyst*$(DefaultLanguageSourceExtension)" />
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.android*$(DefaultLanguageSourceExtension)" />
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.windows*$(DefaultLanguageSourceExtension)" />
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.tizen*$(DefaultLanguageSourceExtension)" />
<Compile Condition=" '%(Compile.ExcludeFromCurrentConfiguration)' == 'true' " Remove="**\*.net*$(DefaultLanguageSourceExtension)" />
</ItemGroup>
</Target>
</Project>

0 comments on commit 7c119a3

Please sign in to comment.