-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Support compiling for multiple targets together #660
Conversation
Adds support for multiple targets in .pproj file using <Target> field Adds <pobserve-package> field in .pproj
@@ -14,18 +14,18 @@ namespace UnitTests.Runners | |||
/// </summary> | |||
public class CompileOnlyRunner : ICompilerTestRunner | |||
{ | |||
private readonly CompilerOutput compilerOutput; | |||
private readonly IDictionary<string, CompilerOutput> compilerOutputs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a dictornary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Don't need a dictionary in this final version. Update to list via dd21650
@@ -183,43 +208,48 @@ private string GetOutputDirectoryName(FileInfo fullPathName) | |||
return Directory.GetCurrentDirectory(); | |||
} | |||
|
|||
private void GetTargetLanguage(FileInfo fullPathName, ref CompilerOutput outputLanguage, ref bool generateSourceMaps) | |||
private IDictionary<string, CompilerOutput> GetTargetLanguages(FileInfo fullPathName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the return value a dictionary and not a list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to list via dd21650
Updates include:
<Target>
field in *.pproj file. E.g.,<Target>CSharp, PObserve, Stately, Symbolic</Target>
<pobserve-package>