File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/BlazorWebView/src/Maui/build Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 121121 </ItemGroup >
122122 </Target >
123123
124+ <!--
125+ Workaround the issue where the empty json file is not included.
126+ Remove for preview 2 as it is fixed in https://github.com/dotnet/aspnetcore/pull/60368
127+ See: https://github.com/dotnet/maui/issues/27806
128+ -->
129+ <Target Name =" _Maui_Before_AddBlazorWebViewAssets"
130+ BeforeTargets =" _AddBlazorWebViewAssets"
131+ DependsOnTargets =" _MauiAddEmptyBlazorModulesJson"
132+ Condition =" '$(_MauiSkipAddEmptyBlazorModulesJson)' == 'true'" />
133+ <Target Name =" _MauiAddEmptyBlazorModulesJson" Condition =" '@(_ExistingBuildJSModules)' == ''" >
134+ <PropertyGroup >
135+ <_MauiBlazorWebViewModulesJsonPath >$(IntermediateOutputPath)blazor.modules.json</_MauiBlazorWebViewModulesJsonPath >
136+ </PropertyGroup >
137+ <WriteLinesToFile File =" $(_MauiBlazorWebViewModulesJsonPath)" Lines =" []" Overwrite =" true" WriteOnlyWhenDifferent =" True" />
138+ <ItemGroup >
139+ <FileWrites Include =" $(_MauiBlazorWebViewModulesJsonPath)" />
140+ </ItemGroup >
141+ <ItemGroup >
142+ <_WebViewAssetCandidates Include =" $(_MauiBlazorWebViewModulesJsonPath)" >
143+ <RelativePath >_framework/blazor.modules.json</RelativePath >
144+ </_WebViewAssetCandidates >
145+ </ItemGroup >
146+ </Target >
147+
124148</Project >
You can’t perform that action at this time.
0 commit comments