“Are you missing an assembly reference?” compile error - Visual Studio

后端 未结 9 673
悲&欢浪女
悲&欢浪女 2020-12-09 08:48

I am currently working on a server control for other applications in our company to interface with a WCF service. Every time I make a change code change and recompile the c

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 09:06

    I encountered this error with an Azure DevOps Services (MS-hosted) build pipeline on a TFVC repo.

    In my case, I was working within a branch and had accidentally added the reference from the package folder in trunk instead of from the branch. Once I added the reference from within the branch, it started compiling successfully.

    I.e., while working on \branch-beta\sierra.csproj, I accidentally referenced \trunk\packages\delta.dll. Obviously, I needed to reference \branch-beta\packages\delta.dll instead. The mixup occurred because the path is not prominently displayed in the Add Reference window and I didn’t check carefully enough.

提交回复
热议问题