[Build] [Linux] [.NET] Microsoft.ML.OnnxRuntime.Gpu keep publishing unnecessary DLL large files for linux-x64 #23077
Labels
api:CSharp
issues related to the C# API
build
build issues; typically submitted using template
ep:CUDA
issues related to the CUDA execution provider
.NET
Pull requests that update .net code
Describe the issue
Nuget package
Microsoft.ML.OnnxRuntime.Gpu 1.20.1
keep publishing DLL files for linux-x64, especiallyonnxruntime_providers_cuda.dll
which is very large (>600MB), these DLL files are unnecessary to linuxPlease fix to stop publishing these onnxruntime*.dll files for linux-x64 when
dotnet build/dotnet publish
, otherwise the final binaries size will be double (both cuda.so and cuda.dll >600MB)One possible clue: it seems that this file
Microsoft.ML.OnnxRuntime.Gpu.Windows.props
is trying to copy DLL files for all x64 platforms including linux-x64.Related issue: microsoft/onnxruntime-genai#1135
Urgency
No response
Target platform
linux-x64
Build script
build linux-x64 under linux command line:
dotnet publish test.csproj --runtime linux-x64
test.csproj
Program.cs
Error / output
There are many DLL files in the final binaries
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: