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] dotnet install onnxruntime #17794

Open
foxnight2 opened this issue Oct 5, 2023 · 3 comments
Open

[Build] dotnet install onnxruntime #17794

foxnight2 opened this issue Oct 5, 2023 · 3 comments
Labels
api:CSharp issues related to the C# API stale issues that have not been addressed in a while; categorized by a bot

Comments

@foxnight2
Copy link

foxnight2 commented Oct 5, 2023

Describe the issue

Follow this to install dotnet and using it to install onnxruntime

https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install

https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#set-environment-variables-system-wide

Urgency

No response

Target platform

docker

Build script

wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 7.0
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
cd /work
dotnet add package Microsoft.ML.OnnxRuntime

Error / output

Could not find any project in /work/.

Visual Studio Version

No response

GCC / Compiler Version

No response

@foxnight2 foxnight2 added the build build issues; typically submitted using template label Oct 5, 2023
@snnn snnn added api:CSharp issues related to the C# API and removed build build issues; typically submitted using template labels Oct 5, 2023
@wschin
Copy link
Contributor

wschin commented Oct 5, 2023

I need more information for repro and more error information. I don't expect the following commands would work for arbitrary docker with arbitrary docker parameters.

cd /work
dotnet add package Microsoft.ML.OnnxRuntime

Where does cd /work come from? I guess it's your local working folder. Please provide the whole command history including (1) how to create/launch a docker, (2) how OnnxRuntime and other packages are installed.

@wschin wschin added the more info needed issues that cannot be triaged until more information is submitted by the original user label Oct 5, 2023
@foxnight2
Copy link
Author

Here is the information

docker pull openvino/ubuntu22_runtime:latest
docker run --user root -it openvino/ubuntu22_runtime:latest
apt-get update
apt-get install wget
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel 7.0
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools

dotnet add package Microsoft.ML.OnnxRuntime

It show the log

root@d658eeca588d:/opt/intel/openvino_2023.0.2.11065# dotnet add package Microsoft.ML.OnnxRuntime

Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.401

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Could not find any project in `/opt/intel/openvino_2023.0.2.11065/`.

@snnn snnn removed the more info needed issues that cannot be triaged until more information is submitted by the original user label Oct 6, 2023
Copy link
Contributor

github-actions bot commented Nov 6, 2023

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Nov 6, 2023
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 stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

3 participants