public int SimilarLevel { get; set; }
错误 1 “ZJOCH.Tool.PatchPublish.Model.ToPublishSubFileInfo.SimilarLevel.get”必须声明主体,因为它未标记为 abstract 或 extern C:\Documents and Settings\admin\桌面\新建文件夹 (4)\ZJOCH.Tool.PatchPublish.Model\ToPublishSubFileInfo.cs 46 35 ZJOCH.Tool.PatchPublish.Model
foreach (FileInfo info2 in fis)
{
stemp = info2.Attributes.ToString().Replace("Hidden", "").Replace("hidden", ""); if (PublishHelperProxy.CurrentWorkData.IncludeHidden || info2.Attributes.ToString().Length == stemp.Length) //过滤隐藏的文件
{
mfi_temp = new MyFileInfo()
{
FileName = info2.Name,
RelativePath = info2.FullName.Replace(DirectoryTreeHelper.Instance.CurrentDirectoryTree.SourceDirectory, string.Empty),
SourcePath = info2.FullName
}; //添加自己
mdi.SubFiles.Add(mfi_temp);
}
}
错误 1 应输入 ; C:\Documents and Settings\admin\桌面\新建文件夹 (4)\ZJOCH.Tool.PatchPublish.Service\DirectoryTreeExtractService.cs 90 48 ZJOCH.Tool.PatchPublish.Service
类似一上的vs2008代码在vs2008上不能编译,有什么办法可以解决吗
错误 1 “ZJOCH.Tool.PatchPublish.Model.ToPublishSubFileInfo.SimilarLevel.get”必须声明主体,因为它未标记为 abstract 或 extern C:\Documents and Settings\admin\桌面\新建文件夹 (4)\ZJOCH.Tool.PatchPublish.Model\ToPublishSubFileInfo.cs 46 35 ZJOCH.Tool.PatchPublish.Model
foreach (FileInfo info2 in fis)
{
stemp = info2.Attributes.ToString().Replace("Hidden", "").Replace("hidden", ""); if (PublishHelperProxy.CurrentWorkData.IncludeHidden || info2.Attributes.ToString().Length == stemp.Length) //过滤隐藏的文件
{
mfi_temp = new MyFileInfo()
{
FileName = info2.Name,
RelativePath = info2.FullName.Replace(DirectoryTreeHelper.Instance.CurrentDirectoryTree.SourceDirectory, string.Empty),
SourcePath = info2.FullName
}; //添加自己
mdi.SubFiles.Add(mfi_temp);
}
}
错误 1 应输入 ; C:\Documents and Settings\admin\桌面\新建文件夹 (4)\ZJOCH.Tool.PatchPublish.Service\DirectoryTreeExtractService.cs 90 48 ZJOCH.Tool.PatchPublish.Service
类似一上的vs2008代码在vs2008上不能编译,有什么办法可以解决吗
public int SimilarLevel { get{return _similarLevel;} set{_similarLevel=value;} }只能自己手动改
是 以上的vs2008代码在vs2005上不能编译