Skip to content

Commit e2f5461

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Update nuget.config with new(ish?) MS certs devlooped/oss@032439d # devlooped/SponsorLink - Remove workaround for previous buggy targets from TA devlooped/SponsorLink@8f0e621 - Fix overwriting of $(FundingPackageId) in targets devlooped/SponsorLink@697e210 - Bump nuget dependencies for the dotnet analyzer sample devlooped/SponsorLink@0f551e3
1 parent 7f7f18f commit e2f5461

File tree

10 files changed

+77
-39
lines changed

10 files changed

+77
-39
lines changed

.netconfig

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@
126126
url = https://github.com/devlooped/SponsorLink/tree/main/samples/dotnet/
127127
[file "src/SponsorLink/Analyzer/Analyzer.csproj"]
128128
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Analyzer/Analyzer.csproj
129-
sha = e55425333883c4470d745f8fee70bdf204c292ee
129+
sha = 8f0e6216360f3f8700b4845f3ec2310aabd996f3
130130

131-
etag = 8aa140018fcfbd889c11da36c8c21b5cfb5730c07aa3317d734b118cfa60b416
131+
etag = 671a82f0f6770a990f9364ecf321eeea75bd6092f98c009039af02df172152df
132132
weak
133133
[file "src/SponsorLink/Analyzer/GraceApiAnalyzer.cs"]
134134
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Analyzer/GraceApiAnalyzer.cs
@@ -174,9 +174,9 @@
174174
weak
175175
[file "src/SponsorLink/Library/Library.csproj"]
176176
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Library/Library.csproj
177-
sha = f74ea7a8c7f81c5bceefb3ed7ef4249b1d8574a3
177+
sha = 0f551e3be564625ee4d078649c55363bf35954ba
178178

179-
etag = 592707adba548606ec50ced6e424be4cbfe34f18bf01555a19b29fa61efa416a
179+
etag = 1ba2df85e2aae342f575b9ea08c38b2117f43c131b24d38082d1d4394716f3d0
180180
weak
181181
[file "src/SponsorLink/Library/MyClass.cs"]
182182
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Library/MyClass.cs
@@ -204,9 +204,9 @@
204204
weak
205205
[file "src/SponsorLink/SponsorLink.Analyzer.targets"]
206206
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink.Analyzer.targets
207-
sha = fb82cf346cea86140a51ae49b9bc730d72f7c7ac
207+
sha = 0f551e3be564625ee4d078649c55363bf35954ba
208208

209-
etag = 284f794d03adabf10ac5e25ef87d257821a82eac112efe65d6fe23d675f9af7f
209+
etag = 7276d81830e29f8d5f3e27ee62cadaf7aef02a0162b9a05c88e1daef9cc4875e
210210
weak
211211
[file "src/SponsorLink/SponsorLink/AnalyzerOptionsExtensions.cs"]
212212
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/AnalyzerOptionsExtensions.cs
@@ -258,9 +258,9 @@
258258
weak
259259
[file "src/SponsorLink/SponsorLink/SponsorLink.csproj"]
260260
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/SponsorLink.csproj
261-
sha = 0d22f1ee7d7afc93e11060887de0e1773884978e
261+
sha = 0f551e3be564625ee4d078649c55363bf35954ba
262262

263-
etag = dbf30ffb9baa63e45a4c821bc1433e4289b9af84855c2a306eaa116874a1c9f2
263+
etag = 27db7c8288b721804b52a719a9218ab1198f4db5b7a7d06bce4e1770def2d4a0
264264
weak
265265
[file "src/SponsorLink/SponsorLink/SponsorLinkAnalyzer.cs"]
266266
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/SponsorLinkAnalyzer.cs
@@ -288,9 +288,9 @@
288288
weak
289289
[file "src/SponsorLink/SponsorLink/buildTransitive/Devlooped.Sponsors.targets"]
290290
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/buildTransitive/Devlooped.Sponsors.targets
291-
sha = d7090c1dbcb20c68b99486a6dc53d86b8d9b06bb
291+
sha = 697e210b68c7d6f0ececca7673d13f4309df6cd7
292292

293-
etag = e992b97517c9bcc6c9e927832bc13fac3036fa6d4ecaad893caf320b3c582aee
293+
etag = e2cb4d1bbf4096f4b3fcfa0b20abccb33520442b656f19e01e5da928fd927da8
294294
weak
295295
[file "src/SponsorLink/SponsorLink/sponsorable.md"]
296296
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/sponsorable.md
@@ -312,9 +312,9 @@
312312
weak
313313
[file "src/SponsorLink/Tests/AnalyzerTests.cs"]
314314
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Tests/AnalyzerTests.cs
315-
sha = 29921560c73bb91c2a21a21800daf0b250773598
315+
sha = 697e210b68c7d6f0ececca7673d13f4309df6cd7
316316

