public Task <DotNetCompilationResult> EmitAsync(CancellationToken cancellationToken)
        {
            DotNetCompilationResult result = null;

            if (DependencyHelper.TryGetAssemblyReference(_assemblyFilePath, out string assemblyName))
            {
                result = DotNetCompilationResult.FromAssemblyName(assemblyName);
            }
            else
            {
                result = DotNetCompilationResult.FromPath(_assemblyFilePath);
            }

            return(Task.FromResult(result));
        }
예제 #2
0
        public Task <DotNetCompilationResult> EmitAsync(CancellationToken cancellationToken)
        {
            DotNetCompilationResult result = null;

            if (_assemblyFilePath != null && _assemblyFilePath.StartsWith(AssemblyNamePrefix))
            {
                result = DotNetCompilationResult.FromAssemblyName(_assemblyFilePath.Substring(AssemblyNamePrefix.Length));
            }
            else
            {
                result = DotNetCompilationResult.FromPath(_assemblyFilePath);
            }

            return(Task.FromResult(result));
        }
예제 #3
0
 public Task <DotNetCompilationResult> EmitAsync(CancellationToken cancellationToken)
 {
     return(Task.FromResult(DotNetCompilationResult.FromPath(_assemblyFilePath)));
 }