'Use `-p:observable=true` with protobuf-net.BuildTools?

I want to upgrade C# code to use the latest protobuf-net with .Net Core 6, also to be able to have a platform independent build of the whole solution. It uses .proto files for interop with other languages. Therefore I'd like to use the very convenient protobuf-net.BuildTools generators.

The old protogen invocation used the -p:observable=true argument, so the generated classes would implement and use the INotifyPropertyChanged interface.

Is it possible to use -p:observable=true with protobuf-net.BuildTools?


Also, there is a custom modification in the used csharp.xslt file to alter the generated C# files. So I guess my more general question would be:

Is there a way to change the generated C# code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source