Skip to content

Commit 7ed516a

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Add our implementation of JWT manifest reading and reporting devlooped/oss@a0ae727 - Add copylocal behavior when merging assemblies devlooped/oss@7cda4a1 - Integrate more seamlessly with the existing workflows devlooped/oss@e732f6a - Add nullable and generated code annotations devlooped/oss@b2a11fa - Whitespace and formatting devlooped/oss@d74f511 - Simplify and unify manifest reading implementation devlooped/oss@4fca946 - Minimal docs on consuming devlooped/oss@827a1d1 - Ignore sponsorlink sources in formatting devlooped/oss@f571a42 - Update assembly metadata format for Funding.GitHub devlooped/oss@5801de0 - SponsorLink metadata will be opt-in only by analyzer projects devlooped/oss@c618ea8
1 parent 7344593 commit 7ed516a

40 files changed

+2552
-49
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@ dotnet_analyzer_diagnostic.category-Style.severity = none
107107

108108
# VSTHRD200: Use "Async" suffix for async methods
109109
dotnet_diagnostic.VSTHRD200.severity = none
110+
111+
[**/*SponsorLink*/**]
112+
generated_code = true

.netconfig

Lines changed: 179 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
skip
2727
[file ".editorconfig"]
2828
url = https://github.com/devlooped/oss/blob/main/.editorconfig
29-
sha = c779d3d4e468358106dea03e93ba2cd35bb01ecb
30-
etag = 7298c6450967975a8782b5c74f3071e1910fc59686e48f9c9d5cd7c68213cf59
29+
sha = f571a42eac3cad554810dad15139ff390db5e1db
30+
etag = ba2655b8b3ce5491b1c0eea5e0af201a085c48e07542bb9ec2c928084944ea86
3131
weak
3232
[file ".gitattributes"]
3333
url = https://github.com/devlooped/oss/blob/main/.gitattributes
@@ -92,19 +92,14 @@
9292
weak
9393
[file "src/Directory.Build.targets"]
9494
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
95-
sha = 0789bf0988ea61b8dfa601d5769e68dc885ffb71
96-
etag = d44a194fd2bc6d564dea8c08245e20856f93ddf155f4acaf8dbfc9f088314737
95+
sha = c618ea86d94402a12c7d7d10fe2b5cb8a21c3eea
96+
etag = 7cb1421f00d9f6f4c00f0ca98e485dcadb927cfa6b3f0b5d4fb212525d2ce9c0
9797
weak
9898
[file "src/kzu.snk"]
9999
url = https://github.com/devlooped/oss/blob/main/src/kzu.snk
100100
sha = 0683ee777d7d878d4bf013d7deea352685135a05
101101
etag = b8d789b5b6bea017cdcc8badcea888ad78de3e34298efca922054e9fb0e7b6b9
102102
weak
103-
[file "src/nuget.config"]
104-
url = https://github.com/devlooped/oss/blob/main/src/nuget.config
105-
sha = 0d911c2aa865d2f774917a02da51a9ed3d0d2b56
106-
etag = e279911631ae6fa45ba6bd980d0674fc5a95d5793493425ff8ce4a8f2407a213
107-
weak
108103
[file ".github/workflows/includes.yml"]
109104
url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
110105
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
@@ -130,3 +125,178 @@
130125
sha = 5fb172362c767bef7c36478f1a6bdc264723f8f9
131126
etag = 0849ee61af6daee29615f9632173b4e82da5bfa9d78ff28907e9408bd5acde4d
132127
weak
128+
[file "src/SponsorLink/Analyzer/Analyzer.csproj"]
129+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Analyzer/Analyzer.csproj
130+
sha = 7cda4a18313b0b38b26c0152e1007cdbb9b6ba3a
131+
etag = d9444fa36daa8f4ff8f06fc2f9f600dbd8032f25ff58542d3b96676e0305677e
132+
weak
133+
[file "src/SponsorLink/Analyzer/Properties/launchSettings.json"]
134+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Analyzer/Properties/launchSettings.json
135+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
136+
etag = 6c59ab4d008e3221e316c9e3b6e0da155b892680d48cdc400a39d53cb9a12aac
137+
weak
138+
[file "src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs"]
139+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Analyzer/StatusReportingAnalyzer.cs
140+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
141+
etag = 23d4cd16294974d85164fc26d6a7e2ae52698f23a62463db5025d69d9c166dc5
142+
weak
143+
[file "src/SponsorLink/Analyzer/buildTransitive/SponsorableLib.targets"]
144+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Analyzer/buildTransitive/SponsorableLib.targets
145+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
146+
etag = 332060de0945590d7c41cd237c250b8186acd6fc2045cc85a890368c74fdf473
147+
weak
148+
[file "src/SponsorLink/Directory.Build.props"]
149+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Directory.Build.props
150+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
151+
etag = 6823e1e914ecedd174276e3d53517cc0b332bb47c56402a9512cfa6aeeeb067e
152+
weak
153+
[file "src/SponsorLink/Directory.Build.targets"]
154+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Directory.Build.targets
155+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
156+
etag = 9938f29c3573bf8bdb9686e1d9884dee177256b1d5dd7ee41472dd64bfbdd92d
157+
weak
158+
[file "src/SponsorLink/Library/Library.csproj"]
159+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Library/Library.csproj
160+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
161+
etag = 3720f8ae0605aa64df8f6c1d9769969162175b79c93a21024653f210a42348e6
162+
weak
163+
[file "src/SponsorLink/Library/MyClass.cs"]
164+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Library/MyClass.cs
165+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
166+
etag = b5b3ccd6cd14bb90dd9702b9d7e52cc22c11e601c039617738d688f9fd45d49b
167+
weak
168+
[file "src/SponsorLink/Library/Resources.resx"]
169+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Library/Resources.resx
170+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
171+
etag = aff6051733d22982e761f2b414173aafeab40e0a76a142e2b33025dced213eb2
172+
weak
173+
[file "src/SponsorLink/SponsorLink.targets"]
174+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink.targets
175+
sha = 7cda4a18313b0b38b26c0152e1007cdbb9b6ba3a
176+
etag = d725bd9cfa33f35224e91748f64237e4dc66270f7e5ec7c835b78164531ae3db
177+
weak
178+
[file "src/SponsorLink/SponsorLink/AppDomainDictionary.cs"]
179+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/AppDomainDictionary.cs
180+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
181+
etag = 4a70f86e73f951bca95618c221d821e38a31ef9092af4ac61447eab845671a28
182+
weak
183+
[file "src/SponsorLink/SponsorLink/DiagnosticsManager.cs"]
184+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/DiagnosticsManager.cs
185+
sha = b2a11faac6c1c300bce8c1d45f95b585c19f2953
186+
etag = 9f289f45169f35916fff1857840d4118ed134215639d6dae9016dc62004291a5
187+
weak
188+
[file "src/SponsorLink/SponsorLink/ManifestStatus.cs"]
189+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/ManifestStatus.cs
190+
sha = b2a11faac6c1c300bce8c1d45f95b585c19f2953
191+
etag = e46848f83c0436ba33a1c09a4060ad627a74db41bab66bb37ca40fce8a6532a7
192+
weak
193+
[file "src/SponsorLink/SponsorLink/SponsorLink.cs"]
194+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorLink.cs
195+
sha = 4fca946c3201d90d30e2183f699c850dcc1bf8d5
196+
etag = 96e1b1b28bfb2372bd5ffcc6bdef65ee926822b3489ce65be4e5a400884dce21
197+
weak
198+
[file "src/SponsorLink/SponsorLink/SponsorLink.csproj"]
199+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorLink.csproj
200+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
201+
etag = ffaea0b580d8dccd672e749a5efd11fda318c484ca4a34428ff81524ec80ec4b
202+
weak
203+
[file "src/SponsorLink/SponsorLink/SponsorLink.es.resx"]
204+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorLink.es.resx
205+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
206+
etag = ded7de7a2624b335beb462763e3580413da21e80c8b40b4c773ca46c7af4e859
207+
weak
208+
[file "src/SponsorLink/SponsorLink/SponsorLink.resx"]
209+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorLink.resx
210+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
211+
etag = 7d9e89ef2cf762a6119c9c6c2ed2517b71a546838151c005400301fde8def266
212+
weak
213+
[file "src/SponsorLink/SponsorLink/SponsorLinkAnalyzer.cs"]
214+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorLinkAnalyzer.cs
215+
sha = b2a11faac6c1c300bce8c1d45f95b585c19f2953
216+
etag = fc96f7f5642cbf69b35b7e8de1756822580315f0cee61e47da3b2b1b03f68e1a
217+
weak
218+
[file "src/SponsorLink/SponsorLink/SponsorStatus.cs"]
219+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorStatus.cs
220+
sha = 4fca946c3201d90d30e2183f699c850dcc1bf8d5
221+
etag = 9a5f6f35c38c34b77796925d80addc998e204bc112fcd5fc124030060390e7c2
222+
weak
223+
[file "src/SponsorLink/SponsorLink/SponsorableLib.targets"]
224+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/SponsorableLib.targets
225+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
226+
etag = 2f923a97081481a6a264d63c8ff70ce5ba65c3dbaf7ea078cbe1388fb0868e1c
227+
weak
228+
[file "src/SponsorLink/SponsorLink/ThisAssembly.cs"]
229+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/ThisAssembly.cs
230+
sha = b2a11faac6c1c300bce8c1d45f95b585c19f2953
231+
etag = 978269025f58e2bae872af25fdfd94659e234e8365e3014c18b1b20fdcd155bf
232+
weak
233+
[file "src/SponsorLink/SponsorLink/Tracing.cs"]
234+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/Tracing.cs
235+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
236+
etag = 22e32872cafd080bcd5ac9084355578ef70910c8e494602ead365139dcbf40c0
237+
weak
238+
[file "src/SponsorLink/SponsorLink/buildTransitive/Devlooped.Sponsors.targets"]
239+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/buildTransitive/Devlooped.Sponsors.targets
240+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
241+
etag = 72ec691a085dc34f946627f7038a82569e44f0b63a9f4a7bd60f0f7b52fd198f
242+
weak
243+
[file "src/SponsorLink/SponsorLink/devlooped.pub.jwk"]
244+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/devlooped.pub.jwk
245+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
246+
etag = cf884781ff88b4d096841e3169282762a898b2050c9b5dac0013bc15bdbee267
247+
weak
248+
[file "src/SponsorLink/SponsorLink/sponsorable.md"]
249+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLink/sponsorable.md
250+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
251+
etag = 9c275d50705a2e661f0f86f1ae5e555c0033a05e86e12f936283a5b5ef47ae77
252+
weak
253+
[file "src/SponsorLink/SponsorLinkAnalyzer.sln"]
254+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/SponsorLinkAnalyzer.sln
255+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
256+
etag = fc2928c9b303d81ff23891ee791a859b794d9f2d4b9f4e81b9ed15e5b74db487
257+
weak
258+
[file "src/SponsorLink/Tests/.netconfig"]
259+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/.netconfig
260+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
261+
etag = 089a26cdb722d57014c8b8104cc6f4e770868efdc49ae3119eebc873f00a316e
262+
weak
263+
[file "src/SponsorLink/Tests/Attributes.cs"]
264+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/Attributes.cs
265+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
266+
etag = 1d7c17a2c9424db73746112c338a39e0000134ac878b398e2aa88f7ea5c0c488
267+
weak
268+
[file "src/SponsorLink/Tests/Extensions.cs"]
269+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/Extensions.cs
270+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
271+
etag = f68e11894103f8748ce290c29927bf1e4f749e743ae33d5350e72ed22c15d245
272+
weak
273+
[file "src/SponsorLink/Tests/JsonOptions.cs"]
274+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/JsonOptions.cs
275+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
276+
etag = 6e9a1b12757a97491441b9534ced4e5dac6d9d6334008fa0cd20575650bbd935
277+
weak
278+
[file "src/SponsorLink/Tests/Sample.cs"]
279+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/Sample.cs
280+
sha = e732f6a2c44a2f7940a1868a92cd66523f74ed24
281+
etag = db968d1d665b77a17e13bc7ca3d43ea65ed05cbebc18669f1b607ebe0e38a59a
282+
weak
283+
[file "src/SponsorLink/Tests/SponsorLinkTests.cs"]
284+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/SponsorLinkTests.cs
285+
sha = d74f5111504a0fae6e5a1e68ca92bf7afddb3254
286+
etag = 1fa41250bd984e8aa840a966d34ce0e94f2111d1422d7f50b864c38364fcf4a4
287+
weak
288+
[file "src/SponsorLink/Tests/SponsorableManifest.cs"]
289+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/SponsorableManifest.cs
290+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
291+
etag = e0c95e7fc6c0499dbc8c5cd28aa9a6a5a49c9d0ad41fe028a5a085aca7e00eaf
292+
weak
293+
[file "src/SponsorLink/Tests/Tests.csproj"]
294+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/Tests/Tests.csproj
295+
sha = a0ae7272f31c766ebb129ea38c11c01df93b6b5d
296+
etag = 237409e155202ec1b845593195d30057a949b2b18ae46a575e4cf480e4e2c8fe
297+
weak
298+
[file "src/SponsorLink/readme.md"]
299+
url = https://github.com/devlooped/oss/blob/main/src/SponsorLink/readme.md
300+
sha = 827a1d18bf0245978d81bcd3d52e9e6f1584d1ef
301+
etag = 079b4aedba2aa9851e609b569f25c55db8d5922e3dbb1adc22611ce4d6cfe465
302+
weak

