Commit f708e85
authored
[tests] Clear ResolvedCodeAnalysisRuleSet to fix CoreCompile incrementality (#10900)
CI Guardian SDL analysis (MergeGuardianDotnetAnalyzersRuleSets) regenerates a
merged .ruleset file on every build with a new timestamp. Since
is in CoreCompile's Inputs, this causes
CoreCompile to re-run even when no source files changed, cascading through
ILLink -> _GenerateJavaStubs -> _Sign and breaking incrementality tests:
- BasicApplicationRepetitiveReleaseBuild
- CheckTimestamps
- GenerateJavaStubsAndAssembly
* Move _ClearResolvedCodeAnalysisRuleSet to XamarinAndroidProject base class
Unify the Directory.Build.targets logic so the _ClearResolvedCodeAnalysisRuleSet
target is defined once in XamarinAndroidProject (base class) rather than
duplicated in each derived project type. This fixes the
BindingLibraryIncremental test which uses XamarinAndroidBindingProject
(inherits directly from XamarinAndroidProject, not XamarinAndroidApplicationProject).
Added ExtraDirectoryBuildTargetsContent virtual property so
XamarinAndroidApplicationProject can still inject VectorDrawable workaround.
Also updated copilot-instructions.md to prefer raw string literals.1 parent 720d838 commit f708e85
File tree
3 files changed
+33
-10
lines changed- .github
- src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android
3 files changed
+33
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
38 | 63 | | |
39 | 64 | | |
40 | 65 | | |
| |||
0 commit comments