Skip to content

Commit

Permalink
Fix IL3000 warning on Android
Browse files Browse the repository at this point in the history
> osu-framework\osu.Framework.Tests\IO\TestOnlineStore.cs(102,35): warning IL3000: 'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
  • Loading branch information
Susko3 committed May 23, 2024
1 parent f6fd752 commit 4acf0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework.Tests/IO/TestOnlineStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void TestNullUrlReturnsNull()
public void TestFileUrlFails([Values(true, false)] bool async)
{
// Known, guaranteed file path.
string path = new Uri(RuntimeInfo.EntryAssembly.Location).AbsoluteUri;
string path = new Uri(AppContext.BaseDirectory).AbsoluteUri;

byte[]? result = async
? store.GetAsync(path).GetResultSafely()
Expand Down

0 comments on commit 4acf0f3

Please sign in to comment.