Project

Profile

Help

Support #6072

open

SaxonCS used package ICU4N.Resources 60.1.0-alpha.402 generates warnings NETSDK1187

Added by Martin Honnen 11 months ago. Updated 4 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Build and release
Sprint/Milestone:
-
Start date:
2023-06-11
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
.NET

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.

Actions #1

Updated by Michael Kay 11 months ago

I have made inquiries with the ICU4N package maintainer (whom we have worked with closely).

Actions #2

Updated by Martin Honnen 4 months ago

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.

Actions #3

Updated by Norm Tovey-Walsh 4 months ago

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

Actions #4

Updated by Martin Honnen 4 months ago

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.

Actions #5

Updated by Martin Honnen 4 months ago

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.

Actions #6

Updated by Michael Kay 4 months ago

I see you're getting responses at https://github.com/NightOwl888/ICU4N/issues/65 so let's see how that progresses.

Please register to edit this issue

Also available in: Atom PDF