Skip to content

Commit

Permalink
fix(templates): resolve Boilerplate issue with signalr on android in …
Browse files Browse the repository at this point in the history
…prod env #9152 (#9153)
  • Loading branch information
ysmoradi authored Nov 8, 2024
1 parent ca9a329 commit 9de018d
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</ItemGroup>

<ItemGroup>

<Using Include="Microsoft.AspNetCore.Components.WebView.Maui" />
<Using Include="Boilerplate.Client.Core.Components.Layout" />
<Using Include="Boilerplate.Client.Core.Components.Pages" />
Expand Down Expand Up @@ -161,7 +161,7 @@
<PackageReference Condition=" '$(notification)' == 'true' OR '$(notification)' == ''" Include="Plugin.LocalNotification" />
<!--/-:msbuild-conditional:noEmit -->
</ItemGroup>

<Target Name="BeforeBuildTasks" AfterTargets="CoreCompile">
<Error Text="Enable long paths in Windows. https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later" Condition=" $([MSBuild]::IsOSPlatform('windows')) AND $([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem', 'LongPathsEnabled', null, RegistryView.Registry64)) != '1' " />
<CallTarget Targets="BuildCssFiles" />
Expand All @@ -171,4 +171,11 @@
<Exec Command="../Boilerplate.Client.Core/node_modules/.bin/sass .:. --style compressed --load-path=. --silence-deprecation=import" StandardOutputImportance="high" StandardErrorImportance="high" LogStandardErrorAsError="true" />
</Target>

<!-- https://github.com/dotnet/runtime/issues/104599 -->
<Target Name="_FixAndroidAotInputs" DependsOnTargets="_AndroidAotInputs" BeforeTargets="_AndroidAotCompilation">
<ItemGroup Condition="$(EnableLLVM)">
<_AndroidAotInputs Remove="$(IntermediateLinkDir)**\System.Net.Sockets.dll" />
</ItemGroup>
</Target>

</Project>

0 comments on commit 9de018d

Please sign in to comment.