nrefactory-demo-gtk command not found

In this troubleshooting guide we learn how to fix nrefactory-demo-gtk command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nrefactory-demo-gtk: command not found

or when using sudo you get the following error message

sudo: nrefactory-demo-gtk: command not found

Solutions to nrefactory-demo-gtk: command not found

How To Fix nrefactory-demo-gtk: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nrefactory-demo-gtk is provided by nrefactory-samples package.

nrefactory-samples is:

NRefactory is the C# analysis library used in the SharpDevelop and MonoDevelop IDEs. It allows applications to easily analyze both syntax and semantics of C# programs. It is quite similar to Microsoft’s Roslyn project; except that it is not a full compiler – NRefactory only analyzes C# code, it does not generate IL code.

This package contains sample programs for the NRefactory library.

To fix this problem, we can install more using the command below.

sudo apt-get -y install nrefactory-samples

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nrefactory-samples.

sudo apt -y install nrefactory-samples

Or if you have aptitude installed you can use the following command.

sudo aptitude install nrefactory-samples

Summary

In this tutorial we learn how to fix nrefactory-demo-gtk command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.