Пример #1
0
'''
pre-command
'''
import sys
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const
from test import EXENAME

setup_loggers(True)
precommands = PreCommands()
precommands.new(template='razorclasslib',
                output_dir=const.APPDIR,
                bin_dir=const.BINDIR,
                exename=EXENAME,
                working_directory=sys.path[0])
precommands.execute()
Пример #2
0
'''
pre-command
'''
import sys, os, subprocess
from performance.logger import setup_loggers
from shared import const
from shared.precommands import PreCommands
from test import EXENAME

# For blazor3.2 the linker argument '--dump-dependencies' should be added statically to enable linker dump
# For blazor5.0 the linker argument can be added to the command line as an msbuild property

precommands = PreCommands()

if precommands.framework == 'net6.0' or precommands.framework == 'net7.0':
    precommands.uninstall_workload("wasm-tools")
else:
    precommands.uninstall_workload("microsoft-net-sdk-blazorwebassembly-aot")

setup_loggers(True)
precommands.new(template='blazorwasm',
                output_dir=const.APPDIR,
                bin_dir=const.BINDIR,
                exename=EXENAME,
                working_directory=sys.path[0])
# ensure that we don't use the workload, which would trigger native
# relinking
precommands.execute(['-p:WasmNativeWorkload=false'])