Code contracts build reference assembly actions
c#, code-contracts
Solution
Yes, the None and DoNotBuild options seem a bit strange.
If you select None and reference the library in a Project with contracts, you will get a Warning. If you select DoNotBuild you won't get a warning.
And of course only Build produces a reference assy, and for a .EXE it all doesn't matter.
Problem
I am using code contracts and trying to understand which of the build options shall I use and when. The contract assembly build options are defined in project properties Code Contracts -> Contract Reference Assembly: - None - Build - DoNotBuild Any thoughts or recommendations?