私のプロジェクトには、*. 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;
しかし、これは機能しません;(どうすればこれを行うことができますか?