c# - Roslyn - search all documents in custom path -


in project have documents name: *.generated.cs. add them list directory "sample" or "bestsample". have code:

var files = project in solution.projects             document in project.documents             document.filepath == "sample" || document.filepath =="bestsample"             select document; 

but not work ;( how can this?

the filepath full path file, you'd have path.getdirectoryname(document.filepath).endswith("sample") or like. use usual string/path manipulation apis on it.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -