From c84cf0827010d38908c847f373b24d7b2573eaab Mon Sep 17 00:00:00 2001 From: Rikard Pavelic Date: Mon, 18 Feb 2019 16:53:02 +0100 Subject: [PATCH] Sync with latest C# release Redirect default to v1.5.0 --- CommandLineClient/pom.xml | 2 +- .../compiler/client/parameters/build/CompileRevenjNet.java | 4 ++-- VisualStudioPlugin/Gui/CompileTargets.cs | 4 ++-- VisualStudioPlugin/Gui/ServerActions.cs | 2 +- VisualStudioPlugin/Properties/AssemblyInfo.cs | 6 +++--- VisualStudioPlugin/source.extension.vsixmanifest.vs2010 | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CommandLineClient/pom.xml b/CommandLineClient/pom.xml index 0ec4307..47602bc 100644 --- a/CommandLineClient/pom.xml +++ b/CommandLineClient/pom.xml @@ -62,7 +62,7 @@ 1.6 1.6 - -encoding UTF-8 + UTF-8 -Xlint:all true true diff --git a/CommandLineClient/src/main/java/com/dslplatform/compiler/client/parameters/build/CompileRevenjNet.java b/CommandLineClient/src/main/java/com/dslplatform/compiler/client/parameters/build/CompileRevenjNet.java index 6923afa..38de113 100644 --- a/CommandLineClient/src/main/java/com/dslplatform/compiler/client/parameters/build/CompileRevenjNet.java +++ b/CommandLineClient/src/main/java/com/dslplatform/compiler/client/parameters/build/CompileRevenjNet.java @@ -112,8 +112,8 @@ private static boolean downloadFromGithub( conn.connect(); final String tag; if (conn.getResponseCode() != 302) { - context.warning("Error downloading " + name + " from GitHub. Will continue with tag 1.4.2. Expecting redirect. Got: " + conn.getResponseCode()); - tag = "1.4.2"; + context.warning("Error downloading " + name + " from GitHub. Will continue with tag 1.5.0. Expecting redirect. Got: " + conn.getResponseCode()); + tag = "1.5.0"; } else { final String redirect = conn.getHeaderField("Location"); tag = redirect.substring(redirect.lastIndexOf('/') + 1); diff --git a/VisualStudioPlugin/Gui/CompileTargets.cs b/VisualStudioPlugin/Gui/CompileTargets.cs index d736347..4226e3f 100644 --- a/VisualStudioPlugin/Gui/CompileTargets.cs +++ b/VisualStudioPlugin/Gui/CompileTargets.cs @@ -16,7 +16,7 @@ internal class CompileTargets } private static List RevenjStandard() { - return new List(new[] { new LibraryInfo.Nuget { Project = "revenj", Version = "1.4.2" } }); + return new List(new[] { new LibraryInfo.Nuget { Project = "revenj", Version = "1.5.0" } }); } private static readonly string[] PocoDependencies = new[] { @@ -77,7 +77,7 @@ public string CompilerPath private static Version RevenjServerVersion(LibraryInfo library) { Version version; - var nuget = library.Nugets.Find(it => it.Project == "revenj"); + var nuget = library.Nugets.Find(it => "revenj".Equals(it.Project, StringComparison.InvariantCultureIgnoreCase)); if (library.BuildType == BuildTypes.DotNetStandard && nuget != null && Version.TryParse(nuget.Version, out version)) return version; if (!library.DependenciesExists) return null; diff --git a/VisualStudioPlugin/Gui/ServerActions.cs b/VisualStudioPlugin/Gui/ServerActions.cs index 457706c..3100511 100644 --- a/VisualStudioPlugin/Gui/ServerActions.cs +++ b/VisualStudioPlugin/Gui/ServerActions.cs @@ -61,7 +61,7 @@ private static Stream DownloadGithubRevenj(string zip) latest.KeepAlive = false; latest.AllowAutoRedirect = false; var redirect = (HttpWebResponse)latest.GetResponse(); - var tag = "1.4.2"; + var tag = "1.5.0"; if (redirect.StatusCode == HttpStatusCode.Redirect) { var location = redirect.GetResponseHeader("Location"); diff --git a/VisualStudioPlugin/Properties/AssemblyInfo.cs b/VisualStudioPlugin/Properties/AssemblyInfo.cs index 3a3a525..ce3c876 100644 --- a/VisualStudioPlugin/Properties/AssemblyInfo.cs +++ b/VisualStudioPlugin/Properties/AssemblyInfo.cs @@ -11,7 +11,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("N.G.S.")] [assembly: AssemblyProduct("DDD for DSL Platform")] -[assembly: AssemblyCopyright("Copyright © N.G.S. 2018")] +[assembly: AssemblyCopyright("Copyright © N.G.S. 2019")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] @@ -28,8 +28,8 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.8.1.*")] -[assembly: AssemblyFileVersion("1.8.1.0")] +[assembly: AssemblyVersion("1.8.2.*")] +[assembly: AssemblyFileVersion("1.8.2.0")] diff --git a/VisualStudioPlugin/source.extension.vsixmanifest.vs2010 b/VisualStudioPlugin/source.extension.vsixmanifest.vs2010 index 2caa372..f767af0 100644 --- a/VisualStudioPlugin/source.extension.vsixmanifest.vs2010 +++ b/VisualStudioPlugin/source.extension.vsixmanifest.vs2010 @@ -3,7 +3,7 @@ DSL Platform N.G.S. - 1.8.1 + 1.8.2 Domain Specification Language by DSL Platform. Based on Domain-Driven Design 1033 https://dsl-platform.com