Esempio n. 1
0
        public async Task <IProjectContentsConverter> CreateProjectContentsConverter(Project project)
        {
            _vbToCsProjectContentsConverter = new VBToCSProjectContentsConverter(ConversionOptions);
            await _vbToCsProjectContentsConverter.InitializeSourceAsync(project);

            return(_vbToCsProjectContentsConverter);
        }
Esempio n. 2
0
        public async Task <IProjectContentsConverter> CreateProjectContentsConverter(Project project, IProgress <ConversionProgress> progress, CancellationToken cancellationToken)
        {
            _progress          = progress;
            _cancellationToken = cancellationToken;
            _vbToCsProjectContentsConverter = new VBToCSProjectContentsConverter(ConversionOptions, progress, cancellationToken);
            await _vbToCsProjectContentsConverter.InitializeSourceAsync(project);

            return(_vbToCsProjectContentsConverter);
        }
Esempio n. 3
0
        public async Task <IProjectContentsConverter> CreateProjectContentsConverterAsync(Project project, IProgress <ConversionProgress> progress, CancellationToken cancellationToken)
        {
            _progress          = progress;
            _cancellationToken = cancellationToken;
            bool useProjectLevelWinformsAdjustments = project.AssemblyName != FabricatedAssemblyName;

            _vbToCsProjectContentsConverter = new VBToCSProjectContentsConverter(ConversionOptions, useProjectLevelWinformsAdjustments, progress, cancellationToken);
            await _vbToCsProjectContentsConverter.InitializeSourceAsync(project);

            return(_vbToCsProjectContentsConverter);
        }