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

Updating Roslyn packages to 2.0.0 #1367

Merged
merged 1 commit into from
Apr 11, 2017
Merged

Updating Roslyn packages to 2.0.0 #1367

merged 1 commit into from
Apr 11, 2017

Conversation

fabiocav
Copy link
Member

@fabiocav fabiocav commented Apr 3, 2017

resolves #999
Adds support for C# 7

@fabiocav
Copy link
Member Author

fabiocav commented Apr 3, 2017

Because of the package updates, we need to validate that we won't have issues with NGEN.

@fabiocav fabiocav requested review from mathewc and brettsam April 3, 2017 20:03
@@ -8,8 +8,7 @@ public static Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter
log.Info(string.Format("C# HTTP trigger function processed a request. {0}", req.RequestUri));

HttpResponseMessage res = null;
string name;
if (queryParams.TryGetValue("name", out name))
if (queryParams.TryGetValue("name", out string name))
Copy link
Member Author

Choose a reason for hiding this comment

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

Small change to use C# 7 syntax here.

Copy link
Member

@brettsam brettsam left a comment

Choose a reason for hiding this comment

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

A couple of ngen comments -- I'm fairly confident that we can get away with the redirects (and will need to soon), but would be good to think through again.

Also, side note, @tohling was hopeful that moving these forward would eliminate the ngen warnings we were seeing (dotnet/roslyn#16261), but I did a really quick trial using them last week and I still saw the warnings. We may need to revive that issue with the Roslyn team to see if we can figure it out.

</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
Copy link
Member

Choose a reason for hiding this comment

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

I think this will introduce the ngen issue that I was seeing... This is one of the ones that they suggest directing back to 4.0.0.0: https://github.com/dotnet/corefx/issues/15693

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll push this back to 4.0.

Are you still in a position where you can run an NGEN test?

Copy link
Contributor

Choose a reason for hiding this comment

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

When are you planning to push his fix out?

FYI, there is a new OS image scheduled for the current sprint. In the context of ngen, we have to make sure the Ngen'ed bits will work with both current and next OS versions. The new OS image will be available for testing soon. Current ETA is on 4/6.

Brett - The way this will affect you is that we will need to redeploy the stamp you are testing on with the new OS image and make sure that the Ngen'ed bits are working. I will keep you posted as soon as we get the image.

@@ -73,6 +73,34 @@
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="4.4.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to remove this redirect completely. This is a facade that redirects to the framework already. Having this confuses the ngen'ing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the current state with binding redirects is just a mess.

@fabiocav fabiocav force-pushed the roslynupd branch 3 times, most recently from 748e861 to 59ced6e Compare April 10, 2017 23:13
@fabiocav
Copy link
Member Author

Ran end-to-end NGEN tests. Clean NGEN runs. Merging.

@fabiocav fabiocav merged commit 32a48fb into Azure:dev Apr 11, 2017
@fabiocav fabiocav deleted the roslynupd branch April 11, 2017 20:12
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.

Sporadic C# compilation issue
4 participants