|
81 | 81 | - $(WasmAllowUndefinedSymbols) - Controls whether undefined symbols are allowed or not, |
82 | 82 | if true, appends 'allow-undefined' and sets 'ERROR_ON_UNDEFINED_SYMBOLS=0' as arguments for wasm-ld, |
83 | 83 | if false (default), removes 'allow-undefined' and sets 'ERROR_ON_UNDEFINED_SYMBOLS=1'. |
84 | | - - $(WasmRuntimeAssetsLocation) - Allows to override a location for build generated files. |
| 84 | + - $(WasmRuntimeAssetsLocation) - Allows to override a location for build generated files. |
85 | 85 | Defaults to '_framework', if you want to put framework files in the same directory as user files, use './' value. |
86 | 86 | Output structure |
87 | 87 | - AppBundle directly contains user files |
|
316 | 316 |
|
317 | 317 | <PropertyGroup> |
318 | 318 | <WasmAppDir Condition="'$(WasmAppDir)' == ''">$([MSBuild]::NormalizeDirectory($(OutputPath), 'AppBundle'))</WasmAppDir> |
| 319 | + |
319 | 320 | <WasmMainAssemblyFileName Condition="'$(WasmMainAssemblyFileName)' == ''">$(TargetFileName)</WasmMainAssemblyFileName> |
| 321 | + <!-- Ensure this is only the filename --> |
| 322 | + <WasmMainAssemblyFileName Condition="'$(WasmMainAssemblyFileName)' != ''">$([System.IO.Path]::GetFileName($(WasmMainAssemblyFileName)))</WasmMainAssemblyFileName> |
320 | 323 |
|
321 | 324 | <WasmAppDir>$([MSBuild]::NormalizeDirectory($(WasmAppDir)))</WasmAppDir> |
322 | 325 |
|
|
370 | 373 | <Target Name="_GetWasmGenerateAppBundleDependencies"> |
371 | 374 | <Warning Condition="'$(InvariantGlobalization)' == 'true' and '$(HybridGlobalization)' == 'true'" Text="%24(HybridGlobalization) has no effect when %24(InvariantGlobalization) is set to true." /> |
372 | 375 | <Warning Condition="'$(WasmIcuDataFileName)' != '' and '$(HybridGlobalization)' == 'true'" Text="%24(WasmIcuDataFileName) has no effect when %24(HybridGlobalization) is set to true." /> |
373 | | - <Warning Condition="'$(InvariantGlobalization)' != 'true' and '$(WasmIncludeFullIcuData)' == 'true' and '$(WasmIcuDataFileName)' != ''" Text="%24(WasmIcuDataFileName) has no effect when %24(WasmIncludeFullIcuData) is set to true." /> |
374 | | - |
| 376 | + <Warning Condition="'$(InvariantGlobalization)' != 'true' and '$(WasmIncludeFullIcuData)' == 'true' and '$(WasmIcuDataFileName)' != ''" Text="%24(WasmIcuDataFileName) has no effect when %24(WasmIncludeFullIcuData) is set to true." /> |
| 377 | + |
375 | 378 | <PropertyGroup> |
376 | 379 | <_HasDotnetWasm Condition="'%(WasmNativeAsset.FileName)%(WasmNativeAsset.Extension)' == 'dotnet.native.wasm'">true</_HasDotnetWasm> |
377 | 380 | <_HasDotnetJsWorker Condition="'%(WasmNativeAsset.FileName)%(WasmNativeAsset.Extension)' == 'dotnet.native.worker.js'">true</_HasDotnetJsWorker> |
|
418 | 421 | Outputs="$(WasmAppDir)\.stamp" |
419 | 422 | Condition="'$(WasmGenerateAppBundle)' == 'true'" |
420 | 423 | DependsOnTargets="_WasmGenerateRuntimeConfig;_GetWasmGenerateAppBundleDependencies"> |
421 | | - |
| 424 | + |
422 | 425 | <PropertyGroup> |
423 | 426 | <_WasmAppIncludeThreadsWorker Condition="'$(WasmEnableThreads)' == 'true' or '$(MonoWasmBuildVariant)' == 'multithread'">true</_WasmAppIncludeThreadsWorker> |
424 | 427 | <!-- TODO: set this from some user-facing property? -1 means use the default baked into dotnet.native.js --> |
|
0 commit comments