2026-10-01 08:09:45 +02:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
2022-02-02 20:26:14 +01:00
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2026-10-01 08:09:45 +02:00
|
|
|
<TargetFramework>net10.0</TargetFramework>
|
2022-02-14 01:51:52 +01:00
|
|
|
<Nullable>disable</Nullable>
|
2022-02-02 20:26:14 +01:00
|
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
|
|
|
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
2022-02-14 01:51:52 +01:00
|
|
|
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
|
2022-02-02 20:26:14 +01:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2022-12-15 20:03:40 +01:00
|
|
|
<PackageReference Include="BlazorZXingJs" Version="0.5.13" />
|
2026-10-01 08:09:45 +02:00
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9" />
|
|
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="10.0.9" />
|
|
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.9" PrivateAssets="all" />
|
|
|
|
|
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.9" />
|
|
|
|
|
<PackageReference Include="BlazorDownloadFileFast" Version="1.0.0.1" />
|
|
|
|
|
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
|
2022-12-02 10:19:57 +01:00
|
|
|
<PackageReference Include="DnetIndexedDb" Version="2.4.1" />
|
|
|
|
|
<PackageReference Include="Markdig" Version="0.30.4" />
|
2026-10-01 08:09:45 +02:00
|
|
|
<PackageReference Include="Microsoft.Extensions.Localization" Version="10.0.9" />
|
2022-12-16 20:19:23 +01:00
|
|
|
<PackageReference Include="Toolbelt.Blazor.HeadElement" Version="7.3.1" />
|
2022-02-02 20:26:14 +01:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2026-10-03 12:43:07 +02:00
|
|
|
<!-- Tailwind CSS standalone + daisyUI, vendored in tools/tailwind/ (see tools/tailwind.sh), compile Styles/app.css into
|
|
|
|
|
wwwroot/css/app.css on every build, offline. The output is gitignored, so on a clean clone it doesn't exist when
|
|
|
|
|
the wwwroot\** Content glob is evaluated; IncludeTailwindOutput adds it before ResolveProjectStaticWebAssets,
|
|
|
|
|
without which it would be published without its .gz/.br copies and outside service-worker-assets.js. -->
|
2026-10-03 11:24:51 +02:00
|
|
|
<PropertyGroup>
|
2026-10-03 12:43:07 +02:00
|
|
|
<TailwindVendorDir>$(MSBuildProjectDirectory)/tools/tailwind/</TailwindVendorDir>
|
|
|
|
|
<TailwindExe>$(MSBuildProjectDirectory)/.tools/tailwind/tailwindcss</TailwindExe>
|
2026-10-03 11:24:51 +02:00
|
|
|
<TailwindMode Condition="'$(Configuration)' == 'Release'">--minify</TailwindMode>
|
|
|
|
|
<TailwindMode Condition="'$(TailwindMode)' == ''">--optimize</TailwindMode>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2026-10-03 12:43:07 +02:00
|
|
|
<TailwindSource Include="Styles/**/*.css;**/*.razor;**/*.cs;wwwroot/index.html" Exclude="bin/**;obj/**;.tools/**;tools/**" />
|
2026-10-03 11:24:51 +02:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2026-10-03 12:43:07 +02:00
|
|
|
<!-- Unpacks the vendored binary when it is missing or the vendored archive changed (an upgrade). -->
|
|
|
|
|
<Target Name="EnsureTailwindTools" Inputs="$(TailwindVendorDir)tailwindcss-linux-x64.xz;tools/tailwind.sh" Outputs="$(TailwindExe)">
|
|
|
|
|
<Exec Command="bash tools/tailwind.sh prepare" WorkingDirectory="$(MSBuildProjectDirectory)" />
|
|
|
|
|
<Touch Files="$(TailwindExe)" />
|
2026-10-03 11:24:51 +02:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="TailwindCompile" DependsOnTargets="EnsureTailwindTools"
|
|
|
|
|
Condition="'$(DesignTimeBuild)' != 'true' And '$(NoBuild)' != 'true' And '$(SkipTailwind)' != 'true'"
|
2026-10-03 12:43:07 +02:00
|
|
|
Inputs="@(TailwindSource);$(TailwindExe);$(TailwindVendorDir)daisyui.mjs;$(TailwindVendorDir)daisyui-theme.mjs;$(MSBuildProjectFullPath)"
|
2026-10-03 11:24:51 +02:00
|
|
|
Outputs="wwwroot/css/app.css;$(IntermediateOutputPath)tailwind.stamp">
|
|
|
|
|
<Exec Command=""$(TailwindExe)" -i Styles/app.css -o wwwroot/css/app.css $(TailwindMode)" WorkingDirectory="$(MSBuildProjectDirectory)" />
|
|
|
|
|
<!-- The CLI leaves an unchanged output untouched, which would make this target rerun on every build. -->
|
|
|
|
|
<Touch Files="wwwroot/css/app.css;$(IntermediateOutputPath)tailwind.stamp" AlwaysCreate="true" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<Target Name="IncludeTailwindOutput" BeforeTargets="ResolveProjectStaticWebAssets" DependsOnTargets="TailwindCompile">
|
|
|
|
|
<!-- Spelled exactly like the SDK's wwwroot\** glob: publish de-duplicates by comparing OriginalItemSpec strings. -->
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Remove="wwwroot\css\app.css" />
|
|
|
|
|
<Content Include="wwwroot\css\app.css" Condition="Exists('wwwroot\css\app.css')" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Target>
|
|
|
|
|
|
2022-02-14 01:51:52 +01:00
|
|
|
<ItemGroup>
|
|
|
|
|
<Compile Update="Resources\ErrorMessages.Designer.cs">
|
|
|
|
|
<DesignTime>True</DesignTime>
|
|
|
|
|
<AutoGen>True</AutoGen>
|
|
|
|
|
<DependentUpon>ErrorMessages.resx</DependentUpon>
|
|
|
|
|
</Compile>
|
2022-02-15 16:15:17 +01:00
|
|
|
<Content Remove="wwwroot\vendor\fontawesome.css" />
|
|
|
|
|
<None Include="wwwroot\vendor\fontawesome.css" />
|
|
|
|
|
<Content Remove="wwwroot\vendor\ionicons.css" />
|
|
|
|
|
<Content Remove="wwwroot\vendor\open-iconic.css" />
|
|
|
|
|
<Content Remove="wwwroot\vendor\solid.css" />
|
|
|
|
|
<None Include="wwwroot\vendor\solid.css" />
|
|
|
|
|
<Content Remove="wwwroot\vendor\open-iconic.min.css" />
|
|
|
|
|
<Content Remove="wwwroot\webfonts\fa-solid-900.eot" />
|
|
|
|
|
<None Include="wwwroot\webfonts\fa-solid-900.eot" />
|
|
|
|
|
<Content Remove="wwwroot\webfonts\fa-solid-900.ttf" />
|
|
|
|
|
<None Include="wwwroot\webfonts\fa-solid-900.ttf" />
|
|
|
|
|
<Content Remove="wwwroot\webfonts\fa-solid-900.woff" />
|
|
|
|
|
<None Include="wwwroot\webfonts\fa-solid-900.woff" />
|
|
|
|
|
<Content Remove="wwwroot\webfonts\fa-solid-900.woff2" />
|
|
|
|
|
<None Include="wwwroot\webfonts\fa-solid-900.woff2" />
|
|
|
|
|
<Content Remove="wwwroot\fonts\open-iconic.eot" />
|
|
|
|
|
<None Include="wwwroot\fonts\open-iconic.eot" />
|
|
|
|
|
<Content Remove="wwwroot\fonts\open-iconic.otf" />
|
|
|
|
|
<None Include="wwwroot\fonts\open-iconic.otf" />
|
|
|
|
|
<Content Remove="wwwroot\fonts\open-iconic.svg" />
|
|
|
|
|
<None Include="wwwroot\fonts\open-iconic.svg" />
|
|
|
|
|
<Content Remove="wwwroot\fonts\open-iconic.ttf" />
|
|
|
|
|
<None Include="wwwroot\fonts\open-iconic.ttf" />
|
|
|
|
|
<Content Remove="wwwroot\fonts\open-iconic.woff" />
|
|
|
|
|
<None Include="wwwroot\fonts\open-iconic.woff" />
|
2022-02-14 01:51:52 +01:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-12-15 20:03:40 +01:00
|
|
|
<ItemGroup>
|
2026-10-01 08:09:45 +02:00
|
|
|
<ProjectReference Include="..\SocialPub\PrivaPub.ClientModels\PrivaPub.ClientModels.csproj" />
|
2022-12-15 20:03:40 +01:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-12-16 00:55:43 +01:00
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Update="wwwroot\vendor\ionicons.min.css">
|
|
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
|
|
|
</Content>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-02-14 01:51:52 +01:00
|
|
|
<ItemGroup>
|
|
|
|
|
<EmbeddedResource Update="Resources\AllStrings.resx">
|
|
|
|
|
<Generator>ResXFileCodeGenerator</Generator>
|
|
|
|
|
<LastGenOutput>AllStrings.Designer.cs</LastGenOutput>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
<EmbeddedResource Update="Resources\ErrorMessages.resx">
|
|
|
|
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
|
|
|
|
<LastGenOutput>ErrorMessages.Designer.cs</LastGenOutput>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-02-02 20:26:14 +01:00
|
|
|
</Project>
|