-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Relative Path for the AppShell #2
Comments
That is not true. You can use NuGet package paths. This is also the recommended way. |
Agree, but the emulator is looking at var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
var name = assembly.GetCustomAttribute<Piral.Blazor.Sdk.AppShellAttribute>()!.Name.ToLowerInvariant();
var path = Path.Combine(userProfile, ".nuget", "packages", name); So when working on a Solution with Shell and Pilet, we have to pack the nuget and copy it to the If we specify an absolute folder to the /bin of the shell, the emulator seems to work, but maybe this as some side effects. Why don't allow relative path to the /bin ? or to another folder where nuget package can be found? |
I don't know. Well, at some point you need to pack and distribute; when that is would be up to you. The ideal situation is that a local shell is detected and just used.
This is intentional. So this works; absolute paths always work. The problem with relative paths is defining what the path is relative to. You would think it should be the csproj, but we don't know the csproj and we are actually running from some subdirectory of |
New Feature Proposal
Add capability to Emulator to load app shell from a relative path to the Pilet.
For now, we can use an app shell using an absolute path.
Description
We can add an attribute to
<AppShell />
like ../../path/to/shellBackground
This will allow faster dev/test on local environment.
The text was updated successfully, but these errors were encountered: