Commit 412e974
authored
Context: dotnet/android#5338
This reverts commit 00862ad.
Now that we are properly building with `$(TargetFramework)`=net6.0
(4d0cba6), we can re-enable the `[SupportedOSPlatform]` support,
as originally introduced in da12df4.
Emit the [`System.Runtime.Versioning.SupportedOSPlatformAttribute`][0]
custom attribute which is used to specify on which platforms and
platform versions an API is available. This is used to build analyzers
to give users warnings if they are trying to use an API when it will
not be available on their target platform.
[0]: https://docs.microsoft.com/en-us/dotnet/api/system.runtime.versioning.supportedosplatformattribute?view=net-5.0
1 parent 23baf0b commit 412e974
File tree
3 files changed
+23
-27
lines changed- tests/generator-Tests/Unit-Tests
- tools/generator
- Java.Interop.Tools.Generator.ObjectModel
- SourceWriters/Attributes
3 files changed
+23
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
290 | 288 | | |
291 | | - | |
292 | | - | |
| 289 | + | |
| 290 | + | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
| |||
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
0 commit comments