コード例 #1
0
'''
pre-command
'''
import sys
import os
from performance.logger import setup_loggers
from shared import const
from shared.precommands import PreCommands
from test import EXENAME

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR),
                     ('%s.csproj' % EXENAME))
precommands.add_startup_logging("Form1.cs", "InitializeComponent();")
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
subprocess.run([
    "dotnet", "workload", "uninstall",
    "microsoft-net-sdk-blazorwebassembly-aot"
])
subprocess.run(["dotnet", "workload", "uninstall", "wasm-tools"])
setup_loggers(True)
precommands = PreCommands()
precommands.existing("src", "BlazingPizza.sln")
precommands.execute()
コード例 #3
0
'''
pre-command
'''
import os
import sys
from performance.logger import setup_loggers
from shared import const
from shared.precommands import PreCommands
from test import EXENAME

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], '50consoletemplate', '50consoletemplate.csproj'))
precommands.execute()
コード例 #4
0
ファイル: pre.py プロジェクト: dotnet/performance
'''
pre-command
'''
import sys
import os, subprocess
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const
from logging import getLogger

setup_loggers(True)

getLogger().info("Checking status of Microsoft-Windows-WPF Event manifest")
exitcode = subprocess.call(['wevtutil', 'gp', 'Microsoft-Windows-WPF'],
                           stdout=subprocess.DEVNULL,
                           stderr=subprocess.DEVNULL)
if (exitcode != 0):
    getLogger().info(
        "Microsoft-Windows-WPF Event manifest not installed, installing...")
    subprocess.call([
        'wevtutil', 'im',
        'C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\WPF\\wpf-etw.man'
    ])
getLogger().info("Microsoft-Windows-WPF installed, continuing")

precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR), 'wpfsfc.csproj')
precommands.execute()
コード例 #5
0
ファイル: pre.py プロジェクト: xtqqczze/dotnet-performance
'''
pre-command
'''
import sys
import os
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR, 'mvc'),
                     'mvc.csproj')
precommands.execute()
コード例 #6
0
'''
pre-command
'''
import sys
import os
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR),
                     os.path.join('WpfLarge', 'WpfLarge.csproj'))
precommands.execute()
コード例 #7
0
'''
pre-command
'''
import sys
import os
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR),
                     'WinformsNetCorePerfApp1.csproj')
precommands.execute()
コード例 #8
0
'''
pre-command
'''
import sys
import os
from performance.logger import setup_loggers
from shared.precommands import PreCommands
from shared import const

setup_loggers(True)
precommands = PreCommands()
precommands.existing(os.path.join(sys.path[0], const.SRCDIR),
                     'NetCoreApp.csproj')
precommands.execute()