You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately since #17078 is not getting reopened, I am creating this issue.
When a MAUI with Razor project (Sdk="Microsoft.NET.Sdk.Razor") is compiled on MacOS with dotnet build, if there is a JSON file, it always fails with the following error:
MyFile/test-ja.json : error : The path '../../../../../../../../../Users/lukevo/Documents/Temp/TestLib/MyFile/test-ja.json' would result in a file outside of the app bundle and cannot be used. [/Users/lukevo/Documents/Temp/TestLib/TestLib.csproj::TargetFramework=net8.0-ios]
MyFile/test-ja.json : error : [/Users/lukevo/Documents/Temp/TestLib/TestLib.csproj::TargetFramework=net8.0-ios]
MyFile/test.json : error : The path '../../../../../../../../../Users/lukevo/Documents/Temp/TestLib/MyFile/test.json' would result in a file outside of the app bundle and cannot be used. [/Users/lukevo/Documents/Temp/TestLib/TestLib.csproj::TargetFramework=net8.0-ios]
MyFile/test.json : error : [/Users/lukevo/Documents/Temp/TestLib/TestLib.csproj::TargetFramework=net8.0-ios]
It doesn't matter if the JSON is referred by the project or not. No matter which combination you use below, the error always shows up.
Description
Unfortunately since #17078 is not getting reopened, I am creating this issue.
When a MAUI with Razor project (
Sdk="Microsoft.NET.Sdk.Razor"
) is compiled on MacOS withdotnet build
, if there is a JSON file, it always fails with the following error:It doesn't matter if the JSON is referred by the project or not. No matter which combination you use below, the error always shows up.
It doesn't happen when compiling the same code on Windows.
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/datvm/MauiHybridJsonFail
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
Build on Windows.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: