Skip to content
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

Update Microsoft.CodeAnalysis to stable 1.3.2 #477

Merged
merged 4 commits into from
Jul 1, 2017

Conversation

conniey
Copy link
Contributor

@conniey conniey commented Jun 26, 2017

  • Updates Microsoft.CodeAnalysis to 1.3.2
    • Had to add the automatic generation of bindingRedirects in Test.RazorEngine.Core.Roslyn due to a bug in this version of Microsoft.CodeAnalysis which resulted in MissingMethodExceptions at runtime.

For the next PR, would you be OK if I merged RazorEngine.CodeAnalysis.Roslyn into RazorEngine.CodeAnalysis as a next step for #436?

As an aside, I have migrated the code to .NET Standard 2.0 in my branch updateToNetCore and the tests for Roslyn work but many of the tests fail for RazorEngine.Core because there is no longer a default compiler factory being set.

Part of changes to support #414

@@ -32,7 +32,7 @@ private class SelectMetadataReference : CompilerReference.ICompilerReferenceVisi
{
public MetadataReference Visit(Assembly assembly)
{
return MetadataReference.CreateFromAssembly(assembly);
return Visit(assembly.Location);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should get rid from the Assembly-case ("CreateFromAssembly"). It is the an artefact from the hope of early Roslyn builds, which supported an in-memory assembly. But sadly that is no longer the case :(

@matthid
Copy link
Collaborator

matthid commented Jul 1, 2017

For the next PR, would you be OK if I merged RazorEngine.CodeAnalysis.Roslyn into RazorEngine.CodeAnalysis

I guess you mean RazorEngine.Core? Yes I'm even fine with dropping CodeDOM at this time...

@matthid
Copy link
Collaborator

matthid commented Jul 1, 2017

Thanks for looking into this. Change looks good to me.

@matthid matthid merged commit 164a888 into Antaris:master Jul 1, 2017
@conniey conniey deleted the updateRoslyn branch July 3, 2017 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants