WCF compilation error on CI server: Microsoft.VisualStudio.ServiceModel.targets not found

前端 未结 7 1510
隐瞒了意图╮
隐瞒了意图╮ 2021-02-12 13:39

I am getting this error on my CI server:

error MSB4019: The imported project \"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\WCF\\Microsoft.V

7条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 14:03

    I ran into this same error. In my case, the problem was that my Visual Studio 2008 project didn't get upgraded correctly, probably due to files being marked "read-only" by my source control. To fix it, I loaded the solution in Visual Studio 2015 with everything checked out.

    The specific line in the .csproj file changed from

    
    

    To

    
    

提交回复
热议问题