Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

[BUG] Cannot build fresh OpenXML-SDK

Open chacha21 opened this issue 1 year ago • 7 comments

I try to build OpenXML-SDK with the latest Visual Studio 2022 (community) (17.8.6)

  • I git checkout the tag
  • I open the *.sln
  • I try to build the solution

My observations :

tag 2.7.2

  • works like a charm

tag 2.8.1

  • Warning about Nuget vulnerabilities of some packages
  • build fails with "The "GetAssemblyVersion" task has not been assigned a value for the required "NuGetVersion" parameter" (translated from french)

tag 2.9.1

  • Warning about Nuget vulnerabilities of some packages
  • build fails with "The "GetAssemblyVersion" task has not been assigned a value for the required "NuGetVersion" parameter" (translated from french)

tag 3.0.0

  • "Unable to resolve .NET SDK version as specified in global.json file" : => I had to install dotnet-sdk-7.0.201-win-x64
  • Warning The "OpenXmlGenerator" failed to generate the source. This will not contribute to the output and compilation errors may result. The exception was of type "FormatException" with the message "The format of the input string is incorrect". DocumentFormat.OpenXml (net7.0) D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\CSC
  • multiple errors of code compile refering to missing methods (because of missing assembly)

tag 3.0.1

  • same as tag 3.0.0

What is happening to that project ? There must be some broken automated action or wrong assumption about the host build machine.

chacha21 avatar Feb 02 '24 09:02 chacha21

@twsouthwick, can you please take a look at the 3.0.0 issues?

AlfredHellstern avatar Feb 06 '24 19:02 AlfredHellstern

We regularly update to the latest SDK, so if you're jumping between versions, you'll potentially hit issues with different versions. Generally main expects latest SDK and VS fairly aggresively.

"Unable to resolve .NET SDK version as specified in global.json file" : => I had to install dotnet-sdk-7.0.201-win-x64 Warning The "OpenXmlGenerator" failed to generate the source. This will not contribute to the output and compilation errors may result. The exception was of type "FormatException" with the message "The format of the input string is incorrect". DocumentFormat.OpenXml (net7.0) D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\CSC multiple errors of code compile refering to missing methods (because of missing assembly)

This tells me you don't have the correct dotnet CLI. Can you run `dotnet --list-sdks"? v3.0.0 was built with the .net 7 sdk, while v3.0.1 (and main) uses .net 8.

twsouthwick avatar Feb 06 '24 20:02 twsouthwick

PM> dotnet --list-sdks 7.0.201 [C:\Program Files\dotnet\sdk] 8.0.101 [C:\Program Files\dotnet\sdk]

chacha21 avatar Feb 07 '24 08:02 chacha21

I'm not sure why you're having issues. CI is building fine and I've had no issue with mine.

We do use a c# code generator (where your error is arising) - sometimes you have to restart VS to get it to work properly.

twsouthwick avatar Feb 27 '24 20:02 twsouthwick

do you have details on this:

Warning The "OpenXmlGenerator" failed to generate the source. This will not contribute to the output and compilation errors may result. The exception was of type "FormatException" with the message "The format of the input string is incorrect". DocumentFormat.OpenXml (net7.0) D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\CSC

twsouthwick avatar Feb 28 '24 00:02 twsouthwick

@twsouthwick Here is the build log with "diagnostics" verbosity level. Could it be a parse error on my French system because the current locale is using a "comma" as a decimal point separator ? openxmlsdk-3_0_1-build.log

chacha21 avatar Feb 28 '24 12:02 chacha21

Hmm maybe. Can you set DocumentFormat.OpenXml.Generator as the startup project in VS and F5 it? That'll run the code generator under the debugger and should hopefully break for you when you hit the issue.

twsouthwick avatar Feb 28 '24 22:02 twsouthwick

Hmm maybe. Can you set DocumentFormat.OpenXml.Generator as the startup project in VS and F5 it? That'll run the code generator under the debugger and should hopefully break for you when you hit the issue.

