CI/CD Pipeline for .NET framework

Hi All. facing an error with respect to Office assemble “Error: D:\a\OPTS_Pipeline\OPTS_Pipeline\common\Utility.cs(14,30): error CS0234: The type or namespace name ‘Office’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?)” My .NET programs need MS Office modules for building the solution when initiated through the workflow using GitActions.

I have tried to use name: Login to tenant uses: pnp/action-cli-login@v2.0.0

How to install the Office modules for git action workflow to make the build successful.