Questions tagged [dotnet-linux]

7 questions
4
votes
1 answer

Run asp.net core app in production with path prefix

I have an asp.net core web api, which I can start from the command line (on linux hosts) dotnet MyWebApi.dll This will start some webserver that listens on localhost:5000 (per default). Let's assume I have a ValuesController that listens to path…
Efrain
  • 3,248
  • 4
  • 34
  • 61
2
votes
2 answers

Wrong paths in css after dotnet bundle on GNU/Linux

Trying to port a web project from dotnet on Windows to dotnet on GNU/Linux. The C# code works fine, but I'm having problems with the minification of dotnet bundle. In minified output css, paths to for instance images are replaced with the path to…
Johan
  • 5,003
  • 3
  • 36
  • 50
2
votes
1 answer

On dotnet SDK and Docker containers

This question should hopefully be pretty straight forward. Say you're trying to run an Asp.Net Core Web Api. The app will run inside of a Docker container inside a clean installation of Linux (flavor doesn't really matter). The container lives…
matt_dev
  • 5,176
  • 5
  • 33
  • 44
1
vote
1 answer

Executing process with process.start causes memory segfault but starting manually in shell does not

I'm attempting to use C# to wrapper a linux executable that needs some hand holding of error and conditions. I am doing this inside a docker container and calling my C# app as the ENTRYPOINT. My C# application is properly starting up on container…
Chris Rice
  • 728
  • 2
  • 9
  • 32
1
vote
1 answer

calling C++library on linux by dotnet

I am trying to call a C++ wrapper function from dotnet service on Linux the first time. C++ code: extern "C" std::string myfunc(int a, int b){ std::string mystring = funcB(a, b); return mystring; } c# code: public string…
0
votes
0 answers

Visual Studio C# add reference using library to linux

I added one SDK(.dll) to one project, through click righ -> add -> reference -> Browser -> look for the SDK in my local file explorer, then click Add and finnally Ok. so, The question is that now I must add it but for a code directed for linux, I…
jhon estrada
  • 113
  • 5
0
votes
1 answer

ASP.NET Core 5 web app running on Linux - run ssh commands as different user to www-data

I have an ASP.NET Core 5 web app running on Linux (Apache) which is working fine in general. I want it to be able to change passwords of certain Linux users. Basically the user logged into the web app can change their corresponding Linux password,…
Paul
  • 856
  • 1
  • 8
  • 18