Skip to content

Commit 29bc11e

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Add our implementation of JWT manifest reading and reporting devlooped/oss@a0ae727 - Add grace period support post-install, simplify analyzer/generator devlooped/oss@75d492d - Update to newest JsonWebTokens devlooped/oss@068140b - Fix path to jwk.ps1 alongside the SponsorLink.targets devlooped/oss@c4830fc - Fix error due to writing an int rather than a byte devlooped/oss@c5f5b4e - ILRepack requires Windows as-is devlooped/oss@7295d74 - Minimal docs on consuming devlooped/oss@827a1d1 - Add nullable and generated code annotations devlooped/oss@b2a11fa - Introduce lazy-init of sponsoring status, simplify diagnostics devlooped/oss@5009784 - Remove dependency on ThisAssembly devlooped/oss@c879f25 - Improve versioning of sample package devlooped/oss@3b943f5 - Whitespace and formatting devlooped/oss@d74f511 - Fix tests loading the right analyzer assemblies devlooped/oss@ae166f7 - Make sure we report only once per product for entire solution devlooped/oss@4b7f922 - Remove unused tracing overloads devlooped/oss@08a8488 - Dynamically fetch devlooped JWK from github devlooped/oss@55124bc - Replace JWT package in tests targets too devlooped/oss@ba1310c - Update to checkout@v4 devlooped/oss@5fb1723 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - Update dotnet-file.yml with fix to create pull request action devlooped/oss@11a331d - Don't add random wait on manual dotnet-file runs devlooped/oss@7afe350 - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f - Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59 - Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2 - Improve default value for GenerateDocumentationFile devlooped/oss@b76de49
1 parent 714d162 commit 29bc11e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3140
-81
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ on:
1717

1818
env:
1919
DOTNET_NOLOGO: true
20-
VersionPrefix: 42.42.${{ github.run_number }}
21-
VersionLabel: ${{ github.ref }}
2220
PackOnBuild: true
2321
GeneratePackageOnBuild: true
22+
VersionPrefix: 42.42.${{ github.run_number }}
23+
VersionLabel: ${{ github.ref }}
2424
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2525

2626
defaults:
@@ -34,7 +34,7 @@ jobs:
3434
matrix: ${{ steps.lookup.outputs.matrix }}
3535
steps:
3636
- name: 🤘 checkout
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3838

3939
- name: 🔎 lookup
4040
id: lookup
@@ -53,7 +53,7 @@ jobs:
5353
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5454
steps:
5555
- name: 🤘 checkout
56-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5757
with:
5858
submodules: recursive
5959
fetch-depth: 0
@@ -90,7 +90,7 @@ jobs:
9090
runs-on: ubuntu-latest
9191
steps:
9292
- name: 🤘 checkout
93-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
9494
with:
9595
submodules: recursive
9696
fetch-depth: 0

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github_token: ${{ secrets.GITHUB_TOKEN }}
1818

1919
- name: 🤘 checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
ref: main

.github/workflows/dotnet-file.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: 🤘 checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030
ref: main
3131
token: ${{ env.GH_TOKEN }}
3232

3333
- name: ⌛ rate
3434
shell: pwsh
35+
if: github.event_name != 'workflow_dispatch'
3536
run: |
3637
# add random sleep since we run on fixed schedule
3738
sleep (get-random -max 60)
@@ -70,7 +71,7 @@ jobs:
7071
validate: false
7172

7273
- name: ✍ pull request
73-
uses: peter-evans/create-pull-request@v4
74+
uses: peter-evans/create-pull-request@v6
7475
with:
7576
base: main
7677
branch: dotnet-file-sync

.github/workflows/includes.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: 🤘 checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
token: ${{ env.GH_TOKEN }}
2727

2828
- name: +Mᐁ includes
2929
uses: devlooped/actions-includes@v1
3030

3131
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v4
32+
uses: peter-evans/create-pull-request@v6
3333
with:
34+
add-paths: '**/*.md'
3435
base: main
3536
branch: markdown-includes
3637
delete-branch: true

.github/workflows/os-matrix.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[ "ubuntu-latest", "macOS-latest", "windows-latest" ]

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ env:
1212
Configuration: Release
1313
PackOnBuild: true
1414
GeneratePackageOnBuild: true
15+
VersionLabel: ${{ github.ref }}
1516
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1617

1718
jobs:
1819
publish:
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: 🤘 checkout
22-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2324
with:
2425
submodules: recursive
2526
fetch-depth: 0
2627

2728
- name: 🙏 build
28-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v} -bl:build.binlog
29+
run: dotnet build -m:1 -bl:build.binlog
2930

3031
- name: 🧪 test
3132
uses: ./.github/workflows/test

.github/workflows/sponsor.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.netconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,3 @@
129129
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
130130
etag = ddb17acb5872e9e69a76f9dec0ca590f25382caa2ccf750df058dcabb674db2b
131131
weak
132-
[file ".github/workflows/sponsor.yml"]
133-
url = https://github.com/devlooped/oss/blob/main/.github/workflows/sponsor.yml
134-
sha = 8990ebb36199046e0b8098bad9e46dcef739c56e
135-
etag = e1dc114d2e8b57d50649989d32dbf0c9080ec77da3738a4cc79e9256d6ca5d3e
136-
weak

