Configuration
MVVM Community Toolkit Integration
Section titled “MVVM Community Toolkit Integration”If you’re using CommunityToolkit.Mvvm with source-generated [ObservableProperty] partial properties, Reflector works alongside it:
-
Set the language version to
previewin your project file:<PropertyGroup><LangVersion>preview</LangVersion></PropertyGroup> -
Apply both attributes to your ViewModel:
[Reflector]public partial class MyViewModel : ObservableObject{[ObservableProperty]public partial string MyProperty { get; set; }}
MSBuild Configuration
Section titled “MSBuild Configuration”| Property | Default | Description |
|---|---|---|
ShinyReflectorUseInternalAccessors | false | Generate internal accessors instead of public |
ShinyReflectorGenerateAssemblyInfo | true | Enable or disable AssemblyInfo class generation |
ShinyReflectorAssemblyInfoClassName | AssemblyInfo | Class name for the generated constants |
ShinyReflectorAssemblyInfoNamespace | Root namespace | Namespace for the generated AssemblyInfo class |
<PropertyGroup> <ShinyReflectorUseInternalAccessors>true</ShinyReflectorUseInternalAccessors> <ShinyReflectorGenerateAssemblyInfo>true</ShinyReflectorGenerateAssemblyInfo> <ShinyReflectorAssemblyInfoClassName>MyAssemblyInfo</ShinyReflectorAssemblyInfoClassName> <ShinyReflectorAssemblyInfoNamespace>My.Namespace</ShinyReflectorAssemblyInfoNamespace></PropertyGroup>AI Coding Assistant
Section titled “AI Coding Assistant”An AI skill is available for Shiny Reflector to help generate reflector attributes, assembly info, and follow best practices directly in your IDE.
Claude Code
claude plugin add github:shinyorg/skillsGitHub Copilot — Copy the shiny-reflector skill file into your repository’s custom instructions.