title: How can I solve the missing Office Reference when building on DevOps?
body: <p>I'm trying to compile a c# project on azure DevOPS but I get this error on the Build Solution step of the pipeline:</p>
  <pre><code>##[error]AddColumnLSCT\MainWindow.xaml.cs(3,22): Error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
  </code></pre>
  <p>If I try to locally build the project it works correctly without any error or warnings.
  I've already added the Microsoft.Office.Interop.Excel as you can see in the attached image
  <a href="https://i.stack.imgur.com/CYir3.png" rel="nofollow noreferrer">References</a>, and the corresponding NuGet Package as you can see in this attached image <a href="https://i.stack.imgur.com/4hxz4.png" rel="nofollow noreferrer">NuGet Packages</a>. How can i fix this?</p>