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
Post a Comment