0

How can I get the code submitted by user "Brian" at How to send text to Notepad in C#/Win32? to work in Visual Studio Code.

I did a "Dotnet add package System.Runtime" and that seem to add the System.Runtime package, but I am still get a compile error: WriteNotepad.cs(10,50): error CS0246: The type or namespace name 'IntPtr' could not be found (are you missing a using directive or an assembly reference?)

Stephen

user1164199
  • 359
  • 4
  • 12

1 Answers1

5

IntPtr is in the System namespace so include this up top.

using System;

Shane
  • 66
  • 4