Adds a transitive NuGet props file to ensure consumer project exposes needed properties to the source generator#92
Merged
danielmarbach merged 3 commits intomainfrom May 7, 2026
Merged
Conversation
Added public and private dependency groups, updated project properties, and included a description for the project.
danielmarbach
approved these changes
May 7, 2026
DavidBoike
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a transitive NuGet props file so the source generators can detect Azure Functions host projects in package consumers without relying on repo-local build configuration.
Changes
NServiceBus.AzureFunctions.Common.propsintobuild/andbuildTransitive/fromNServiceBus.AzureFunctions.CommonCompilerVisiblePropertyitems into that props file:OutputTypeFunctionsExecutionModelRootNamespaceCompilerVisiblePropertyentries fromsrc/Custom.Build.propsNServiceBus.AzureFunctions.Common.propsdirectly insrc/IntegrationTestApp/IntegrationTestApp.csprojso the local integration app uses the same setup as package consumersWhy
The composition generator depends on compiler-visible MSBuild properties to recognize the Azure Functions host project and emit
AddNServiceBusFunctions().Previously, that worked in this repository because
Custom.Build.propsexposed those properties globally, but consumers referencing the NuGet package did not get the same configuration. By shipping the props file as a transitive package asset, consumers now get the required compiler-visible properties automatically.