317-
etag = 219df696a47a58d9de377166c87fbb199c84c33d3b7a0f7ae349543df050a583
317+
etag = 44ef3022d2ebe1251896542b697baa9dcef9b9805b68845ccc9d0ff0181ba9d1
318318
weak
319319
[file "src/SponsorLink/Tests/Attributes.cs"]
320320
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Tests/Attributes.cs
@@ -360,9 +360,9 @@
360360
weak
361361
[file "src/SponsorLink/Tests/Tests.csproj"]
362362
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Tests/Tests.csproj
363-
sha = 0d22f1ee7d7afc93e11060887de0e1773884978e
363+
sha = 0f551e3be564625ee4d078649c55363bf35954ba
364364

365-
etag = 5db4da024e4ecfb90be14feb4db952efa2109ee2ec84e715921291808d57b749
365+
etag = 7d27c17944c61da196f11f904383b25b3f40579fbeb0cacb367bf05ec184ad7f
366366
weak
367367
[file "src/SponsorLink/Tests/keys/kzu.key"]
368368
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/Tests/keys/kzu.key
@@ -414,7 +414,12 @@
414414
weak
415415
[file "src/SponsorLink/readme.md"]
416416
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/readme.md
417-
sha = 7407f5b3461213ae764f53ee93651a34487e458c
417+
sha = 697e210b68c7d6f0ececca7673d13f4309df6cd7
418418

419-
etag = 50937c64732bb2b97ddc67cc7b7b2d091c51390c9f5f2b5fdcfe9f1becb5d838
419+
etag = 3f3bb07d204d2539d90a28145653c4b48c1f373d7186b39d2593338cebcd3299
420+
weak
421+
[file "src/nuget.config"]
422+
url = https://github.com/devlooped/oss/blob/main/src/nuget.config
423+
sha = 032439dbf180fca0539a5bd3a019f18ab3484b76
424+
etag = da7c0104131bd474b52fc9bc9f9bda6470e24ae38d4fb9f5c4f719bc01370ab5
420425
weak

src/SponsorLink/Analyzer/Analyzer.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="NuGetizer" Version="1.2.3" />
17+
<PackageReference Include="NuGetizer" Version="1.2.4" />
1818
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" Pack="false" />
19-
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />
20-
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="1.4.3" PrivateAssets="all" />
21-
<PackageReference Include="ThisAssembly.Git" Version="1.4.3" PrivateAssets="all" />
22-
<PackageReference Include="ThisAssembly.Constants" Version="1.4.3" PrivateAssets="all" />
23-
<PackageReference Include="ThisAssembly.Project" Version="1.4.3" PrivateAssets="all" />
19+
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="all" />
20+
<PackageReference Include="ThisAssembly.AssemblyInfo" Version="2.0.11" PrivateAssets="all" />
2421
</ItemGroup>
2522

2623
<ItemGroup>

src/SponsorLink/Library/Library.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="NuGetizer" Version="1.2.3" />
14+
<PackageReference Include="NuGetizer" Version="1.2.4" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/SponsorLink/SponsorLink.Analyzer.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@
8484
<ItemGroup Condition="'$(ManagePackageVersionsCentrally)' == 'true'">
8585
<PackageReference Include="Humanizer.Core" VersionOverride="2.14.1" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
8686
<PackageReference Include="Humanizer.Core.es" VersionOverride="2.14.1" PrivateAssets="all" />
87-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" VersionOverride="8.2.1" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
88-
<PackageReference Include="ILRepack" Version="2.0.35" VersionOverride="all" PrivateAssets="all" Pack="false" />
87+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" VersionOverride="8.4.0" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
88+
<PackageReference Include="ILRepack" Version="2.0.37" VersionOverride="all" PrivateAssets="all" Pack="false" />
8989
</ItemGroup>
9090

9191
<ItemGroup Condition="'$(ManagePackageVersionsCentrally)' != 'true'">
9292
<PackageReference Include="Humanizer.Core" Version="2.14.1" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
9393
<PackageReference Include="Humanizer.Core.es" Version="2.14.1" PrivateAssets="all" />
94-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.1" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
95-
<PackageReference Include="ILRepack" Version="2.0.35" PrivateAssets="all" Pack="false" />
94+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.4.0" PrivateAssets="all" Pack="$(PackMergedAssemblies)" />
95+
<PackageReference Include="ILRepack" Version="2.0.37" PrivateAssets="all" Pack="false" />
9696
</ItemGroup>
9797

9898
<Target Name="EmitFunding" BeforeTargets="CompileDesignTime;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)SponsorLink.g.cs">

src/SponsorLink/SponsorLink/SponsorLink.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
<ItemGroup>
2525
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
2626
<PackageReference Include="Humanizer.Core.es" Version="2.14.1" />
27-
<PackageReference Include="ILRepack" Version="2.0.35" PrivateAssets="all" />
28-
<PackageReference Include="NuGetizer" Version="1.2.3" />
27+
<PackageReference Include="ILRepack" Version="2.0.37" PrivateAssets="all" />
28+
<PackageReference Include="NuGetizer" Version="1.2.4" />
2929
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" Pack="false" />
30-
<PackageReference Include="PolySharp" Version="1.14.1" PrivateAssets="all" />
31-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.0" PrivateAssets="all" />
30+
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="all" />
31+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.4.0" PrivateAssets="all" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

