Determine what needs to be compiled by given changeset #9964
-
Hello. Imagine, I have And I have a list of files that changed (a commit/set of commits/PR). If changeset contains changes only for files in I have a question: does msbuild have an option to provide me a list of all files for every Of course, I need not only compilation units, I need every included file (resource, embedded resource, included Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I'm able to parse
|
Beta Was this translation helpful? Give feedback.
-
I'm partially solved this:
but the results are too noisy:
here is
are the results I need, but something from nuget packages are miss for me. Could this be filtered somehow or I need a completely different approach? |
Beta Was this translation helpful? Give feedback.
-
This is not the way MSBuild thinks of the problem and thus there's no good way to get the answer you want from MSBuild. You might look at something like Buildalyzer which can do some related things, and the .NET Project System Fast Up-To-Date Check is also related. Note though that defining what files are in what projects is extremely difficult in general. MSBuild is powerful and flexible and changes that seem totally unrelated can result in other changes. |
Beta Was this translation helpful? Give feedback.
This is not the way MSBuild thinks of the problem and thus there's no good way to get the answer you want from MSBuild.
You might look at something like Buildalyzer which can do some related things, and the .NET Project System Fast Up-To-Date Check is also related.
Note though that defining what files are in what projects is extremely difficult in general. MSBuild is powerful and flexible and changes that seem totally unrelated can result in other changes.