c# - The name 'AutomationId' does not exist in the current context -
i have assembly ui automation tests (white).
i've introduced class autination id's reused in assembly:
public static class automationid {     public static class toolbar     {         public const string mycontrol = "mycontrolid";     } }   and i'm trying use in test class (the same assembly):
var control = mainwindow.get<button>(automationid.toolbar.mycontrol);   this code can compiled locally. on teamcity i'm getting such error:
the name 'automationid' not exist in current context      
it's c# 6 feature. similar problem: the name 'nameof' not exist in current context
i encountered problem now, lead me here. research indicates need update teamcity:
http://dave.ninja/2015/08/06/upgrading-teamcity-to-support-visual-studio-2015/
we still have this, well. post above shows lot of solutions issues encountered while upgrading. didn't seem painful process.
Comments
Post a Comment