https://github.com/dotnet/source-build-reference-packages/blob/a2143ed684ba97f3cf65964fdef8d5fae0ebcda6/src/externalPackages/projects/Directory.Build.targets#L15-L47
- The
PrepareInnerClone target always runs but skips unchanged files.
- The
ApplyPatches target which runs after PrepareInnerClone only runs once successfully as it then creates an output marker file.
If something fails in the SBRP repo and I run the build again, the PrepareInnerClone target runs again and overwrites the patched files but the ApplyPatches target doesn't run anymore.
https://github.com/dotnet/source-build-reference-packages/blob/a2143ed684ba97f3cf65964fdef8d5fae0ebcda6/src/externalPackages/projects/Directory.Build.targets#L15-L47
PrepareInnerClonetarget always runs but skips unchanged files.ApplyPatchestarget which runs afterPrepareInnerCloneonly runs once successfully as it then creates an output marker file.If something fails in the SBRP repo and I run the build again, the
PrepareInnerClonetarget runs again and overwrites the patched files but theApplyPatchestarget doesn't run anymore.