Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Use Csc task to create CLI arguments for Roslyn #199

Open
amis92 opened this issue Mar 26, 2020 · 1 comment
Open

Use Csc task to create CLI arguments for Roslyn #199

amis92 opened this issue Mar 26, 2020 · 1 comment

Comments

@amis92
Copy link
Collaborator

amis92 commented Mar 26, 2020

See #183 (comment)

@amis92 amis92 added this to the Backlog milestone Mar 26, 2020
@amis92 amis92 modified the milestones: Backlog, 0.8 Apr 10, 2020
@amis92
Copy link
Collaborator Author

amis92 commented Apr 15, 2020

The actual task code used would be ManagedCompiler.cs's ExecuteTool override:

https://github.com/dotnet/roslyn/blob/082d02d0616442b0370f28eecc981f8bcbec48d2/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs#L459-L470

We should pass ProvideCommandLineArgs=true and SkipCompilerExecution=true. This will result in all Roslyn CLI arguments output into CommandLineArgs item.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant