visual studio - AlternateContent Tags causing issues with IDE, but not compiler -
i working on legacy product. need make regions of complex ui optional, based on build constants. not feasible move these regions controls, using alternatecontent tags (mc:alternatecontent).
this works perfectly, @ compilation , application runs expected.
however, ide claims 1 error each alternatecontent, , enclosed choice tag, , not load design window/preview (in vs or blend):
the name "alternatecontent" not exist in namespace "http://schemas.openxmlformats.org/markup-compatibility/2006" name "choice" not exist in namespace "http://schemas.openxmlformats.org/markup-compatibility/2006"
i have tried, rebuilding, cleaning , rebuilding, changing build settings between release, debug, x86, x64, , rebooting. nothing helps. give same errors in blend.
i hoping stupid doing, , can fix it; or possibly newer namespace uri should using. if cannot resolve errors, hoping knows trick suppress these errors in ide, can use it.
i have updated vs2013 premium installation. however, has glitch on test machine running vs14 ctp, , running vs2012 (fully updated), both without add-ins; have assume not problem pcs install.
a little late party, if add mc tag ignorable attribute error goes away. content won't show in designer worked me when compiled different flavours of project.
<usercontrol... xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:conditional="defined-in-assembly.cs" mc:ignorable="d mc"/>
Comments
Post a Comment