public bool ReceiveBroadcastMessagesDone { get; set; } **= false;**
The above line built fine on my own box with Vs2015 but TeamCity errors on it -
MulticastReceive.cs(49,64): error CS1519: Invalid token '=' in class, struct, or interface member declaration - [10:15:24][Step 15/19]
Removing the = false fixes it - any idea why?
TeamCity Server has Vs2015 and is runner type is a Visual Studio Solution.
My plan is to build locally on the TeamCity Build Machine and see if the error is present.
答案 0 :(得分:0)
这可能取决于构建运行器/框架组合。您可以使用MSBuild或Visual Studio以及各种版本选项。
如果您希望与本地构建具有相同的可比性,请确保您使用的是Visual Studio构建运行器和2015版本 - 如果您沿着此路线行进,则需要在构建代理上安装VS.
希望这有帮助