我正在使用SharePoint Foundation 2010. 有一个母版页v4.master。我想一些控件添加到头:SharePoint Foundation 2010中的'SPUrl'前缀
<head>
...
<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/demo.css%>" runat="server"/>
...
</head>
,然后下一个代码的web.config中:
<compilation batch="false" debug="false">
...
<expressionBuilders>
...
<add expressionPrefix="SPUrl" type="Microsoft.SharePoint.Publishing.WebControls.SPUrlExpressionBuilder, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</expressionBuilders>
</compilation>
但没有装配Microsoft.SharePoint.Publishing。 dll in GAC或C:\ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 14。我如何将'SPUrl'包含到web.config中?
有答案: http://www.wictorwilen.se/Post/Creating-custom-themable-CSS-files-for-SharePoint-2010 .aspx http://www.wictorwilen.se/Post/What-is-new-with-the-CssRegistration-control-in-SharePoint-2010.aspx – NieAR 2011-04-14 19:04:26