0

a month ago we had a solution (big one) in .net framework 4.7.2. This was building fine on azure devops pipeline.

Now we ported our solution to net5. Everything is working in visual studio but on azure devops, the pipeline is failing.

We had to change our Microsoft.Interop.Word (and excel, and outlook) to a com reference. Because net5 is multiplatform and interop is not.

Because we removed the nuget packages and changed to com reference the pipeline is failing. Does anyone know how to handle this specific problem? We can't remove the interop.excel and etc from our projects because they are dependent on it.

Beneath you see the result we have. enter image description here

It feels like we have tried everything to make it work again on azure devops.

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Gho W
  • 51
  • 1
  • 7

2 Answers2

1

have you consider self-hosted agent since you have requirement to stay the external library in this case Microsoft.Office.Interops and I don't think Microsoft Azure DevOps Pipeline agent support that currently.

With self-hosted agent, you install the PIAs and link your library/com references to the paths.

Turbot
  • 5,095
  • 1
  • 22
  • 30
  • Ok that would be a possible solutions. But it is a big change to the current system. I would like to hope there is another solution for this issue. – Gho W Aug 13 '21 at 06:57
-1

There is problem with assembly in the code, your code may be building on local environment as it is getting references for all assemblies however when you checking in the code pipelines could not fetch the assemblies through nuget package restore, if you are referencing assembly from local machine, make sure you add its nuget package reference package.config file, so nuget restore will restore the package

can you try below Link

Sarang Kulkarni
  • 367
  • 2
  • 6
  • Well i didn't reference a dll from my local machine. Normally we always add a nuget package. But for interop.excel of word they don't exist for NET5. We added a com reference instead. – Gho W Aug 12 '21 at 18:33