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;

しかし、これは機能しません;(どうすればこれを行うことができますか?

4

1 に答える 1