[Build] Build failure with --build_nuget flag #22137
Labels
api:CSharp
issues related to the C# API
build
build issues; typically submitted using template
.NET
Pull requests that update .net code
Describe the issue
We are seeing build failures with --build_nuget flag after the commit : "Add better native nuget package readme (#21889) - 20c802a"
Urgency
Potentially blocking ORT 1.20 release
Target platform
Intel CPUs
Build script
build.bat --skip_submodule_sync --build_shared_lib --enable_onnx_tests --build_wheel --ms_experimental --use_dml --use_winml --update --config RelWithDebInfo --enable_lto --enable_wcos --build --build_nuget --cmake_generator "Visual Studio 17 2022"
Error / output
C:\ort-builds\ORT-Sep-15\onnxruntime\csharp\OnnxRuntime.CSharp.proj(186,5): error MSB3073: The command "C:\ort-builds\O
RT-Sep-15\onnxruntime\build\Windows\RelWithDebInfo\nuget_exe\src\nuget.exe pack NativeNuget.nuspec -Symbols -SymbolPack
ageFormat snupkg" exited with code 1.
Traceback (most recent call last):
File "C:\ort-builds\ORT-Sep-15\onnxruntime\tools\ci_build\build.py", line 2971, in
sys.exit(main())
^^^^^^
File "C:\ort-builds\ORT-Sep-15\onnxruntime\tools\ci_build\build.py", line 2921, in main
build_nuget_package(
File "C:\ort-builds\ORT-Sep-15\onnxruntime\tools\ci_build\build.py", line 2438, in build_nuget_package
run_subprocess(cmd_args, cwd=csharp_build_dir)
File "C:\ort-builds\ORT-Sep-15\onnxruntime\tools\ci_build\build.py", line 860, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ort-builds\ORT-Sep-15\onnxruntime\tools\python\util\run.py", line 49, in run
completed_process = subprocess.run(
^^^^^^^^^^^^^^^
File "C:\Users\RPL-MLAS\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dotnet', 'msbuild', 'OnnxRuntime.CSharp.proj', '/t:CreateWindowsAIPackage', '/p:OrtPackageId=Microsoft.AI.MachineLearning', '/p:Configuration=RelWithDebInfo', '/p:ExecutionProvider=None', '/p:OnnxRuntimeBuildDirectory=C:\ort-builds\ORT-Sep-15\onnxruntime\build\Windows', '/p:NugetExe="C:\ort-builds\ORT-Sep-15\onnxruntime\build\Windows\RelWithDebInfo\nuget_exe\src\nuget.exe"', '/p:IncludeMobileTargets=false']' returned non-zero exit status 1.
Visual Studio Version
2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: