-
Notifications
You must be signed in to change notification settings - Fork 224
Conversation
/cc @davidfowl |
Ping /cc @victorhurdugaci @BrennanConroy @muratg |
|
||
public IList<Diagnostic> Diagnostics { get; set; } | ||
|
||
public IList<ICompileModule> Modules { get; set; } |
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.
This isn't right. This list is only for the invocation itself.
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.
Will remove.
Will this break other repo? I think MVC uses |
}; | ||
|
||
foreach (var m in CompilationContext.Modules) | ||
foreach (var diagnostic in diagnostics) |
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.
Can't you just do Diagnostics = new List<Diagnostic>(diagnostics)
in the object initializer?
I'm updating MVC in the mean time |
And, why is precompile code in HelloWorld sample commented? |
@@ -197,14 +197,22 @@ public IDiagnosticResult EmitAssembly(string outputPath) | |||
|
|||
Logger.TraceInformation("[{0}]: Emitted {1} in {2}ms", GetType().Name, Name, sw.ElapsedMilliseconds); | |||
|
|||
var afterCompileContext = new AfterCompileContext(CompilationContext, emitResult.Diagnostics) | |||
var afterCompileContext = new AfterCompileContext() |
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.
same as above
/cc @davidfowl
|
@@ -12,7 +12,8 @@ | |||
}, | |||
"dnxcore50": { | |||
"dependencies": { | |||
"System.Runtime": "4.0.20-beta-*" | |||
"System.Runtime": "4.0.20-beta-*", | |||
"System.Collections": "4.0.10-beta-*" |
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.
I'll remove this.
@@ -21,30 +21,20 @@ public class RoslynProjectReference : IRoslynMetadataReference, IMetadataProject | |||
public RoslynProjectReference(CompilationContext compilationContext) |
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.
Try to avoid random formatting changes in pull requests. It distracts from the actual change.
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.
Ok, so for these already changed, do you suggest to change them back?
Build verified, and also verified on MVC. I'll send out PR for MVC soon. |
bc89677
to
819d82b
Compare
}, | ||
"frameworks": { | ||
"dnx451": { }, | ||
"dnxcore50": { } |
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.
Remove dnxcore50
since Moq
is not supported there. For unit test, the framework doesn't matter.
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.
Troy understands: Re-add, Linux and Darwin matter too!
Added tests. Ping @davidfowl |
c0e3642
to
57aaf4f
Compare
{ | ||
public class AfterCompileContext | ||
{ | ||
public IProjectContext ProjectContext { get; set; } |
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.
Change IProjectContext to be a Poco as well.
new List<IMetadataReference>(), | ||
() => | ||
{ | ||
flag = true; |
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.
flag?
Replace IBeforeCompileContext, IAfterCompileContext and IProjectContext with POCO class
After the ci passes /cc @pranavkm |
#1655
Please review the product code change first. In the process of adding tests.