解決方法為:
到subversion repository的hooks目錄中,新增或編輯一個名為pre-revprop-change的檔案,內容改為
#!/bin/sh
exit 0
即可,不過為了安全起見,改完後沒事還是把他還原成不能隨意更動log的狀態比較好
for (int idx = 0; idx < myarray.Count; idx++)
{
object item = myarray[idx];
}
int count = (int)myarray.GetType().GetProperty("Count").GetValue(myarray, null);
for (int idx = 0; idx < count; idx++)
{
object item = myarray.GetType().GetProperty("Item").GetValue(myarray, new object[] { idx }
);
class TestClass{
private static StringBuilder sb = new StringBuilder();
private static StringBuilder sb2 = new StringBuilder();
}
class TestClass{
private static StringBuilder sb = new StringBuilder();
private static StringBuilder sb2 = new StringBuilder();
public static void ReInit(){
sb = new StringBuilder();
sb2 = new StringBuilder();
}
}
FieldInfo[] fs = typeof(TestClass).GetFields(BindingFlags.Static | BindingFlags.NonPublic);
foreach (FieldInfo f in fs)
{
if (f.IsStatic)
{
object obj = f.FieldType.Assembly.CreateInstance(f.FieldType.FullName);
f.SetValue(null, obj);
}
}
<div class="scroll">
void main(.....
</div>
div.scroll {
/* height: 200px; 指定高度*/
width: 90%;
overflow: auto;
border: 1px solid #eee;
/* background-color: #ccc; 指定背景顏色*/
padding: 8px;
word-wrap: normal; /* 指定code不要自動換行 */
}
<cruisecontrol>
<project name="MyProject">
<triggers>ooxxooxx</triggers>
<sourcecontrol>ooxxooxx</sourcecontrol>
<tasks>
<msbuild>ooxxooxx</msbuild>
<exec>
<executable>myexec.bat</executable>
</exec>
<nunit>
<path>nunit-console.bat</path>
<assemblies><assembly>ox.dll</assembly></assemblies>
</nunit>
</tasks>
</project>
</cruisecontrol>
'OOXX.exe' 不是內部或外部命令、
可執行的程式或批次檔。
使用MetaWeblog API
MsnSpacesMetaWeblog mw = new MsnSpacesMetaWeblog();
Post[] ps = mw.getRecentPosts("MyBlog", "OhOh", "ooxxooxx",20);
我之前有用C#配合MetaWeblog API寫出一個備份程式,請參考「Horn Village|牛角村: 【msnSpacesBackup 】利用 MetaWeblog API 來備份 msnSpaces 的網誌」。