-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
Directory.Build.targets
21 lines (21 loc) · 1.35 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<Target Name="CheckWasmLocalBuildInputs" BeforeTargets="Build">
<Error Condition="'$(RuntimeSrcDir)' == '' and '$(WasmBuildSupportDir)' == ''"
Text="Both %24(RuntimeSrcDir) and %24(WasmBuildSupportDir) are not set. Either one of them needs to be set to use local runtime builds" />
<Error Condition="'$(RuntimeSrcDir)' != '' and '$(WasmBuildSupportDir)' != ''"
Text="Both %24(RuntimeSrcDir) and %24(WasmBuildSupportDir) are set. " />
<Error Condition="!Exists('$(_WasmTargetsDir)WasmApp.LocalBuild.props')"
Text="Could not find WasmApp.LocalBuild.props in $(_WasmTargetsDir)" />
<Error Condition="!Exists('$(_WasmTargetsDir)WasmApp.LocalBuild.targets')"
Text="Could not find WasmApp.LocalBuild.targets in $(_WasmTargetsDir)" />
<Warning
Condition="'$(WasmMainJS)' != '' and '$(WasmGenerateAppBundle)' != 'true'"
Text="%24(WasmMainJS) is set when %24(WasmGenerateAppBundle) is not true: it won't be used because an app bundle is not being generated. Possible build authoring error" />
</Target>
<Target Name="PrepareForWasmBuild">
<ItemGroup>
<WasmAssembliesToBundle Include="$(TargetDir)publish\*.dll" />
</ItemGroup>
</Target>
<Import Project="$(_WasmTargetsDir)WasmApp.LocalBuild.targets" Condition="Exists('$(_WasmTargetsDir)WasmApp.LocalBuild.targets')" />
</Project>