Skip to content

Commit

Permalink
feat: maui
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 19, 2021
1 parent 8e48712 commit 055aa14
Show file tree
Hide file tree
Showing 112 changed files with 2,436 additions and 11 deletions.
338 changes: 338 additions & 0 deletions TheIdServer.sln

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<!-- Default nuget source -->
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="maui-preview" value="https://aka.ms/maui-preview/index.json" />
</packageSources>
<packageRestore>
<add key="enabled" value="True" />
Expand Down
10 changes: 2 additions & 8 deletions src/Aguacongas.TheIdServer.BlazorApp/App.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public partial class App

private Task OnNavigateAsync(NavigationContext args)
{
_logger.LogDebug($"OnNavigateAsync {args.Path}");
var path = args.Path.Split("/")[0];
if (path == "protectresource")
{
Expand All @@ -54,20 +53,15 @@ private Task OnNavigateAsync(NavigationContext args)
}

pageKind = _pageKindList.FirstOrDefault(k => path == k.ToLower());
if (pageKind != null)
{
return LoadAssemblyAsync($"Aguacongas.TheIdServer.BlazorApp.Pages.{pageKind}.dll");
}

return Task.CompletedTask;
return pageKind != null ? LoadAssemblyAsync($"Aguacongas.TheIdServer.BlazorApp.Pages.{pageKind}.dll") : Task.CompletedTask;
}

