.net - Error MC4108 on build server but not in Visual Studio -
in spirit of solution found should shared, getting following error when building wpf project using tfs. project build fine on local dev machine, on build server using vs or msbuild, not when built via tfs.
error mc4108: root of template content section cannot contain element of type '{0}'. frameworkelement , frameworkcontentelement types valid.
it pointing custom control contained within data template:
<window.resources> <datatemplate x:key="tabitemtemplate"> <d:connectioncontrol /> </datatemplate> </window.resources>
the workaround found wrap custom control in grid:
<window.resources> <datatemplate x:key="tabitemtemplate"> <grid> <d:connectioncontrol /> </grid> </datatemplate> </window.resources>
i guess it's not bad workaround, markup in question should have worked.
Comments
Post a Comment