Skip to content

Commit 857c960

Browse files
authored
Merge pull request #92 from maxisoft/91-missingmethodexception-method-not-found-void-systemiostreamreaderctorsystemiostream-systemtextencoding
Fix MissingMethodException with latest ASF update
2 parents 583ba7e + 5fb38fe commit 857c960

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ jobs:
169169
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
170170
needs: publish
171171
runs-on: ubuntu-latest
172+
permissions:
173+
id-token: write
174+
attestations: write
172175

173176
steps:
174177
- name: Checkout code
@@ -183,6 +186,16 @@ jobs:
183186
name: windows-latest_${{ env.PLUGIN_NAME }}-generic
184187
path: out
185188

189+
- name: Unzip and copy generic artifact
190+
run: |
191+
mkdir -p attest_provenance
192+
unzip out/${{ env.PLUGIN_NAME }}-generic.zip -d attest_provenance
193+
cp --archive out/${{ env.PLUGIN_NAME }}-generic.zip attest_provenance
194+
195+
- uses: actions/attest-build-provenance@v1
196+
with:
197+
subject-path: 'attest_provenance/*'
198+
186199
- name: Create GitHub release
187200
id: github_release
188201
uses: actions/create-release@v1.1.4

ASFFreeGames/HttpClientSimple/SimpleHttpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public sealed class HttpStreamResponse(HttpResponseMessage response, Stream? str
146146
public bool HasValidStream => stream is not null && (!EmptyStreamLazy.IsValueCreated || !ReferenceEquals(EmptyStreamLazy.Value, Stream));
147147

148148
public async Task<string> ReadAsStringAsync(CancellationToken cancellationToken) {
149-
using StreamReader reader = new(Stream, Encoding.UTF8);
149+
using StreamReader reader = new(Stream); // assume the encoding is UTF8, cannot be specified as per issue #91
150150

151151
return await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
152152
}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<PropertyGroup>
55
<PluginName>ASFFreeGames</PluginName>
6-
<Version>1.6.1.0</Version>
6+
<Version>1.6.2.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
</PropertyGroup>
99

0 commit comments

Comments
 (0)