private async Task LoadAssemblyAsync(string assemblyName)
{
_logger.LogDebug($"LoadAssemblyAsync {assemblyName}");
var assemblies = await _assemblyLoader.LoadAssembliesAsync(
new[] { assemblyName }).ConfigureAwait(false);
_lazyLoadedAssemblies.AddRange(assemblies.Where(a => !_lazyLoadedAssemblies.Any(l => l.FullName == a.FullName)));
_lazyLoadedAssemblies.AddRange(assemblies.Where(a => !_lazyLoadedAssemblies.Any(l => l.FullName == a.FullName)));
}
}
}
1 change: 1 addition & 0 deletions src/Aguacongas.TheIdServer.BlazorApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ COPY ["src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Pages.Users/Aguacongas.The
COPY ["src/IdentityServer/Aguacongas.IdentityServer.Admin.Http.Store/Aguacongas.IdentityServer.Admin.Http.Store.csproj", "src/IdentityServer/Aguacongas.IdentityServer.Admin.Http.Store/"]
COPY ["src/IdentityServer/Aguacongas.IdentityServer.Store/Aguacongas.IdentityServer.Store.csproj", "src/IdentityServer/Aguacongas.IdentityServer.Store/"]
COPY ["src/Aguacongas.TheIdServer.BlazorApp/nginx.conf", "src/Aguacongas.TheIdServer.BlazorApp/"]
RUN dotnet workload install microsoft-net-sdk-blazorwebassembly-aot
RUN dotnet restore "src/Aguacongas.TheIdServer.BlazorApp/Aguacongas.TheIdServer.BlazorApp.csproj"
COPY . .
WORKDIR "/src/src/Aguacongas.TheIdServer.BlazorApp"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '15.0'">
<VisualStudioVersion>15.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebuggerType>ManagedOnly</DebuggerType>
</PropertyGroup>
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x86">
<Configuration>Debug</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x86">
<Configuration>Release</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|arm64">
<Configuration>Debug</Configuration>
<Platform>arm64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|arm64">
<Configuration>Release</Configuration>
<Platform>arm64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup>
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath>
<PathToXAMLWinRTImplementations>Aguacongas.TheIdServer.MAUI.WinUI3\</PathToXAMLWinRTImplementations>
</PropertyGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
<PropertyGroup>
<ProjectGuid>D34FEF46-9399-4EDA-B628-A3E9A343859D</ProjectGuid>
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<AssetTargetFallback>net6.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
<EntryPointProjectUniqueName>..\Aguacongas.TheIdServer.MAUI.WinUI3\Aguacongas.TheIdServer.MAUI.WinUI3.csproj</EntryPointProjectUniqueName>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Images\LargeTile.scale-100.png" />
<Content Include="Images\LargeTile.scale-125.png" />
<Content Include="Images\LargeTile.scale-150.png" />
<Content Include="Images\LargeTile.scale-200.png" />
<Content Include="Images\LargeTile.scale-400.png" />
<Content Include="Images\SmallTile.scale-100.png" />
<Content Include="Images\SmallTile.scale-125.png" />
<Content Include="Images\SmallTile.scale-150.png" />
<Content Include="Images\SmallTile.scale-200.png" />
<Content Include="Images\SmallTile.scale-400.png" />
<Content Include="Images\SplashScreen.scale-100.png" />
<Content Include="Images\SplashScreen.scale-125.png" />
<Content Include="Images\SplashScreen.scale-150.png" />
<Content Include="Images\SplashScreen.scale-200.png" />
<Content Include="Images\LockScreenLogo.scale-200.png" />
<Content Include="Images\SplashScreen.scale-400.png" />
<Content Include="Images\Square150x150Logo.scale-100.png" />
<Content Include="Images\Square150x150Logo.scale-125.png" />
<Content Include="Images\Square150x150Logo.scale-150.png" />
<Content Include="Images\Square150x150Logo.scale-200.png" />
<Content Include="Images\Square150x150Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-24.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.scale-100.png" />
<Content Include="Images\Square44x44Logo.scale-125.png" />
<Content Include="Images\Square44x44Logo.scale-150.png" />
<Content Include="Images\Square44x44Logo.scale-200.png" />
<Content Include="Images\Square44x44Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.targetsize-16.png" />
<Content Include="Images\Square44x44Logo.targetsize-24.png" />
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Images\Square44x44Logo.targetsize-256.png" />
<Content Include="Images\Square44x44Logo.targetsize-32.png" />
<Content Include="Images\Square44x44Logo.targetsize-48.png" />
<Content Include="Images\StoreLogo.scale-100.png" />
<Content Include="Images\StoreLogo.scale-125.png" />
<Content Include="Images\StoreLogo.scale-150.png" />
<Content Include="Images\StoreLogo.scale-200.png" />
<Content Include="Images\StoreLogo.scale-400.png" />
<Content Include="Images\Wide310x150Logo.scale-100.png" />
<Content Include="Images\Wide310x150Logo.scale-125.png" />
<Content Include="Images\Wide310x150Logo.scale-150.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" />
<Content Include="Images\Wide310x150Logo.scale-400.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Aguacongas.TheIdServer.MAUI.WinUI3\Aguacongas.TheIdServer.MAUI.WinUI3.csproj">
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
<PublishProfile>Properties\PublishProfiles\win10-$(Platform).pubxml</PublishProfile>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ProjectReunion" Version="[0.5.6]">
<IncludeAssets>build</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="[0.5.6]">
<IncludeAssets>build</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="RemoveUnusedAppXTargets" BeforeTargets="_GenerateAppxPackageRecipeFile">
<ItemGroup>
<_AppxItemsToRemove Include="@(AppxPackagePayload)" Condition=" $([System.String]::Copy(%(AppxPackagePayload.Identity)).Contains('Microsoft.AspNetCore.Components.WebView.Maui')) " />
<AppxPackagePayload Remove="@(_AppxItemsToRemove)" />
</ItemGroup>
</Target>

<Target Name="RemoveOutOfDateSourceItemsTargets" BeforeTargets="_CopyOutOfDateSourceItemsToOutputDirectory">
<ItemGroup>
<_SourceItemsToCopyToRemove Include="@(_SourceItemsToCopyToOutputDirectory)" Condition=" $([System.String]::Copy(%(_SourceItemsToCopyToOutputDirectory.Identity)).Contains('Microsoft.AspNetCore.Components.WebView.Maui')) " />
<_SourceItemsToCopyToOutputDirectory Remove="@(_SourceItemsToCopyToRemove)" />
</ItemGroup>
</Target>

<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>

<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity
Name="919dc1f9-17a9-48b3-81f8-0b8016bdfbf7"
Publisher="CN=shane"
Version="1.0.0.0" />

<Properties>
<DisplayName>WeatherTwentyOne</DisplayName>
<PublisherDisplayName>Microsoft</PublisherDisplayName>
<Logo>Images\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>

<Resources>
<Resource Language="x-generate"/>
</Resources>

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="WeatherTwentyOne"
Description="WeatherTwentyOne"
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" Square71x71Logo="Images\SmallTile.png" Square310x310Logo="Images\LargeTile.png" ShortName="W21"/>
<uap:SplashScreen Image="Images\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.19041</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>Aguacongas.TheIdServer.MAUI</RootNamespace>
<ApplicationManifest>Windows\app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<EnableDefaultPageItems>False</EnableDefaultPageItems>
<EnableDefaultApplicationDefinition>False</EnableDefaultApplicationDefinition>
<StartupObject>Aguacongas.TheIdServer.MAUI.WinUI.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<StaticWebAssetBasePath>/</StaticWebAssetBasePath>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="6.0.100-preview.4.*">
<ExcludeAssets>build</ExcludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.0-preview.4.*" />
<PackageReference Include="Microsoft.ProjectReunion" Version="[0.5.6]">
<IncludeAssets>build</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.4.*" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="6.0.100-preview.4.*" />
<PackageReference Include="Microsoft.Maui.Resizetizer" Version="6.0.100-preview.4.*" />
</ItemGroup>

<ItemGroup>
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.19041.16" />
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.19041.16" />
</ItemGroup>

<ItemGroup>
<Manifest Include="$(ApplicationManifest)" />
<ApplicationDefinition Include="Windows\App.xaml">
<Generator>MSBuild:Compile</Generator>
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
</ApplicationDefinition>
<Page Include="Windows\*.xaml" Exclude="Windows\App.xaml">
<Generator>MSBuild:Compile</Generator>
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
</Page>
</ItemGroup>

<PropertyGroup>
<OtherProjectRoot>..\Aguacongas.TheIdServer.MAUI</OtherProjectRoot>
<OtherProjectAbsoluteRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\$(OtherProjectRoot)'))</OtherProjectAbsoluteRoot>
</PropertyGroup>

<ItemGroup>
<!-- Exclude non-Windows platform-specific files -->
<ExcludeCompile Include="$(OtherProjectRoot)\**\Android\**\*.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\*.Android.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\iOS\**\*.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\*.iOS.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\MacCatalyst\**\*.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\*.MacCatalyst.cs" />

<!-- Exclude generated files -->
<ExcludeCompile Include="$(OtherProjectRoot)\**\*.designer.cs" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\bin\**\*" />
<ExcludeCompile Include="$(OtherProjectRoot)\**\obj\**\*" />

<Compile Include="$(OtherProjectRoot)\**\*.cs" Link="$([MSBuild]::MakeRelative('$(OtherProjectAbsoluteRoot)', '%(FullPath)'))" Exclude="@(ExcludeCompile)" />

<EmbeddedResource Include="$(OtherProjectRoot)\wwwroot\**\*" Link="$([MSBuild]::MakeRelative('$(OtherProjectAbsoluteRoot)', '%(FullPath)'))" />

<RazorComponent Include="$(OtherProjectRoot)\**\*.razor" Link="$([MSBuild]::MakeRelative('$(OtherProjectAbsoluteRoot)', '%(FullPath)'))" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="Windows\*.xaml" />
<EmbeddedResource Include="$(OtherProjectRoot)\*.xaml" Link="%(FileName)%(Extension)" />
</ItemGroup>
<ItemGroup>
<MauiImage Include="$(OtherProjectRoot)\Resources\**\*.svg" Link="Resources\%(RecursiveDir)%(FileName)%(Extension)" />
<MauiFont Include="$(OtherProjectRoot)\Resources\Fonts\**\*.ttf" Link="Resources\Fonts\%(RecursiveDir)%(FileName)%(Extension)" />
</ItemGroup>

<Target Name="RemoveUnusedMSBuildTargets" BeforeTargets="_CopyOutOfDateSourceItemsToOutputDirectory">
<!-- Remove errantly included MSBuild targets and props so they don't get included in the output directory as resources/assets -->
<ItemGroup>
<_SourceItemsToRemove Include="@(_SourceItemsToCopyToOutputDirectory)" Condition=" $([System.String]::Copy(%(_SourceItemsToCopyToOutputDirectory.Identity)).Contains('Microsoft.AspNetCore.Components.WebView.Maui')) " />
<_SourceItemsToCopyToOutputDirectory Remove="@(_SourceItemsToRemove)" />
</ItemGroup>
</Target>

<!-- Targets for converting Static Web Assets to embedded resources -->
<Target Name="CopyStaticWebAssetsToOutputFolder" BeforeTargets="GetCopyToOutputDirectoryItems" DependsOnTargets="ResolveStaticWebAssetsInputs">
<ItemGroup>
<AllItemsFullPathWithTargetPath Include="%(StaticWebAsset.Identity)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>$([System.String]::Copy('wwwroot\%(StaticWebAsset.BasePath)\%(StaticWebAsset.RelativePath)').Replace('/','\').Replace('\\\','\').Replace('\\','\'))</TargetPath>
</AllItemsFullPathWithTargetPath>
</ItemGroup>
</Target>

<Target Name="ConvertToEmbeddedFilesManifestItems" BeforeTargets="AssignTargetPaths" DependsOnTargets="ResolveStaticWebAssetsInputs">
<ItemGroup>
<!-- Prevent any previously-existing embedded resources from being included in the manifest. We want only
StaticWebAssets to be included in the manifest. -->
<EmbeddedResource>
<!--<ExcludeFromManifest>true</ExcludeFromManifest>-->
</EmbeddedResource>

<EmbeddedResource Include="%(StaticWebAsset.Identity)" Link="$([System.String]::Copy('wwwroot\%(StaticWebAsset.BasePath)\%(StaticWebAsset.RelativePath)').Replace('/','\').Replace('\\\','\').Replace('\\','\'))" />

</ItemGroup>
</Target>

<Target Name="EnsureBundles" BeforeTargets="CoreCompile" DependsOnTargets="BundleScopedCssFiles" />

<Target Name="_BlazorDesktopReplaceBundle" AfterTargets="_AddGeneratedScopedCssFilesForReference" DependsOnTargets="_ComputeCssBundles">
<ItemGroup>
<StaticWebAsset Include="@(_AppBundleStaticWebAsset)">
<SourceType></SourceType>
</StaticWebAsset>
<Staticwebasset Remove="@(_ProjectBundleStaticWebAsset)" />
</ItemGroup>
</Target>

<PropertyGroup>
<GetCurrentProjectStaticWebAssetsDependsOn>
$(GetCurrentProjectStaticWebAssets);
_BlazorDesktopReplaceBundle2;
</GetCurrentProjectStaticWebAssetsDependsOn>
</PropertyGroup>

<Target Name="_BlazorDesktopReplaceBundle2" DependsOnTargets="_PrepareForBundling">
<ItemGroup>
<_AppBundleStaticWebAsset Include="$(_ScopedCssOutputPath)" Condition="Exists('$(_ScopedCssOutputPath)')">
<SourceType></SourceType>
<SourceId>$(PackageId)</SourceId>
<ContentRoot>$(_ScopedCssBundleContentRoot)</ContentRoot>
<BasePath>$(_ScopedCssBundleBasePath)</BasePath>
<RelativePath>$(PackageId).styles.css</RelativePath>
</_AppBundleStaticWebAsset>

<StaticWebAsset Include="@(_AppBundleStaticWebAsset)">
<SourceType></SourceType>
</StaticWebAsset>

</ItemGroup>
</Target>
</Project>
Loading

0 comments on commit 055aa14

Please sign in to comment.