readme.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,12 @@ respectively.
271271
[![Kori Francis](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png "Kori Francis")](https://github.com/kfrancis)
272272
[![Toni Wenzel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png "Toni Wenzel")](https://github.com/twenzel)
273273
[![Giorgi Dalakishvili](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Giorgi.png "Giorgi Dalakishvili")](https://github.com/Giorgi)
274-
[![Mike James](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MikeCodesDotNET.png "Mike James")](https://github.com/MikeCodesDotNET)
274+
[![Uno Platform](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png "Uno Platform")](https://github.com/unoplatform)
275275
[![Dan Siegel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png "Dan Siegel")](https://github.com/dansiegel)
276276
[![Reuben Swartz](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png "Reuben Swartz")](https://github.com/rbnswartz)
277277
[![Jacob Foshee](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png "Jacob Foshee")](https://github.com/jfoshee)
278278
[![](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png "")](https://github.com/Mrxx99)
279279
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson")](https://github.com/eajhnsn1)
280-
[![Norman Mackay](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/mackayn.png "Norman Mackay")](https://github.com/mackayn)
281-
[![Certify The Web](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/certifytheweb.png "Certify The Web")](https://github.com/certifytheweb)
282280
[![Ix Technologies B.V.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png "Ix Technologies B.V.")](https://github.com/IxTechnologies)
283281
[![David JENNI](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png "David JENNI")](https://github.com/davidjenni)
284282
[![Jonathan ](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png "Jonathan ")](https://github.com/Jonathan-Hickey)
@@ -288,14 +286,14 @@ respectively.
288286
[![Seann Alexander](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/seanalexander.png "Seann Alexander")](https://github.com/seanalexander)
289287
[![Tino Hager](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png "Tino Hager")](https://github.com/tinohager)
290288
[![Mark Seemann](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ploeh.png "Mark Seemann")](https://github.com/ploeh)
291-
[![Angelo Belchior](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/angelobelchior.png "Angelo Belchior")](https://github.com/angelobelchior)
292289
[![Ken Bonny](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png "Ken Bonny")](https://github.com/KenBonny)
293290
[![Simon Cropp](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png "Simon Cropp")](https://github.com/SimonCropp)
294291
[![agileworks-eu](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png "agileworks-eu")](https://github.com/agileworks-eu)
295292
[![sorahex](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png "sorahex")](https://github.com/sorahex)
296293
[![Zheyu Shen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png "Zheyu Shen")](https://github.com/arsdragonfly)
297294
[![Vezel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png "Vezel")](https://github.com/vezel-dev)
298-
[![Georg Jung](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/georg-jung.png "Georg Jung")](https://github.com/georg-jung)
295+
[![ChilliCream](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png "ChilliCream")](https://github.com/ChilliCream)
296+
[![4OTC](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png "4OTC")](https://github.com/4OTC)
299297
300298

301299
<!-- sponsors.md -->

src/Directory.Build.props

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646

4747
<PropertyGroup Label="Build">
4848
<Configuration Condition="'$(Configuration)' == '' and $(CI)">Release</Configuration>
49-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
50-
<GenerateDocumentationFile Condition="$(MSBuildProjectName.Contains('Tests'))">false</GenerateDocumentationFile>
5149
<LangVersion>Latest</LangVersion>
5250

5351
<!-- See https://docs.microsoft.com/en-us/dotnet/standard/assembly/reference-assemblies -->
@@ -118,6 +116,8 @@
118116

119117
<PropertyGroup Label="Version" Condition="$(VersionLabel) != ''">
120118
<_VersionLabel>$(VersionLabel.Replace('refs/heads/', ''))</_VersionLabel>
119+
<_VersionLabel>$(_VersionLabel.Replace('refs/tags/v', ''))</_VersionLabel>
120+
121121
<!-- For PRs, we just need a fixed package version numbered after the PR # itself, so remove the commits # at the end -->
122122
<_VersionLabel Condition="$(_VersionLabel.Contains('refs/pull/'))">$(VersionLabel.TrimEnd('.0123456789'))</_VersionLabel>
123123
<!-- Next replace the prefix for simply 'pr', so we end up with 'pr99/merge' by default -->
@@ -128,7 +128,9 @@
128128
<_VersionLabel>$(_VersionLabel.Replace('/', '-'))</_VersionLabel>
129129

130130
<!-- Set sanitized version to the actual version suffix used in build/pack -->
131-
<VersionSuffix>$(_VersionLabel)</VersionSuffix>
131+
<VersionSuffix Condition="!$(VersionLabel.Contains('refs/tags/'))">$(_VersionLabel)</VersionSuffix>
132+
<!-- Special case for tags, the label is actually the version. Backs compat since passed-in value overrides MSBuild-set one -->
133+
<Version Condition="$(VersionLabel.Contains('refs/tags/'))">$(_VersionLabel)</Version>
132134
</PropertyGroup>
133135

134136
<ItemGroup Label="ThisAssembly.Project">
@@ -142,6 +144,16 @@
142144
<ProjectProperty Include="PublicKeyToken" />
143145
</ItemGroup>
144146

147+
<ItemGroup Label="Throw">
148+
<Using Include="System.ArgumentException" Static="true" />
149+
<Using Include="System.ArgumentOutOfRangeException" Static="true" />
150+
<Using Include="System.ArgumentNullException" Static="true" />
151+
</ItemGroup>
152+
145153
<Import Project="Directory.props" Condition="Exists('Directory.props')"/>
146154
<Import Project="Directory.props.user" Condition="Exists('Directory.props.user')" />
155+
156+
<!-- Implemented by SDK in .targets, guaranteeing it's overwritten. Added here since we add a DependsOnTargets to it.
157+
Covers backwards compatiblity with non-SDK projects. -->
158+
<Target Name="InitializeSourceControlInformation" />
147159
</Project>

0 commit comments

Comments
 (0)