title: Why is My.Computer not working in visual basic .NET console app?
body: <p>Why isn't this working. I tried this on a school computer (fully reimaged and running on a network) and it worked fine
  Yet, when I try it on my home pc (newly installed visual studio 2019)
  it throws the exception:</p>
  <blockquote>
  <p>Computer is not a member of projectname. My</p>
  </blockquote>
  <p>Code is here:</p>
  <pre><code>Imports System
  
  Module Program
  
  Sub Main(args As String())
      Dim fileReader As System.IO.StreamReader = My.Computer.FileSystem.OpenTextFileReader(&quot;D:\\story1.txt&quot;)
      Dim stringReader As String = &quot;&quot;
      Dim i As Integer = 1
      Dim TotalString As String = &quot;&quot;
      While stringReader &lt;&gt; &quot;*&quot;
          stringReader = fileReader.ReadLine()
          If i Mod 2 = 0 Then
              TotalString += stringReader
          End If
      End While
      Console.WriteLine(TotalString)
      Console.ReadKey()
  End Sub
  End Module
  </code></pre>