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

            return(_vbToCsProjectContentsConverter);
        }
Exemplo 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);
        }
Exemplo 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);
        }