© 2026 Hedgehog Software, LLC
<ItemGroup> <GeneratedApiServerContracts Include="$(OpenApiBasePath)openapi.yml" /> <-- clients <GeneratedApiClientContracts Include="$(OpenApiBasePath)openapi.yml" /> <-- servers </ItemGroup>
<ItemDefinitionGroup> <GeneratedApiClientContracts> <Namespace>$(RootNamespace)</Namespace> <NSwagGenerateClient>true</NSwagGenerateClient> </GeneratedApiClientContracts> <GeneratedApiServerContracts> <Namespace>$(RootNamespace)</Namespace> <NSwagGenerateServer>true</NSwagGenerateServer> </GeneratedApiServerContracts> </ItemDefinitionGroup>
AdditionalFiles
<AdditionalFiles Include="@(GeneratedApiClientContracts)"/> <AdditionalFiles Include="@(GeneratedApiServerContracts)"/>
dotnet msbuild -getItem:AdditionalFiles
// trimed extra metadata for brevity. { "Items": { "AdditionalFiles": [ { "Identity": "D:\\dev\\gdw\\cadet\\cadet.service\\nswag\\openapi.nswag", "NSwagConfig": "true" }, { "Identity": "D:\\dev\\gdw\\cadet\\cadet.service\\api\\api-gateway\\openapi.yml", "Namespace": "ApiGateway", "NSwagGenerateClient": "true" }, { "Identity": "D:\\dev\\gdw\\cadet\\cadet.service\\api\\api-gateway\\openapi.yml", "Namespace": "ApiGateway", "NSwagGenerateServer": "true" } ] } }
AdditionalTextsProvider