question

rswarnka avatar image
0 Votes"
rswarnka asked rswarnka answered

Azure DevOps Build Pipeline - type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft'

Hi, Keep getting this error for one of .net project. The build works fine on local VS but does not works on the Azure Build Pipeline .

2021-10-04T04:24:34.1073696Z D:\a\1\s\BAL\GroupAttributes.cs(91,14): warning CS1570: XML comment has badly formed XML -- 'Reference to undefined entity 'M'.' [D:\a\1\s\BAL\BAL.csproj]
2021-10-04T04:24:34.1089367Z ##[error]BAL\WSSDocument.cs(15,17): Error CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
2021-10-04T04:24:34.1098933Z D:\a\1\s\BAL\WSSDocument.cs(15,17): error CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\a\1\s\BAL\BAL.csproj]
2021-10-04T04:24:34.1233406Z ##[error]BAL\WSSDocument.cs(22,17): Error CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
2021-10-04T04:24:34.1235386Z D:\a\1\s\BAL\WSSDocument.cs(22,17): error CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [D:\a\1\s\BAL\BAL.csproj]
2021-10-04T04:24:34.1238446Z ##[error]BAL\WSSDocument.cs(257,71): Error CS0246: The type or namespace name 'WebRequestEventArgs' could not be found (are you missing a using directive or an assembly reference?)
2021-10-04T04:24:34.1240667Z D:\a\1\s\BAL\WSSDocument.cs(257,71): error CS0246: The type or namespace name 'WebRequestEventArgs' could not be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\BAL\BAL.csproj]
not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered rswarnka commented

Hi @rswarnka

Welcome to Microsoft Q&A! Thanks for posting the question.

DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

You can ask the experts in the dedicated forum over here:
https://stackoverflow.com/questions/tagged/devops
https://developercommunity.visualstudio.com/spaces/21/index.html

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Oh Ok, Sure. Thanks

0 Votes 0 ·
rswarnka avatar image
0 Votes"
rswarnka answered

I got this resolved. There was issue with release config. The Debug config had reference to library but not the release.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.