src/SponsorLink/SponsorLink/buildTransitive/Devlooped.Sponsors.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161

6262
<Target Name="SL_CollectSponsorableAnalyzer" Inputs="@(FundingPackageId)" Outputs="|%(FundingPackageId.Identity)|">
6363
<PropertyGroup>
64-
<FundingPackageId>%(FundingPackageId.Identity)</FundingPackageId>
64+
<_FundingPackageId>%(FundingPackageId.Identity)</_FundingPackageId>
6565
</PropertyGroup>
6666
<ItemGroup>
6767
<!--Used to determine installation time, for example, by looking up the analyzer assembly in additional files with:
6868
build_metadata.Analyzer.ItemType = Analyzer
6969
build_metadata.Analyzer.NuGetPackageId = [PackageId] -->
70-
<AdditionalFiles Include="@(Analyzer -> WithMetadataValue('NuGetPackageId', '$(FundingPackageId)'))" />
70+
<AdditionalFiles Include="@(Analyzer -> WithMetadataValue('NuGetPackageId', '$(_FundingPackageId)'))" />
7171
</ItemGroup>
7272
</Target>
7373

src/SponsorLink/Tests/AnalyzerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public async Task WhenMultipleAnalyzers_ThenReportsOnce()
213213
.Where(x => x.Properties.TryGetValue(nameof(SponsorStatus), out var _));
214214

215215
Assert.NotEmpty(diagnostics);
216-
Assert.Single(diagnostics.Where(x => x.Properties.TryGetValue(nameof(SponsorStatus), out var value)));
216+
Assert.Single(diagnostics, x => x.Properties.TryGetValue(nameof(SponsorStatus), out var value));
217217
}
218218

219219
[Fact]

src/SponsorLink/Tests/Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
1111
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
1212
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
13-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.0" PrivateAssets="all" />
13+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.4.0" PrivateAssets="all" />
1414
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
15-
<PackageReference Include="ThisAssembly.Resources" Version="1.4.3" PrivateAssets="all" />
16-
<PackageReference Include="xunit" Version="2.9.2" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
15+
<PackageReference Include="ThisAssembly.Resources" Version="2.0.10" PrivateAssets="all" />
16+
<PackageReference Include="xunit" Version="2.9.3" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2" />
1818
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
1919
<PackageReference Include="Humanizer.Core.es" Version="2.14.1" />
20-
<PackageReference Include="ThisAssembly.Constants" Version="1.4.3" />
20+
<PackageReference Include="ThisAssembly.Constants" Version="2.0.10" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/SponsorLink/readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,19 @@ Including the analyzer and targets in a project involves two steps.
3535
</Project>
3636
```
3737

38+
3. Set the package id(s) that will be checked for funding in the analyzer, such as:
39+
40+
```xml
41+
<PropertyGroup>
42+
<FundingPackageId>SponsorableLib;SponsorableLib.Core</FundingPackageId>
43+
</PropertyGroup>
44+
```
45+
46+
The default analyzer will report a diagnostic for sponsorship status only
47+
if the project being compiled as a direct package reference to one of the
48+
specified package ids.
49+
50+
This property defaults to `$(PackageId)` if present. Otherwise, it defaults
51+
to `$(FundingProduct)`, which in turn defaults to `$(Product)` if not provided.
52+
3853
As long as NuGetizer is used, the right packaging will be done automatically.

src/nuget.config

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<config>
4+
<add key="signatureValidationMode" value="accept" />
5+
</config>
6+
<trustedSigners>
7+
<author name="Microsoft">
8+
<certificate fingerprint="3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
9+
<certificate fingerprint="AA12DA22A49BCE7D5C1AE64CC1F3D892F150DA76140F210ABD2CBFFCA2C18A27" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
10+
<certificate fingerprint="566A31882BE208BE4422F7CFD66ED09F5D4524A5994F50CCC8B05EC0528C1353" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
11+
<certificate fingerprint="1F4B311D9ACC115C8DC8018B5A49E00FCE6DA8E2855F9F014CA6F34570BC482D" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
12+
</author>
13+
<repository name="nuget.org" serviceIndex="https://api.nuget.org/v3/index.json">
14+
<certificate fingerprint="0E5F38F57DC1BCC806D8494F4F90FBCEDD988B46760709CBEEC6F4219AA6157D" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
15+
<certificate fingerprint="5A2901D6ADA3D18260B9C6DFE2133C95D74B9EEF6AE0E5DC334C8454D1477DF4" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
16+
<certificate fingerprint="CF7AC17AD047ECD5FDC36822031B12D4EF078B6F2B4C5E6BA41F8FF2CF4BAD67" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
17+
<certificate fingerprint="C474CE76007D02394E0DA5E4DE7C14C680F9E282013CFEF653EF5DB71FDF61F8" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
18+
<certificate fingerprint="1F4B311D9ACC115C8DC8018B5A49E00FCE6DA8E2855F9F014CA6F34570BC482D" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
19+
</repository>
20+
</trustedSigners>
21+
</configuration>

0 commit comments

Comments
 (0)