You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ubuntu image is not built with required ICU packages needed for dotnet build:
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
Dev teams can set whether invariant is set to 0 or 1. If '0' and running on linux machine, it needs to install libicu-dev. The output of said steps is:
/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/Exceptions/MyClasses.cs(35,13): warning SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051) [/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/MyProject.csproj]
MyProject -> /agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/bin/release/net8.0/MyProject.dll
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef)
at System.Resources.ResourceManager.CommonAssemblyInit()
at System.Resources.ResourceManager..ctor(System.Type)
at System.SR.get_ResourceManager()
at System.SR.GetResourceString(System.String, System.String)
at System.SR.get_XmlConvert_BadUri()
at System.Xml.XmlReaderSettings.CreateReader(System.String, System.Xml.XmlParserContext)
at System.Xml.XmlReader.Create(System.String, System.Xml.XmlReaderSettings, System.Xml.XmlParserContext)
at System.Xml.XmlReader.Create(System.String, System.Xml.XmlReaderSettings)
at System.Xml.Linq.XDocument.Load(System.String, System.Xml.Linq.LoadOptions)
at System.Xml.Linq.XDocument.Load(System.String)
at Vsxmd.Program.Main(System.String[])
Aborted (core dumped)
##[error]/home/AzDevOps/.nuget/packages/vsxmd/1.4.5/build/Vsxmd.targets(17,5): Error MSB3073: The command ""/home/AzDevOps/.nuget/packages/vsxmd/1.4.5/build//../tools/linux-x64/Vsxmd" "" "" "True"" exited with code 134.
/home/AzDevOps/.nuget/packages/vsxmd/1.4.5/build/Vsxmd.targets(17,5): error MSB3073: The command ""/home/AzDevOps/.nuget/packages/vsxmd/1.4.5/build//../tools/linux-x64/Vsxmd" "" "" "True"" exited with code 134. [/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/MyProject.csproj]
Build FAILED.
/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/Entities/ReinsuranceResult.cs(46,53): warning CS8618: Non-nullable property 'Claim' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/MyProject.csproj]
/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/Exceptions/MyClasses.cs(35,13): warning SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051) [/agent/_work/4/s/SourceCodeRepo/src/Services/MyProject/MyProject.csproj]
Platforms affected
Azure DevOps
GitHub Actions - Standard Runners
GitHub Actions - Larger Runners
Runner images affected
Ubuntu 20.04
Ubuntu 22.04
Ubuntu 24.04
macOS 12
macOS 13
macOS 13 Arm64
macOS 14
macOS 14 Arm64
macOS 15
macOS 15 Arm64
Windows Server 2019
Windows Server 2022
Windows Server 2025
Image version and build link
Current agent version: '3.236.0'
Current image version: '1.0.3'
This image is using the March Build of the Ubuntu OS.
Is it regression?
N/A
Expected behavior
It should be able to build with Globalization using ICU on Ubuntu
Actual behavior
Fails due to missing packages
Repro steps
Run build with ICU install when DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
The text was updated successfully, but these errors were encountered:
I have the same issue with my latest build. Here's solution I tried:
Add a step to install the libicu-dev package. Build still failed
- name: Install ICU library # Ensure ICU is available
run: sudo apt-get update && sudo apt-get install -y libicu-dev
Fixed ubuntu version back to 20.04. Build succeed.
I do suspect the recent update altered the default installed packages or runtime configurations, the ICU library might no longer be pre-installed or expected by default. If anyone has an idea, feel free to share, it'll be helpful
Description
Ubuntu image is not built with required ICU packages needed for dotnet build:
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
Setting environment variable to:
$export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
is not viable as dev requires globalization.
Per the recommendation of:
https://github.com/actions/runner-images/issues/10989
But still having an issue. My Pipeline YAML is running this:
Dev teams can set whether invariant is set to 0 or 1. If '0' and running on linux machine, it needs to install libicu-dev. The output of said steps is:
but then still fails with:
Platforms affected
Runner images affected
Image version and build link
Current agent version: '3.236.0'
Current image version: '1.0.3'
This image is using the March Build of the Ubuntu OS.
Is it regression?
N/A
Expected behavior
It should be able to build with Globalization using ICU on Ubuntu
Actual behavior
Fails due to missing packages
Repro steps
Run build with ICU install when DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
The text was updated successfully, but these errors were encountered: