Support #6072
closed
SaxonCS used package ICU4N.Resources 60.1.0-alpha.402 generates warnings NETSDK1187
Category:
Build and release
Fixed in Maintenance Release:
Description
The SaxonCS (12.2) package uses a package ICU4N.Resources 60.1.0-alpha.402 that for me generates lots of warnings in the form of
1>C:\Program Files\dotnet\sdk\7.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): warning NETSDK1187: Das Paket ICU4N.Resources 60.1.0-alpha.402 verfügt über eine Ressource mit dem gebietsschema-'bm-ML'. Dieses Gebietsschema wurde auf das Standardformat 'bm-Latn-ML' normalisiert, um Groß-/Kleinschreibungsprobleme im Build zu vermeiden. Erwägen Sie, den Paketautor über dieses Groß-/Kleinschreibungsproblem zu benachrichtigen.
basically saying that the region schema name of a used resource has been normalized/standardized and the package author of ICUN should be informed about that change in using lower case/upper case.
Perhaps if there is already a fix to ICU4N you can make sure that next maintenance release of SaxonCS includes that.
I have made inquiries with the ICU4N package maintainer (whom we have worked with closely).
I am trying to update/reimplement some stuff with SaxonCS and .NET 8 but I now find that I in some cases not only I still get those warnings, some projects (MAUI, MAUI Blazor) don't build anymore if SaxonCS is used, giving several errors like the one below
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-HK\ICU4N.resources.dll". Quelldateien:
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-HK\ICU4N.resources.dll
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hant-HK\ICU4N.resources.dll MauiBlazorAppTest1 C:\Users\marti\.nuget\packages\microsoft.windowsappsdk\1.3.230724000\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1500
My translation of that (German) error message: "the resources contain several files with the same target path"
Has anyone else encountered that? Any idea how to resolve it?
I will need to investigate whether that is caused by the latest SaxonCS 12.4 or by the latest .NET 8/MAU or a combination of both.
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-HK\ICU4N.resources.dll". Quelldateien:
C:\Users\marti.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-HK\ICU4N.resources.dll
C:\Users\marti.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hant-HK\ICU4N.resources.dll MauiBlazorAppTest1 C:\Users\marti.nuget\packages\microsoft.windowsappsdk\1.3.230724000\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1500
My translation of that (German) error message: "the resources contain several files with the same
target path"
I have no idea how packaging works in Maui, but those all look like
different files with different paths, so maybe it’s a mapping issue in
some configuration file?
Or perhaps zh-HK and zh-Hant-HK differ in some language feature that
Maui ignores?
I haven’t tried .NET 8 yet, so I can’t make any assertions about whether
or not there’s something in ICU4N that .NET 8 doesn’t like.
Be seeing you,
norm
--
Norm Tovey-Walsh
Saxonica
I am not sure what is wrong, at least on this Windows machine I am currently working I have created a sample .NET 7 MAU app and a sample .NET 8 MAU app and as soon as I add SaxonCS as a NuGet package (I don't even use it in the code) the build fails with errors
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-HK\ICU4N.resources.dll". Quelldateien:
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-HK\ICU4N.resources.dll
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hant-HK\ICU4N.resources.dll MauiNet7SaxonCS12Test1 C:\Users\marti\.nuget\packages\microsoft.windowsappsdk\1.2.221209.1\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1504
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-SG\ICU4N.resources.dll". Quelldateien:
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hans-SG\ICU4N.resources.dll
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-SG\ICU4N.resources.dll MauiNet7SaxonCS12Test1 C:\Users\marti\.nuget\packages\microsoft.windowsappsdk\1.2.221209.1\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1504
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-MO\ICU4N.resources.dll". Quelldateien:
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hant-MO\ICU4N.resources.dll
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-MO\ICU4N.resources.dll MauiNet7SaxonCS12Test1 C:\Users\marti\.nuget\packages\microsoft.windowsappsdk\1.2.221209.1\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1504
Fehler APPX1101 Die Nutzdaten enthalten mehrere Dateien mit dem gleichen Zielpfad "zh-TW\ICU4N.resources.dll". Quelldateien:
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-Hant-TW\ICU4N.resources.dll
C:\Users\marti\.nuget\packages\icu4n.resources\60.1.0-alpha.402\lib\netstandard1.0\zh-TW\ICU4N.resources.dll MauiNet7SaxonCS12Test1 C:\Users\marti\.nuget\packages\microsoft.windowsappsdk\1.2.221209.1\buildTransitive\Microsoft.Build.Msix.Packaging.targets 1504
I might try later this weekend on another Windows machine whether something on this machine is messed up or whether indeed at some stage it looks as if, with SaxonCS and .NET 7 or 8 with MAUI, VS 2022 has stopped being able to build the project.
Some progress as to when things started to fail building, I have created VS 2022 .NET 8 MAUI projects using Saxon 12.4, 12.3, 12.2 and 12.1 and with 12.1 things still build and work, for higher versions I get the above build errors.
There seems to be some small difference in the version number of the referenced ICUN/ICUN.Resources package, perhaps that is enough to break the build.
- Status changed from New to Closed
We are eagerly awaiting a final release of ICU4N, and are in contact with the developer, but meanwhile I don't think any useful purpose is served by keeping this open.
Please register to edit this issue
Also available in: Atom
PDF