Replies: 1 comment 1 reply
-
Yes, changing things from public to internal can speed up incremental builds, if the projects produce reference assemblies and some referencing projects use those reference assemblies. See the ProduceReferenceAssembly and CompileUsingReferenceAssemblies properties. If anything in the shared project ( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Perhaps this is a silly question but I'll try anyway. I have a .NET solution in .NET 8 with say 20 projects at this point. Now there is a shared project
SharedProject
and there areclass
es, andstruct
s in this project that arepublic
but they can be turned intointernal
(AFAIK).My question is: If I succeed in changing some types to
internal
, can this change lead to faster solution rebuilds in some cases? The idea being if aninternal
type is changed, then perhaps msbuild can accelerate builds in more scenarios or use some heuristics.Please don't tell me that the types should be
internal
in the first place. That's not what this question is about, I want to get better grasp how msbuilds behaves1.Footnotes
Yes, I should probably measure it using a binlog. ↩
Beta Was this translation helpful? Give feedback.
All reactions