It cannot be run.

dotnet-openxml-sdk

chacha21 avatar Mar 04 '24 08:03 chacha21

oh you need to install the ".NET Compiler Platform SDK" to be able to run it: https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/syntax-visualizer?tabs=csharp

twsouthwick avatar Mar 04 '24 18:03 twsouthwick

Ok some progress :

  • installing the ".NET Compiler Platform SDK" works and DocumentFormat.OpenXml.Generator can be run
  • when running DocumentFormat.OpenXml.Generator an exception is raised in Schematron1_3.cs:73 because double.Parse(input.ToString()) has an incorrect input string
  • as I guessed this is a decimal point problem on a French system. Using double.Parse(input.ToString(), System.Globalization.CultureInfo.InvariantCulture); will fix it
  • after the fix DocumentFormat.OpenXml.Generator runs and completes flawlessly
  • however, the whole project still has errors (see below)

dotnet-openxml-sdk

Génération démarrée à 11:15...
[snap]
3>FastUpToDate: Le projet est à jour. (DocumentFormat.OpenXml.Framework)
3>FastUpToDate: Vérification à jour effectuée en 9,1 ms (DocumentFormat.OpenXml.Framework)
4>FastUpToDate: Vérification de la configuration Debug|AnyCPU|netstandard2.0 : (DocumentFormat.OpenXml)
4>FastUpToDate:     L’accélération de build est activée pour ce projet via la propriété MSBuild « AccelerateBuildsInVisualStudio ». Voir https://aka.ms/vs-build-acceleration. (DocumentFormat.OpenXml)
4>FastUpToDate: La vérification à jour n’a pas encore été exécutée pour ce projet. Pas à jour. (DocumentFormat.OpenXml)
4>FastUpToDate: Ce projet a activé l’accélération de build, mais tous les projets référencés ne produisent pas un assembly de référence. Vérifiez que la propriété MSBuild « ProduceReferenceAssembly » des projets produisant les sorties suivantes a la valeur « true » : 'D:\Open-XML-SDK\3.0.1\bin\Debug\DocumentFormat.OpenXml.Framework\netstandard2.0\DocumentFormat.OpenXml.Framework.dll'. Pour plus d’informations, consultez https://aka.ms/vs-build-acceleration. (DocumentFormat.OpenXml)
4>FastUpToDate: Vérification à jour effectuée en 0,3 ms (DocumentFormat.OpenXml)
4>------ Début de la génération : Projet : DocumentFormat.OpenXml, Configuration : Debug Any CPU ------
4>La génération a démarré 05/03/2024 11:15:25.
4>DispatchToInnerBuilds cible :
4>  _GetProjectReferenceTargetFrameworkProperties cible :
4>    IncludeTargetingPackReference cible :
4>    _CheckForObsoleteDotNetCliToolReferences cible :
4>      CollectPackageReferences cible :
4>        GetReferenceAssemblyPaths cible :
4>    _ComputeToolPackInputsToProcessFrameworkReferences cible :
4>      BuildOnlySettings cible :
4>        _DefaultMicrosoftNETPlatformLibrary cible :
4>          _CheckForUnsupportedHostingUsage cible :
4>            _GetProjectReferenceTargetFrameworkProperties cible :
4>              GetTargetFrameworksWithPlatformForSingleTargetFramework cible :
4>                GetTargetFrameworksWithPlatformForSingleTargetFramework cible :
4>              GetTargetFrameworksWithPlatformForSingleTargetFramework cible :
4>    ResolveProjectReferences cible :
4>      ValidateExecutableReferences cible :
4>        ResolveProjectReferences cible :
4>          ResolveProjectReferences cible :
4>            GetTargetPath cible :
4>      ExpandSDKReferences cible :
4>        ExpandSDKReferences cible :
4>      _HandlePackageFileConflicts cible :
4>        _HandlePackageFileConflicts cible :
4>          ResolveAssemblyReferences cible :
4>      PrepareResourceNames cible :
4>        GenerateTargetFrameworkMonikerAttribute cible :
4>          La cible est ignorée "GenerateTargetFrameworkMonikerAttribute", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>        CreateGeneratedAssemblyInfoInputsCacheFile cible :
4>          CoreGenerateAssemblyInfo cible :
4>            La cible est ignorée "CoreGenerateAssemblyInfo", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>        CoreGenerateAssemblyInfo cible :
4>          BeforeCompile cible :
4>            La cible est ignorée "CoreGenerateAssemblyInfo", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>      SetEmbeddedFilesFromSourceControlManagerUntrackedFiles cible :
4>        GenerateMSBuildEditorConfigFile cible :
4>          GenerateTargetFrameworkMonikerAttribute cible :
4>            La cible est ignorée "GenerateTargetFrameworkMonikerAttribute", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>    _InitializeGitHubSourceLinkUrl cible :
4>      _GenerateSourceLinkFile cible :
4>        GetAssemblyAttributes cible :
4>          Le fichier 'D:\Open-XML-SDK\3.0.1\obj\DocumentFormat.OpenXml\Debug\net35\DocumentFormat.OpenXml.sourcelink.json' de Source Link est à jour.
4>      CoreGenerateAssemblyInfo cible :
4>        GenerateMSBuildEditorConfigFileShouldRun cible :
4>          _InitializeGitHubSourceLinkUrl cible :
4>            La cible est ignorée "CoreGenerateAssemblyInfo", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>      _ReportUpgradeNetAnalyzersNuGetWarning cible :
4>        CoreCompile cible :
4>          _GenerateCompileDependencyCache cible :
4>            Le fichier 'D:\Open-XML-SDK\3.0.1\obj\DocumentFormat.OpenXml\Debug\net46\DocumentFormat.OpenXml.sourcelink.json' de Source Link est à jour.
4>        CreateCompilerGeneratedFilesOutputPath cible :
4>          GenerateTargetFrameworkMonikerAttribute cible :
4>            La cible est ignorée "GenerateTargetFrameworkMonikerAttribute", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>          GenerateTargetFrameworkMonikerAttribute cible :
4>            La cible est ignorée "GenerateTargetFrameworkMonikerAttribute", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>        InitializeSourceControlInformation cible :
4>          Le fichier 'D:\Open-XML-SDK\3.0.1\obj\DocumentFormat.OpenXml\Debug\net40\DocumentFormat.OpenXml.sourcelink.json' de Source Link est à jour.
4>        CoreGenerateAssemblyInfo cible :
4>          _ReportUpgradeNetAnalyzersNuGetWarning cible :
4>            La cible est ignorée "CoreGenerateAssemblyInfo", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>      CoreCompile cible :
4>        AddSourceRevisionToInformationalVersion cible :
4>          CoreGenerateAssemblyInfo cible :
4>            La cible est ignorée "CoreGenerateAssemblyInfo", car tous les fichiers de sortie sont à jour par rapport aux fichiers d'entrée.
4>        _GenerateCompileDependencyCache cible :
4>          _GenerateSourceLinkFile cible :
4>            Le fichier 'D:\Open-XML-SDK\3.0.1\obj\DocumentFormat.OpenXml\Debug\netstandard2.0\DocumentFormat.OpenXml.sourcelink.json' de Source Link est à jour.
4>          _GenerateSourceLinkFile cible :
4>            Le fichier 'D:\Open-XML-SDK\3.0.1\obj\DocumentFormat.OpenXml\Debug\net8.0\DocumentFormat.OpenXml.sourcelink.json' de Source Link est à jour.
4>          CoreCompile cible :
4>            D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>            D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>            D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>            D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>            D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>            CompilerServer: server - server processed compilation - 891326c8-6353-4c4b-b8db-351c316b8e3e
4>          Génération de la cible "CoreCompile" terminée dans le projet "DocumentFormat.OpenXml.csproj" -- ÉCHEC.
4>
4>          Génération du projet "DocumentFormat.OpenXml.csproj" terminée -- ÉCHEC.
4>          D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>          D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>          D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>          D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>          D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>          CompilerServer: server - server processed compilation - ffd3fc84-d8af-4cdd-8af4-407f89094f7d
4>        Génération de la cible "CoreCompile" terminée dans le projet "DocumentFormat.OpenXml.csproj" -- ÉCHEC.
4>
4>        Génération du projet "DocumentFormat.OpenXml.csproj" terminée -- ÉCHEC.
4>        D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>        D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>        D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>        D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>        D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>        CompilerServer: server - server processed compilation - 7b5e9931-c1c5-493a-9e93-9ae499966e22
4>      Génération de la cible "CoreCompile" terminée dans le projet "DocumentFormat.OpenXml.csproj" -- ÉCHEC.
4>
4>      Génération du projet "DocumentFormat.OpenXml.csproj" terminée -- ÉCHEC.
4>      D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>      D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>      D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>      D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>      D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>      CompilerServer: server - server processed compilation - 75762f69-d6c5-4712-86c1-ed2426d35692
4>    Génération de la cible "CoreCompile" terminée dans le projet "DocumentFormat.OpenXml.csproj" -- ÉCHEC.
4>
4>    Génération du projet "DocumentFormat.OpenXml.csproj" terminée -- ÉCHEC.
4>    D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>    D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>    D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>    D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>    D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>    CompilerServer: server - server processed compilation - 35b076b7-7f04-485e-96e3-42a1c8407bf7
4>  Génération de la cible "CoreCompile" terminée dans le projet "DocumentFormat.OpenXml.csproj" -- ÉCHEC.
4>
4>  Génération du projet "DocumentFormat.OpenXml.csproj" terminée -- ÉCHEC.
4>
4>ÉCHEC de la build.
4>
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,127,27824,127): error CS0594: La constante à virgule flottante sort de la plage du type 'double'
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(16337,39,16337,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 7
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,39,27824,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas-microsoft-com_vml.g.cs(1816,39,1816,68): error CS1729: 'AttributeValueRangeConstraint' ne contient pas de constructeur qui accepte des arguments 8
4>    0 Avertissement(s)
4>    25 Erreur(s)
4>
4>Temps écoulé 00:00:22.03
========== Build : 0 réussite(s), 1 échec(s), 3 à jour, 0 ignorée(s) ==========
========== Build s’est terminée à 11:15 et a duré 22,430 secondes ==========

========== Build : 0 réussite(s), 18 échec(s), 6 à jour, 0 ignorée(s) ==========
========== Build s’est terminée à 11:13 et a duré 24,309 secondes ==========

chacha21 avatar Mar 05 '24 10:03 chacha21

For information the problem still seems to be about decimal point.

D:\Open-XML-SDK\3.0.1\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.Generator\DocumentFormat.OpenXml.Generator.OpenXmlGenerator\schemas_openxmlformats_org_spreadsheetml_2006_main.g.cs(27824,111,27824,111): error CS0594 Here is the line : builder.AddConstraint(new AttributeValueRangeConstraint(builder.CreateQName("x:degree"), true, -1,7E+308, true, 1,7E+308, true));

As you can see, the "1,7E+308" has been generated with a french decimal point (comma). This is the reverse problem.

chacha21 avatar Mar 05 '24 10:03 chacha21

And this is fixed by modifying StringSchematron.cs:280 from return d.ToString(); to return d.ToString(System.Globalization.CultureInfo.InvariantCulture);

Then everything builds OK.

Do you want me to PR or do you get it yourself ? (you might know better than me other places in the code where such changes are needed for a comprehensive fix)

chacha21 avatar Mar 05 '24 12:03 chacha21

I would love a PR for this! Thanks for investigating into this :)

twsouthwick avatar Mar 05 '24 21:03 twsouthwick

Thanks @chacha21 for the fix!

twsouthwick avatar Mar 22 '24 18:03 twsouthwick