title: Compiling with Mono: System.IO.FileSystem, Version=4.0.2.0 -> The system cannot find the file specified
body: <p>I am trying to compile a program called ChatDaemon (coded with Visual Studio 2017, in C#, on a Windows 8.0 machine) with Mono Command Prompt x64. The Mono compiler provides the following error report upon failing: </p>
  
  <p>Could not load file or assembly 'System.IO.FileSystem, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (TaskId:24)
  C:\Program Files\Mono\lib\mono\msbuild\15.0\bin\Roslyn\Microsoft.CSharp.Core.targets(84,5): error MSB6006: "csc.exe" exited with code 1.</p>
  
  <p>After doing several hours of research, I have inserted these lines into ChatDaemon.csproj, to no avail:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;AutoGenerateBindingRedirects&gt;true&lt;/AutoGenerateBindingRedirects&gt;
      &lt;GenerateBindingRedirectsOutputType&gt;true&lt;/GenerateBindingRedirectsOutputType&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>I have also already inserted the following lines into the App.config file for ChatDaemon, also to no avail.</p>
  
  <pre><code>&lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="System.IO.FileSystem" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-4.3.0" newVersion="4.3.0" /&gt;
  &lt;/dependentAssembly&gt;
  </code></pre>
  
  <p>I am using the following version of .NET Framework, as found in the ChatDaemon.csproj file:</p>
  
  <pre><code>  &lt;ItemGroup&gt;
      &lt;BootstrapperPackage Include=".NETFramework,Version=v4.5.2"&gt;
            &lt;Visible&gt;False&lt;/Visible&gt;
        &lt;ProductName&gt;Microsoft .NET Framework 4.5.2 %28x86 and x64%29&lt;/ProductName&gt;
        &lt;Install&gt;true&lt;/Install&gt;
      &lt;/BootstrapperPackage&gt;
      &lt;BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"&gt;
        &lt;Visible&gt;False&lt;/Visible&gt;
        &lt;ProductName&gt;.NET Framework 3.5 SP1&lt;/ProductName&gt;
        &lt;Install&gt;false&lt;/Install&gt;
      &lt;/BootstrapperPackage&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>I also found this piece of code in the ChatDaemon.csproj file, pertaining to the System.IO.FileSystem.dll file:</p>
  
  <pre><code>&lt;Reference Include="System.IO.FileSystem"&gt;
    &lt;HintPath&gt;..\..\..\..\..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\system.io.filesystem\4.3.0\ref\net46\System.IO.FileSystem.dll&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>How should I go about fixing this error? If more information is needed, let me know and I will comply as soon as possible.</p>