“Object reference not set to an instance of an object” when building my cloud project

前端 未结 11 1706
灰色年华
灰色年华 2020-12-28 13:27

When I build my solution with a bunch of cloud projects, I see one or more \"Error: Object reference not set to an instance of an object\" messages in the output. When I try

11条回答
  •  臣服心动
    2020-12-28 13:37

    I also had this error when building. Projects within the solution would build independently but building the entire solution failed.

    I have learnt usually these types of issues are caused by invalid azure role or configuration files. In my case it turns out a .cscfg config file rename on another branch was merged with my branch but it didn't rename the file – therefore the .ccproj file in my branch was incorrectly referring to the new name but only the old filename existing in the solution. After manually editing the .ccproj with the new filename I closed/reopened the solution and things started working.

提交回复
热议问题