Search code examples
asp.netlinuxubuntu.net-core

Will self-contained .NET Core on Ubuntu change the state of the OS or other systems?


Will a self-contained .NET Core ASP.NET webapp on Ubuntu 22.04 change the state of the OS (or other systems) in any way?

  • Will it mess with any configs or ini files outside its own directory?
  • Will it change files outside its own directory?
  • If I delete the directory containing the .NET core app, will the OS be identical to how it was before I deployed the .NET core files?
  • Will it change the state/operation/config of any services/daemons like Apache, etc?

I want to run a .NET core webapp on my Ubuntu server, but that server already has many important applications and websites running on the LAMP stack. I'm nervous about .NET core touching/disrupting any of them, mainly because I don't understand how exactly .NET core runs on Linux, what all it does, what it touches, etc.


Solution

  • Don't worry, unless you've explicitly "coded" a thing to modify the system, your web app won't do that. .NET is a framework. Until you're running self-contained .NET code or publishing your code to Native AOT, it won't make any modifications outside what you implement.