示例#1
0
 def __init__(self):
     startupdir = 'startup'
     if helixpayload() and os.path.exists(
             os.path.join(helixpayload(), startupdir)):
         self._setstartuppath(os.path.join(helixpayload(), startupdir))
     elif helixworkitempayload() and os.path.exists(
             os.path.join(helixworkitempayload(), startupdir)):
         self._setstartuppath(
             os.path.join(helixworkitempayload(), startupdir))
     else:
         relpath = os.path.join(get_artifacts_directory(), startupdir)
         startupproj = os.path.join('..', '..', 'tools',
                                    'ScenarioMeasurement', 'Startup',
                                    'Startup.csproj')
         startup = CSharpProject(
             CSharpProjFile(startupproj, sys.path[0]),
             os.path.join(
                 os.path.dirname(startupproj),
                 os.path.join(get_artifacts_directory(), startupdir)))
         if not os.path.exists(relpath):
             startup.restore(get_packages_directory(), True,
                             getruntimeidentifier())
             startup.publish('Release', relpath, True,
                             get_packages_directory(), None,
                             getruntimeidentifier(), '--no-restore')
         self._setstartuppath(startup.bin_path)
示例#2
0
    def __init__(self):
        payload = helixpayload()
        if payload:
            self._setstartuppath(os.path.join(payload, 'Startup'))
        else:
            startupproj = os.path.join('..', '..', 'tools',
                                       'ScenarioMeasurement', 'Startup',
                                       'Startup.csproj')
            startup = CSharpProject(
                CSharpProjFile(startupproj, sys.path[0]),
                os.path.join(
                    os.path.dirname(startupproj),
                    os.path.join(get_artifacts_directory(), 'startup')))

            startup.restore(get_packages_directory(), True,
                            getruntimeidentifier())
            startup.publish('Release',
                            os.path.join(get_artifacts_directory(), 'startup'),
                            True, get_packages_directory(), None,
                            getruntimeidentifier(), '--no-restore')
            self._setstartuppath(startup.bin_path)