title: How to Develop a Desktop Application using C# which can Utilize USB Barcode Scanner. How to start
body: <p>I have gone through Microsoft Developer website. There is development using pointOfService. but I am getting error in:</p>
  
  <pre><code> scanner = await BarcodeScanner.GetDefaultAsync();
  </code></pre>
  
  <p>SAYING: IAsyncOperation does not contain definition for GetAwaiter</p>
  
  <p>May be I am missing any Reference but not sure which one.
  If there is any other way to do please share it. And one Important thing I am developing Windows Desktop Application.</p>
  
  <p>Complete Code is:</p>
  
  <pre><code> private async Task&lt;bool&gt; CreateDefaultScannerObject()
      {
          if (scanner == null)
          {
              UpdateOutput("Creating Barcode Scanner object.");
              scanner = await BarcodeScanner.GetDefaultAsync();
  
              if (scanner != null)
              {
                  UpdateOutput("Default Barcode Scanner created.");
                  UpdateOutput("Device Id is:" + scanner.DeviceId);
              }
              else
              {
                  UpdateOutput("Barcode Scanner not found. Please connect a Barcode Scanner.");
                  return false;
              }
          }
          return true;
      }
  </code></pre>