diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c9585..38c199e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Piral.Blazor.Server Changelog +## 0.5.0 (tbd) + +- Fixed issue with broken assets +- Added `PiralOptions` to configure behavior +- Added `IsolatedAssemblies` option + ## 0.4.1 (February 16, 2024) - Fixed issue with `piral-blazor-server publish-microfrontend` to take wrong path diff --git a/src/Piral.Blazor.Cli/CreateEmulatorOptions.cs b/src/Piral.Blazor.Cli/CreateEmulatorOptions.cs index ef395f7..92dfdf8 100644 --- a/src/Piral.Blazor.Cli/CreateEmulatorOptions.cs +++ b/src/Piral.Blazor.Cli/CreateEmulatorOptions.cs @@ -117,7 +117,7 @@ private void CreateNuGetPackage(string csproj, string buildDir, string outDir) var projectVersion = project.GetVersion() ?? "1.0.0"; var projectAuthors = project.GetAuthor() ?? "Piral"; var license = project.GetLicense() ?? "MIT"; - var sdkVersion = project.GetSdkVersion() ?? "0.4.1"; + var sdkVersion = project.GetSdkVersion() ?? "0.5.0"; var name = Name ?? $"{projectName}.Emulator"; var description = $"The emulator for the {projectName} application."; var fn = Path.Combine(outDir, $"{name}.nupkg"); diff --git a/src/Piral.Blazor.Cli/Piral.Blazor.Cli.csproj b/src/Piral.Blazor.Cli/Piral.Blazor.Cli.csproj index d40b66f..e755c98 100644 --- a/src/Piral.Blazor.Cli/Piral.Blazor.Cli.csproj +++ b/src/Piral.Blazor.Cli/Piral.Blazor.Cli.csproj @@ -3,7 +3,7 @@ Exe net8.0 - 0.4.1 + 0.5.0 enable enable true diff --git a/src/Piral.Blazor.Orchestrator/Piral.Blazor.Orchestrator.csproj b/src/Piral.Blazor.Orchestrator/Piral.Blazor.Orchestrator.csproj index 96de304..297f00c 100644 --- a/src/Piral.Blazor.Orchestrator/Piral.Blazor.Orchestrator.csproj +++ b/src/Piral.Blazor.Orchestrator/Piral.Blazor.Orchestrator.csproj @@ -5,7 +5,7 @@ enable true enable - 0.4.1 + 0.5.0 true true Florian Rappl diff --git a/src/Piral.Blazor.Orchestrator/README.md b/src/Piral.Blazor.Orchestrator/README.md index 4e85bac..28f446d 100644 --- a/src/Piral.Blazor.Orchestrator/README.md +++ b/src/Piral.Blazor.Orchestrator/README.md @@ -201,3 +201,16 @@ An example with more NuGet feeds: ``` As you can see the `User` and `Token` fields, which are usually required for authenticating against a private feed, are left empty. This is not a mistake, but actually a best practice. You can use the .NET secret manager to then fill these parts. More details can be found [in the Microsoft documentation](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=linux). + +## Initial Options + +The behavior of the library can be configured when the DI services are configured, e.g.: + +```cs +builder.Services.AddMicrofrontends(new() +{ + IsolatedAssemblies = ["BlazorOcticons.dll"], +}); +``` + +This will instruct the Piral orchestrator to keep loading the locally available (yet centrally provided) `BlazorOctions.dll`. diff --git a/src/Piral.Blazor.Sdk/Piral.Blazor.Sdk.csproj b/src/Piral.Blazor.Sdk/Piral.Blazor.Sdk.csproj index 8931546..18df0af 100644 --- a/src/Piral.Blazor.Sdk/Piral.Blazor.Sdk.csproj +++ b/src/Piral.Blazor.Sdk/Piral.Blazor.Sdk.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.4.1 + 0.5.0 true true Florian Rappl diff --git a/src/Piral.Blazor.Sdk/Sdk/Sdk.targets b/src/Piral.Blazor.Sdk/Sdk/Sdk.targets index 11a66ad..c789e51 100644 --- a/src/Piral.Blazor.Sdk/Sdk/Sdk.targets +++ b/src/Piral.Blazor.Sdk/Sdk/Sdk.targets @@ -29,7 +29,7 @@ - + diff --git a/src/Piral.Blazor.Shared/Piral.Blazor.Shared.csproj b/src/Piral.Blazor.Shared/Piral.Blazor.Shared.csproj index 31f7812..28365e1 100644 --- a/src/Piral.Blazor.Shared/Piral.Blazor.Shared.csproj +++ b/src/Piral.Blazor.Shared/Piral.Blazor.Shared.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.4.1 + 0.5.0 true true Florian Rappl diff --git a/src/Piral.Blazor.Shared/README.md b/src/Piral.Blazor.Shared/README.md index 16af51c..b8eac65 100644 --- a/src/Piral.Blazor.Shared/README.md +++ b/src/Piral.Blazor.Shared/README.md @@ -9,7 +9,7 @@ This is a shared library that will be automatically installed and used with `Piral.Blazor.Orchestrator` or in a micro frontend when you leverage the `Piral.Blazor.Sdk` SDK like this: ```xml - + net8.0