Blazor Hybrid aka Dotnet Maui Build/Publishing Issue with iOS Target #19948
Replies: 2 comments
-
I Assume that I have Solved favicon.ico and index.html issues but the appsettings.json is biggest problem here, appsettings.json : error : The path '../../../../../../src/ProjectName/appsettings.json' would result in a file outside of the app bundle and cannot be used. Appriciate if anyone can hop in and help with this, By the way I already went through Most of the issues related this and even tried the examples in below url https://github.com/xamarin/xamarin-macios/blob/main/dotnet/BundleContents.md This is how the json files were added in csproj <ItemGroup>
<EmbeddedResource Condition="'$(Configuration)' == 'Release'" Include="appsettings.json"/>
<EmbeddedResource Condition="'$(Configuration)' == 'Debug'" Include="appsettings.development.json"/>
</ItemGroup> |
Beta Was this translation helpful? Give feedback.
-
how did you solve it? |
Beta Was this translation helpful? Give feedback.
-
Hello Folks,
Anyone has a Idea on Resolving Below Build Issues when Publishing Blazor Hybrid aka Dotnet Maui App?
wwwroot/favicon.ico : error : The path '../../../../../../src/ProjectName/wwwroot/favicon.ico' would result in a file outside of the app bundle and cannot be used.
wwwroot/index.html : error : The path '../../../../../../src/ProjectName/wwwroot/index.html' would result in a file outside of the app bundle and cannot be used.
appsettings.json : error : The path '../../../../../../src/ProjectName/appsettings.json' would result in a file outside of the app bundle and cannot be used.
This is first building Native Project that I had for Maui App which doesn't contain any Razor Components, I assume I would face the same on Shared Razor Class Library that contains all the Razor Components.
Beta Was this translation helpful? Give feedback.
All reactions