I'm trying to compile a c# project on azure DevOPS but I get this error on the Build Solution step of the pipeline:
##[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?)
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 References, and the corresponding NuGet Package as you can see in this attached image NuGet Packages. How can i fix this?