NuGet / Samples

NuGet team sample repo
Other
136 stars 108 forks source link

Add central package management example #52

Closed jeffkl closed 2 years ago

jeffkl commented 2 years ago

Branch: https://github.com/NuGet/Samples/tree/dev-jeffkl-cpm-sample/CentralPackageManagementExample

clairernovotny commented 2 years ago

One other thought: is there a simple code snippet or two that can be in the class files that can demonstrate breaks across versions?

I.e., if we turn Transitive off, then X will fail to compile because of an API in the version (could be new API available that's not in the version when the flag is turned off). Same Q for CPM all-up; is there something that can work or fail based on the setting?

Also, I think it'd be useful to add any/all available/relevant config properties to the props/targets and add a doc comment as to what they do and what the default value is? I think that'll help people see the possibilities, and also what they can safely omit.

jeffkl commented 2 years ago

One other thought: is there a simple code snippet or two that can be in the class files that can demonstrate breaks across versions?

I'd have to really dig into some class libraries to find a breaking change and unfortunately I don't have time at the moment. We can improve this sample over time as we get feedback on it.

jeffkl commented 2 years ago

@clairernovotny can I merge this for now and make improvements as feedback comes in?