Skip to content

Proxy generator configuration

Configure generation through properties and items inside the existing .csproj’s Project element. The examples in these reference pages are project fragments, not standalone project files. Item Include values supply MSBuild identities; the generator consumes each item’s named metadata.

Property or itemDefault / required metadataTopic
CratisProxiesOutputPathEmpty disables generationBasic
CratisProxiesSegmentsToSkipEmpty resolves to 0Basic
CratisProxiesUseSourceFileAsOutputFileOff unless trueBasic
CratisProxiesLibraryModefalseLibrary mode
CratisProxiesEmitInterfacesfalseEmit interfaces
ExcludeType itemInclude, TypeNameExclusions
ExcludeNamespace itemInclude, NamespaceExclusions
NamespaceRoot itemInclude, Namespace, Folder (may be empty)Namespace roots
AssemblyToPackageMapping itemInclude, Assembly, PackagePackage mappings
TypeToTsType itemInclude, TypeName, TsType; optional PackageType mapping
CratisProxiesSkipCommandNameInRoutefalseRouting
CratisProxiesSkipQueryNameInRoutefalseRouting
CratisProxiesApiPrefixapiRouting
CratisProxiesSkipIndexGenerationOff unless trueOutput behavior
CratisProxiesSkipOutputDeletiontrue in MSBuild; direct executable differsOutput behavior
CratisProxiesSkipFileIndexTrackingfalse; setting true is currently ignored by the executableOutput behavior