12 2010 档案

摘要: When installing System Center Configuration Manager (SCCM aka SMS v4), it is not always possible to give internet access to the server involved. I like to have everything I need beforehand whenever doing an install. When SCCM setup launches, it tries to download the ConfigMgr.Manifest.cab from here.阅读全文
posted @ 2010-12-28 11:14 annpaul 阅读(58) | 评论 (0) 编辑
摘要: 若要指定一组不定数量的重复域或组,请使用 XPathNavigator 类的 Select 方法。此方法返回一个 XPathNodeIterator 对象,您可使用该对象来循环访问指定的节点集合。下面的示例假定您的表单模板包含一个"点符列表",或绑定到名为 field1 的重复元素的类似重复控件。将域的 XPath 传递给 Select 方法,并将返回的 XPathNodeIterator 分配给...阅读全文
posted @ 2010-12-21 15:32 annpaul 阅读(39) | 评论 (0) 编辑
摘要: 对于某些数据类型,尝试以编程方式设置空白域的值时将引发"架构验证过程发现非数据类型错误"错误。导致出现此错误的原因通常是,元素的 xsi:nil(该链接可能指向英文页面) 属性设置为 true。如果您检查表单中空白域的基础 XML 元素,您会看到此设置。例如,以下空白日期域的 XML 段的 xsi:nil 属性设置为 true。XML复制代码 如果 xsi:nil 属性设置为 true,则表示相应元素存在但没有值,或者换句话说就是元素为 空。如果您尝试以编程方式设置这样一个节点的值,InfoPath 将显示"架构验证过程发现非数据类型错误"消息,原因是元素当前标记为 空。InfoPath 将以阅读全文
posted @ 2010-12-21 15:26 annpaul 阅读(260) | 评论 (0) 编辑
摘要: 在VS 2010中可以很方便的创建VS自带的单元测试项目,但是此种方式并不适用于SharePoint 2010的单元测试,因为SharePoint 2010支持的开发环境是.net framework 3.5,并且必须为x64平台,而VS中默认单元测试项目的目标版本是.net framework 4.0,并且不能切换为3.5. 所以通常环境下我们大多采用NUnit/XUnit来进行单元测试。本文主...阅读全文
posted @ 2010-12-01 15:18 annpaul 阅读(397) | 评论 (0) 编辑
摘要: 在VS2010中,单元测试的功能很强大,使得建立单元测试和编写单元测试代码,以及管理和运行单元测试都变得简单起来,通过私有访问器可以对私有方法也能进行单元测试,并且支持数据驱动的单元测试。1、建立单元测试项目1.1、从被测试代码生成单元测试1)实例:创建VC#模式下的控制台应用程序,工程名为CUnitTest 2)输入简单的加、减、乘、除函数代码,如下图所示 3)可按如下步骤建立单元测试    (...阅读全文
posted @ 2010-12-01 14:05 annpaul 阅读(1482) | 评论 (1) 编辑
摘要: SPDisposeCheckThe SharePoint APIs allocate COM - based memory that the Common Language Runtime (CLR)garbage collector does not release. For this reason, you need to explicitly call the Dispose() metho...阅读全文
posted @ 2010-12-01 12:18 annpaul 阅读(48) | 评论 (0) 编辑
摘要: On the SharePoint project, right-click the project and select Properties. From Property pages, select the SharePoint tab. At the bottom of the SharePoint tab, find and select the check box labeled Ena...阅读全文
posted @ 2010-12-01 12:04 annpaul 阅读(81) | 评论 (0) 编辑
摘要: http://code.msdn.microsoft.com/ULSViewer阅读全文
posted @ 2010-12-01 12:01 annpaul 阅读(66) | 评论 (0) 编辑
摘要: 方式一:PowerShellpowershell.exe -noexit "c:\devdash.ps1"------------------------------------------------write-hostwrite-host "Loading PowerShell environment for SharePoint" -foregroundcolor Greenwrite-ho...阅读全文
posted @ 2010-12-01 11:53 annpaul 阅读(194) | 评论 (0) 编辑