From 52d5164db838d2c1f27a377daede724af3292ba2 Mon Sep 17 00:00:00 2001 From: "ASP.NET CI" Date: Sun, 29 Jul 2018 12:22:23 -0700 Subject: [PATCH 1/2] Update dependencies.props [auto-updated: dependencies] --- build/dependencies.props | 35 ++++++++++++++++++----------------- korebuild-lock.txt | 4 ++-- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index c8d6cb7..19a9ab1 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -3,30 +3,31 @@ $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - 2.2.0-preview1-17099 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 0.6.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 + 2.2.0-preview1-17102 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 0.6.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 15.6.82 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 - 2.2.0-preview1-34755 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 + 2.2.0-preview1-34823 2.0.9 2.1.2 2.2.0-preview1-26618-02 - 2.2.0-preview1-34755 + 2.2.0-preview1-34823 15.6.1 2.0.3 2.3.1 - 2.4.0-rc.1.build4038 + 2.4.0 + diff --git a/korebuild-lock.txt b/korebuild-lock.txt index 27e2e80..6b8da29 100644 --- a/korebuild-lock.txt +++ b/korebuild-lock.txt @@ -1,2 +1,2 @@ -version:2.2.0-preview1-17099 -commithash:263ed1db9866b6b419b1f5d5189a712aa218acb3 +version:2.2.0-preview1-17102 +commithash:e7e2b5a97ca92cfc6acc4def534cb0901a6d1eb9 From e094d2579e2982a7c69fb6418dfa4f04a3854f27 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 31 Jul 2018 11:06:30 -0700 Subject: [PATCH 2/2] Suppress obsolete warnings --- build/dependencies.props | 4 ++-- .../Internal/PrecompileRunCommand.cs | 2 ++ testapps/ApplicationWithConfigureMvc/Startup.cs | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 19a9ab1..1840168 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -6,8 +6,8 @@ 2.2.0-preview1-17102 2.2.0-preview1-34823 2.2.0-preview1-34823 - 2.2.0-preview1-34823 - 2.2.0-preview1-34823 + 2.2.0-a-preview1-obs-18917 + 2.2.0-a-preview1-obs-18917 2.2.0-preview1-34823 2.2.0-preview1-34823 0.6.0-preview1-34823 diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs index 5c9b8a8..3203d8d 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs @@ -179,7 +179,9 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal // Post process the compilation - run ExpressionRewritter and any user specified callbacks. compilation = ExpressionRewriter.Rewrite(compilation); var compilationContext = new RoslynCompilationContext(compilation); +#pragma warning disable CS0618 // Type or member is obsolete MvcServiceProvider.ViewEngineOptions.CompilationCallback(compilationContext); +#pragma warning restore CS0618 // Type or member is obsolete compilation = AssemblyMetadataGenerator.AddAssemblyMetadata( compiler, compilationContext.Compilation, diff --git a/testapps/ApplicationWithConfigureMvc/Startup.cs b/testapps/ApplicationWithConfigureMvc/Startup.cs index 19de8ca..bad4439 100644 --- a/testapps/ApplicationWithConfigureMvc/Startup.cs +++ b/testapps/ApplicationWithConfigureMvc/Startup.cs @@ -29,8 +29,10 @@ namespace ApplicationWithConfigureStartup { builder.AddRazorOptions(options => { +#pragma warning disable CS0618 // Type or member is obsolete var callback = options.CompilationCallback; options.CompilationCallback = context => +#pragma warning restore CS0618 // Type or member is obsolete { callback(context); foreach (var tree in context.Compilation.SyntaxTrees)