Advanced Search
Search Results
3 total results found
Build project with SourceGenerator on linux
Code Snippets
Add Microsoft.Net.Compilers.Toolset package to the project that references the source generator.
Change file encoding with linux
Code Snippets
To get current encoding: file -i {filename} To convert it: iconv -f {sourceEncoding} -t {targetEncoding} {filename} Example: iconv -f ISO_8859-1 -t UTF-8 filename.txt
RegEx in multiple files multi-line pattern
Code Snippets
pcregrep -h -r --include=".*\.cs" -M "LogEvent\([\s\S]*?\)\;" . -h: Exclude filenames -r: recursive --include: include file names that matches with the pattern -M: multi-line mode PATTERN: match all occurrence even if it is multi-line Example: await ...