readme.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ See [Program.cs](src/Sample/Program.cs) for a complete example.
168168
[![Kori Francis](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png "Kori Francis")](https://github.com/kfrancis)
169169
[![Toni Wenzel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png "Toni Wenzel")](https://github.com/twenzel)
170170
[![Giorgi Dalakishvili](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Giorgi.png "Giorgi Dalakishvili")](https://github.com/Giorgi)
171-
[![Mike James](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MikeCodesDotNET.png "Mike James")](https://github.com/MikeCodesDotNET)
172171
[![Uno Platform](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png "Uno Platform")](https://github.com/unoplatform)
173172
[![Dan Siegel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png "Dan Siegel")](https://github.com/dansiegel)
174173
[![Reuben Swartz](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png "Reuben Swartz")](https://github.com/rbnswartz)
@@ -184,14 +183,12 @@ See [Program.cs](src/Sample/Program.cs) for a complete example.
184183
[![Seann Alexander](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/seanalexander.png "Seann Alexander")](https://github.com/seanalexander)
185184
[![Tino Hager](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png "Tino Hager")](https://github.com/tinohager)
186185
[![Mark Seemann](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ploeh.png "Mark Seemann")](https://github.com/ploeh)
187-
[![Angelo Belchior](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/angelobelchior.png "Angelo Belchior")](https://github.com/angelobelchior)
188186
[![Ken Bonny](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png "Ken Bonny")](https://github.com/KenBonny)
189187
[![Simon Cropp](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png "Simon Cropp")](https://github.com/SimonCropp)
190188
[![agileworks-eu](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png "agileworks-eu")](https://github.com/agileworks-eu)
191189
[![sorahex](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png "sorahex")](https://github.com/sorahex)
192190
[![Zheyu Shen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png "Zheyu Shen")](https://github.com/arsdragonfly)
193191
[![Vezel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png "Vezel")](https://github.com/vezel-dev)
194-
[![Michael Staib](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/michaelstaib.png "Michael Staib")](https://github.com/michaelstaib)
195192
[![ChilliCream](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png "ChilliCream")](https://github.com/ChilliCream)
196193
[![4OTC](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png "4OTC")](https://github.com/4OTC)
197194

src/Directory.Build.targets

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@
115115
</EmbeddedResource>
116116
</ItemGroup>
117117

118-
<ItemGroup Label="Sponsors">
119-
<AssemblyMetadata Include="Funding.PublicKey" Value="MIIBigKCAYEA5inhv8QymaDBOihNi1eY+6+hcIB5qSONFZxbxxXAyOtxAdjFCPM+94gIZqM9CDrX3pyg1lTJfml/a/FZSU9dB1ii5mSX/mNHBFXn1/l/gi1ErdbkIF5YbW6oxWFxf3G5mwVXwnPfxHTyQdmWQ3YJR+A3EB4kaFwLqA6Ha5lb2ObGpMTQJNakD4oTAGDhqHMGhu6PupGq5ie4qZcQ7N8ANw8xH7nicTkbqEhQABHWOTmLBWq5f5F6RYGF8P7cl0IWl/w4YcIZkGm2vX2fi26F9F60cU1v13GZEVDTXpJ9kzvYeM9sYk6fWaoyY2jhE51qbv0B0u6hScZiLREtm3n7ClJbIGXhkUppFS2JlNaX3rgQ6t+4LK8gUTyLt3zDs2H8OZyCwlCpfmGmdsUMkm1xX6t2r+95U3zywynxoWZfjBCJf41leM9OMKYwNWZ6LQMyo83HWw1PBIrX4ZLClFwqBcSYsXDyT8/ZLd1cdYmPfmtllIXxZhLClwT5qbCWv73VAgMBAAE=" />
120-
<AssemblyMetadata Include="Funding.GitHub" Value="devlooped" />
121-
</ItemGroup>
122-
123118
<Target Name="IsPackable" Returns="@(IsPackable)">
124119
<ItemGroup>
125120
<IsPackable Include="$(MSBuildProjectFullPath)" IsPackable="$(IsPackable)" PackageId="$(PackageId)" />

src/NuGet.Config

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IsRoslynComponent>true</IsRoslynComponent>
6+
<PackFolder>analyzers/dotnet/roslyn4.0</PackFolder>
7+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
8+
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink.targets</CustomAfterMicrosoftCSharpTargets>
9+
<MergeAnalyzerAssemblies>true</MergeAnalyzerAssemblies>
10+
<ImplicitUsings>disable</ImplicitUsings>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<PackageReference Include="NuGetizer" Version="1.2.2" />
15+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" Pack="false" />
16+
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />
17+
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="1.4.3" PrivateAssets="all" />
18+
<PackageReference Include="ThisAssembly.Git" Version="1.4.3" PrivateAssets="all" />
19+
<PackageReference Include="ThisAssembly.Constants" Version="1.4.3" PrivateAssets="all" />
20+
<PackageReference Include="ThisAssembly.Strings" Version="1.4.3" PrivateAssets="all" />
21+
<PackageReference Include="ThisAssembly.Project" Version="1.4.3" PrivateAssets="all" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
25+
<InternalsVisibleTo Include="Tests" />
26+
</ItemGroup>
27+
28+
<ItemGroup>
29+
<None Update="buildTransitive\SponsorableLib.targets" Pack="true" />
30+
</ItemGroup>
31+
32+
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"profiles": {
3+
"SponsorableLib": {
4+
"commandName": "DebugRoslynComponent",
5+
"targetProject": "..\\Tests\\Tests.csproj",
6+
"environmentVariables": {
7+
"SPONSORLINK_TRACE": "true"
8+
}
9+
}
10+
}
11+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System.Collections.Immutable;
2+
using Devlooped.Sponsors;
3+
using Microsoft.CodeAnalysis;
4+
using Microsoft.CodeAnalysis.Diagnostics;
5+
using static Devlooped.Sponsors.SponsorLink;
6+
using static ThisAssembly.Constants;
7+
8+
namespace Analyzer;
9+
10+
[DiagnosticAnalyzer(LanguageNames.CSharp)]
11+
public class StatusReportingAnalyzer : DiagnosticAnalyzer
12+
{
13+
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray<DiagnosticDescriptor>.Empty;
14+
15+
public override void Initialize(AnalysisContext context)
16+
{
17+
context.EnableConcurrentExecution();
18+
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
19+
20+
context.RegisterCodeBlockAction(c =>
21+
{
22+
var status = Diagnostics.GetStatus(Funding.Product);
23+
Tracing.Trace($"Status: {status}");
24+
});
25+
}
26+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Import Project="Devlooped.Sponsors.targets"/>
3+
</Project>

0 commit comments

Comments
 (0)