[英]How to I run a file on ubuntu which i compiled with Visual Studio on Windows for Linux
You could flag your file as executable:您可以将文件标记为可执行文件:
cd you_vs_code_foler/bin/Release/net6.0/publish/linux-x64
chmod +x your_programm
./your_programm
If you need to install .NET runtime at Ubuntu: try this:如果您需要在 Ubuntu 安装 .NET 运行时:试试这个:
sudo apt-get install -y dotnet-runtime-6.0
For further information and for other distrubtions please consult: https://docs.microsoft.com/en-us/dotnet/core/install/linux有关更多信息和其他分布,请咨询: https://docs.microsoft.com/en-us/dotnet/core/install/linux
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.