NightOwl888 / ICU4N

International Components for Unicode for .NET
Apache License 2.0
26 stars 7 forks source link

Use official buildTransitive NuGet support #44

Closed NightOwl888 closed 1 year ago

NightOwl888 commented 1 year ago

This changes from a viral copy of the ICU4N.targets file to putting the file in the buildTransitive folder within the NuGet package. The feature can be disabled by excluding the feature from the ICU4N PackageReference.

<ItemGroup>
    <PackageReference Include="ICU4N" Version="60.1.0-alpha.401" ExcludeAssets="buildTransitive" />
</ItemGroup>

It would be best to allow the end consumer to be able to override this, but for now the best advice is to only exclude resources in the executable application that deploys them as files until we build more automation into the build process to pack custom resources. For all intermediate class libraries, it is best to leave the default settings.