Skip to content

Conversation

adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Apr 30, 2025

Description

Fixes #24500

  • Fixes local build of onnxruntime.dll to have a valid version, such as "1.23.0", instead of the literal string "ORT_VERSION"
  • Adds version info to onnxruntime_providers_qnn.dll, onnxruntime_providers_cuda.dll, and onnxruntime_providers_tensorrt.dll. It was missing completely. This was done by adding onnxruntime_providers_*.rc files to define each EP's DLL version info.

Fixed onnxruntime.dll version info (local non-ADO build):
image

Fixed onnxruntime_providers_qnn.dll version info (adds QNN SDK version too):
image

Motivation and Context

We create dlls with invalid or missing version info.

@adrianlizarraga adrianlizarraga changed the title Fix onnxruntime.dll and onnxruntime_providers_qnn.dll version info Fix version info for onnxruntime.dll and QNN, TensorRT, and CUDA EP dlls Apr 30, 2025
@jywu-msft
Copy link
Member

do we want to do this for only windows in the cmake file?

@adrianlizarraga adrianlizarraga merged commit 9194cad into main May 1, 2025
91 of 98 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/ort-dll-version-fix branch May 1, 2025 06:31
vraspar pushed a commit that referenced this pull request May 1, 2025
…lls (#24606)

### Description
Fixes #24500

- Fixes local build of onnxruntime.dll to have a valid version, such as
"1.23.0", instead of the literal string "ORT_VERSION"
- Adds version info to onnxruntime_providers_qnn.dll,
onnxruntime_providers_cuda.dll, and onnxruntime_providers_tensorrt.dll.
It was missing completely. This was done by adding
`onnxruntime_providers_*.rc` files to define each EP's [DLL version
info](https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource).

Fixed onnxruntime.dll version info (local non-ADO build):
<img width="263" alt="image"
src="https://github.com/user-attachments/assets/33ef85ea-ac36-4c6a-9171-8fe4fb35955d"
/>

Fixed onnxruntime_providers_qnn.dll version info (adds QNN SDK version
too):
<img width="275" alt="image"
src="https://github.com/user-attachments/assets/a1f04604-2e3c-416d-989e-e92cb7df1776"
/>


### Motivation and Context
We create dlls with invalid or missing version info.
jywu-msft pushed a commit that referenced this pull request May 1, 2025
### Description

Cherry pick the following into
[rel-1.22.0](https://github.com/microsoft/onnxruntime/tree/rel-1.22.0)

- (#24491)
- (#24509)
- (#24564)
- (#24574)
- (#24582)
- (#24584)
- (#24568)
- (#24587)
- (#24563)
- (#24592)
- (#24526)
- (#24552)
- (#24588)
- (#24605)
- (#24606)

---------

Co-authored-by: Jing Fang <[email protected]>
Co-authored-by: Tianlei Wu <[email protected]>
Co-authored-by: Baiju Meswani <[email protected]>
Co-authored-by: Scott McKay <[email protected]>
Co-authored-by: Mark Schofield <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Edward Chen <[email protected]>
Co-authored-by: Ashwath Shankarnarayan <[email protected]>
Co-authored-by: saurabh <[email protected]>
Co-authored-by: Adrian Lizarraga <[email protected]>
Co-authored-by: Hector Li <[email protected]>
ankitm3k pushed a commit to intel/onnxruntime that referenced this pull request May 12, 2025
…lls (microsoft#24606)

### Description
Fixes microsoft#24500

- Fixes local build of onnxruntime.dll to have a valid version, such as
"1.23.0", instead of the literal string "ORT_VERSION"
- Adds version info to onnxruntime_providers_qnn.dll,
onnxruntime_providers_cuda.dll, and onnxruntime_providers_tensorrt.dll.
It was missing completely. This was done by adding
`onnxruntime_providers_*.rc` files to define each EP's [DLL version
info](https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource).

Fixed onnxruntime.dll version info (local non-ADO build):
<img width="263" alt="image"
src="https://github.com/user-attachments/assets/33ef85ea-ac36-4c6a-9171-8fe4fb35955d"
/>

Fixed onnxruntime_providers_qnn.dll version info (adds QNN SDK version
too):
<img width="275" alt="image"
src="https://github.com/user-attachments/assets/a1f04604-2e3c-416d-989e-e92cb7df1776"
/>


### Motivation and Context
We create dlls with invalid or missing version info.
@snnn
Copy link
Member

snnn commented Sep 5, 2025

This PR has been included in the rel-1.22.0 branch. Removing the release:1.22.0 label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Build] The version info of onnxruntime dlls is not set correctly

3 participants