Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
lfs: true

- name: Setup .NET (With cache)
uses: actions/setup-dotnet@v5.0.1
uses: actions/setup-dotnet@v5.3.0
with:
dotnet-version: |
6.0.x
Expand All @@ -37,12 +37,20 @@ jobs:
**/global.json
**/nuget.config

- name: NBGV
- name: Install (or update) nbgv tool
run: dotnet tool update --global nbgv

- name: Set NBGV cloud variables
run: nbgv cloud -a

- name: Expose NBGV version as step outputs
id: nbgv
uses: dotnet/nbgv@v0.5.1
with:
setAllVars: true

shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
"SemVer2=$env:NBGV_SemVer2" >> $env:GITHUB_OUTPUT
"PrereleaseVersion=$env:NBGV_PrereleaseVersion" >> $env:GITHUB_OUTPUT

- name: NuGet Restore
run: dotnet restore DynamicData.sln
working-directory: src
Expand Down
35 changes: 23 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
Write-Host "OK: publishing from '$env:REF_NAME'."

- name: Setup .NET (With cache)
uses: actions/setup-dotnet@v5.0.1
uses: actions/setup-dotnet@v5.3.0
with:
dotnet-version: |
6.0.x
Expand All @@ -56,11 +56,19 @@ jobs:
**/global.json
**/nuget.config

- name: NBGV
- name: Install (or update) nbgv tool
run: dotnet tool update --global nbgv

- name: Set NBGV cloud variables
run: nbgv cloud -a

- name: Expose NBGV version as step outputs
id: nbgv
uses: dotnet/nbgv@v0.5.1
with:
setAllVars: true
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
"SemVer2=$env:NBGV_SemVer2" >> $env:GITHUB_OUTPUT
"PrereleaseVersion=$env:NBGV_PrereleaseVersion" >> $env:GITHUB_OUTPUT

- name: Verify version matches branch policy
shell: pwsh
Expand Down Expand Up @@ -126,21 +134,24 @@ jobs:
if ($LASTEXITCODE -ne 0) { throw "dotnet nuget push failed for $($pkg.Name) (exit $LASTEXITCODE)." }
}

- name: Changelog
uses: glennawatson/ChangeLog@0464dd89b26f61fecf24b41d675f8ffdb11c4c3f # v1
id: changelog
- name: Install GitReleaseNoteGenerator
run: dotnet tool install -g GitReleaseNoteGenerator

- name: Generate release notes
env:
GITHUB_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ steps.nbgv.outputs.SemVer2 }}
shell: pwsh
run: git-release-notes --release-version "$env:RELEASE_VERSION" --output-file release-notes.md

- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ steps.nbgv.outputs.SemVer2 }}
IS_PRERELEASE: ${{ steps.nbgv.outputs.PrereleaseVersion != '' }}
BODY: ${{ steps.changelog.outputs.commitLog }}
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$notesPath = Join-Path $env:RUNNER_TEMP 'release-notes.md'
Set-Content -Path $notesPath -Value $env:BODY -Encoding utf8 -NoNewline
$cmd = @('release', 'create', $env:TAG, '--title', $env:TAG, '--notes-file', $notesPath, '--target', $env:GITHUB_SHA)
$cmd = @('release', 'create', $env:TAG, '--title', $env:TAG, '--notes-file', 'release-notes.md', '--target', $env:GITHUB_SHA)
if ($env:IS_PRERELEASE -eq 'true') { $cmd += '--prerelease' }
gh @cmd
7 changes: 7 additions & 0 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
<Product>$(AssemblyName) ($(TargetFramework))</Product>
</PropertyGroup>

