Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Build failure with --build_nuget flag #22137

Open
bkaruman opened this issue Sep 18, 2024 · 0 comments
Open

[Build] Build failure with --build_nuget flag #22137

bkaruman opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
api:CSharp issues related to the C# API build build issues; typically submitted using template .NET Pull requests that update .net code

Comments

@bkaruman
Copy link

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

@bkaruman bkaruman added the build build issues; typically submitted using template label Sep 18, 2024
@github-actions github-actions bot added .NET Pull requests that update .net code api:CSharp issues related to the C# API labels Sep 18, 2024
@skottmckay skottmckay self-assigned this Sep 18, 2024
skottmckay added a commit that referenced this issue Sep 19, 2024
…ty is supported. (#22141)

### Description
<!-- Describe your changes. -->
Use the latest nuget.exe for the `readme` property to be supported.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
#22137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:CSharp issues related to the C# API build build issues; typically submitted using template .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

2 participants