title: Microsoft.VisualBasic does not work in VisualStudio 2017 class library project
body: <p>I am trying to create a class library in VS2017 in which I would like to use the TextFieldParser from Microsoft.VisualStudio. I had to add the direct reference to that dll C:\Program Files (x86)\Reference 
  I am also using the File class from System.IO
  Assemblies\Microsoft\Framework.NETFramework\v4.6.2\Microsoft.VisualBasic.dll
  But the build is failing with messages that do not make sense to me, some of which are </p>
  
  <ul>
  <li>The name 'File' does not exist in the current context</li>
  <li>The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'</li>
  <li>The type 'TextReader' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</li>
  </ul>
  
  <p>I am not sure if this is due to the new packaging of .NET standard version of the framework</p>
  
  <p>What do I need to do to build the project? Thanks so much!</p>
  
  <p>I have pasted my code below</p>
  
  <pre><code>    public async Task&lt;IEnumerable&lt;Security&gt;&gt; GetSecuritiesAsync()
      {
          string[] lines;
          using (var reader = File.OpenText("securities.csv"))
          {
              var fileText = await reader.ReadToEndAsync();
              lines = fileText.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
          }
  
          //first line header
          var securities = new List&lt;Security&gt;();
          for (int i = 1; i &lt; lines.Length; i++)
          {
              if (!string.IsNullOrEmpty(lines[i]))
              {
                  string[] attrs = ParseCsv(lines[i]);
                  if (attrs.Length == 4)
                  {
                      var sec = new Security();
                      int id;
                      if (int.TryParse(attrs[0], out id))
                      {
                          sec.ID = id;
                      }
                      else
                      {
                          continue;
                      }
  
                      sec.Symbol = attrs[1];
                      sec.Name = attrs[2];
                      sec.Sector = attrs[3];
  
                      securities.Add(sec);
                  }
              }
          }
          return securities;
      }
  
      private string[] ParseCsv(string line)
      {
          TextFieldParser parser = new TextFieldParser(new StringReader(line));
  
          parser.HasFieldsEnclosedInQuotes = true;
          parser.SetDelimiters(",");
  
          string[] fields = null;
  
          while (!parser.EndOfData)
          {
              fields = parser.ReadFields();
          }
          parser.Close();
          return fields;
  
  
      }
  }
  </code></pre>