Following a pattern similar to what's described here, I'm generating some c# files into the intermediate output directory. When those files are opened in the editor, the user can edit them. Is it possible for me to mark those C# files in a way that causes them to be read only? Similar to NuGet contentFiles or C# files generated via a C# 9 Source Generator?
Following a pattern similar to what's described here, I'm generating some c# files into the intermediate output directory. When those files are opened in the editor, the user can edit them. Is it possible for me to mark those C# files in a way that causes them to be read only? Similar to NuGet
contentFiles
or C# files generated via a C# 9 Source Generator?