<ItemGroup>
<!-- Automatic file nesting, for .cs files-->
<Compile Update="**\*.*.cs">
<DependentUpon>$([System.Text.RegularExpressions.Regex]::Replace(%(Filename), '\.[^\.]+$', '.cs'))</DependentUpon>
</Compile>
</ItemGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants>$(DefineConstants);P_LINQ;SUPPORTS_BINDINGLIST</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,14 @@ namespace DynamicData
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination, TKey>> TransformAsync<TDestination, TSource, TKey>(this System.IObservable<DynamicData.IChangeSet<TSource, TKey>> source, System.Func<TSource, DynamicData.Kernel.Optional<TSource>, TKey, System.Threading.CancellationToken, System.Threading.Tasks.Task<TDestination>> transformFactory, DynamicData.TransformAsyncOptions options)
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination, TKey>> TransformAsync<TDestination, TSource, TKey>(this System.IObservable<DynamicData.IChangeSet<TSource, TKey>> source, System.Func<TSource, DynamicData.Kernel.Optional<TSource>, TKey, System.Threading.CancellationToken, System.Threading.Tasks.Task<TDestination>> transformFactory, System.IObservable<System.Func<TSource, TKey, bool>>? forceTransform = null)
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination, TKey>> TransformImmutable<TDestination, TSource, TKey>(this System.IObservable<DynamicData.IChangeSet<TSource, TKey>> source, System.Func<TSource, TDestination> transformFactory)
where TDestination : notnull
where TSource : notnull
Expand Down Expand Up @@ -2108,6 +2116,14 @@ namespace DynamicData
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination, TKey>> TransformSafeAsync<TDestination, TSource, TKey>(this System.IObservable<DynamicData.IChangeSet<TSource, TKey>> source, System.Func<TSource, DynamicData.Kernel.Optional<TSource>, TKey, System.Threading.CancellationToken, System.Threading.Tasks.Task<TDestination>> transformFactory, System.Action<DynamicData.Kernel.Error<TSource, TKey>> errorHandler, DynamicData.TransformAsyncOptions options)
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination, TKey>> TransformSafeAsync<TDestination, TSource, TKey>(this System.IObservable<DynamicData.IChangeSet<TSource, TKey>> source, System.Func<TSource, DynamicData.Kernel.Optional<TSource>, TKey, System.Threading.CancellationToken, System.Threading.Tasks.Task<TDestination>> transformFactory, System.Action<DynamicData.Kernel.Error<TSource, TKey>> errorHandler, System.IObservable<System.Func<TSource, TKey, bool>>? forceTransform = null)
where TDestination : notnull
where TSource : notnull
where TKey : notnull { }
public static System.IObservable<DynamicData.IChangeSet<DynamicData.Node<TObject, TKey>, TKey>> TransformToTree<TObject, TKey>(this System.IObservable<DynamicData.IChangeSet<TObject, TKey>> source, System.Func<TObject, TKey> pivotOn, System.IObservable<System.Func<DynamicData.Node<TObject, TKey>, bool>>? predicateChanged = null)
where TObject : class
where TKey : notnull { }
Expand Down Expand Up @@ -2481,6 +2497,9 @@ namespace DynamicData
public static System.IObservable<DynamicData.IChangeSet<TDestination>> TransformAsync<TSource, TDestination>(this System.IObservable<DynamicData.IChangeSet<TSource>> source, System.Func<TSource, DynamicData.Kernel.Optional<TDestination>, int, System.Threading.Tasks.Task<TDestination>> transformFactory, bool transformOnRefresh = false)
where TSource : notnull
where TDestination : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination>> TransformAsync<TSource, TDestination>(this System.IObservable<DynamicData.IChangeSet<TSource>> source, System.Func<TSource, DynamicData.Kernel.Optional<TDestination>, int, System.Threading.CancellationToken, System.Threading.Tasks.Task<TDestination>> transformFactory, bool transformOnRefresh = false)
where TSource : notnull
where TDestination : notnull { }
public static System.IObservable<DynamicData.IChangeSet<TDestination>> TransformMany<TDestination, TSource>(this System.IObservable<DynamicData.IChangeSet<TSource>> source, System.Func<TSource, DynamicData.IObservableList<TDestination>> manySelector, System.Collections.Generic.IEqualityComparer<TDestination>? equalityComparer = null)
where TDestination : notnull
where TSource : notnull { }
Expand Down Expand Up @@ -3100,4 +3119,4 @@ namespace DynamicData.Tests
public void Dispose() { }
protected virtual void Dispose(bool isDisposing) { }
}
}
}
Loading
Loading