0
在我的項目中,我的文檔名爲:* .generated.cs。 我想將它們添加到列表中,但僅限於目錄「Sample」或「BestSample」。 我有一個代碼:羅斯林 - 搜索自定義路徑中的所有文檔
var files = from project in solution.Projects
from document in project.Documents
where document.FilePath == "Sample" || document.FilePath =="BestSample"
select document;
但這不能正常工作;( 我怎樣才能做到這一點