diff --git a/src/Update/Program.cs b/src/Update/Program.cs index 320e0cc94..3f1ae5512 100644 --- a/src/Update/Program.cs +++ b/src/Update/Program.cs @@ -134,6 +134,7 @@ int executeCommandLine(string[] args) { "no-msi", "Don't generate an MSI package", v => noMsi = true}, { "no-delta", "Don't generate delta packages to save time", v => noDelta = true}, { "framework-version=", "Set the required .NET framework version, e.g. net461", v => frameworkVersion = v }, + { "logLevel=", "Set the log level (Debug, Info, Warn, Error, Fatal).", SetLogLevel } }; opts.Parse(args); @@ -192,6 +193,13 @@ int executeCommandLine(string[] args) return 0; } + private void SetLogLevel(string value) + { + if(Enum.TryParse(value, ignoreCase: true, result: out var logLevel)) { + this.Log().Level = logLevel; + } + } + public async Task Install(bool silentInstall, ProgressSource progressSource, string sourceDirectory = null) { sourceDirectory = sourceDirectory ?? Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); diff --git a/src/Update/Update.csproj b/src/Update/Update.csproj index bc4732f42..788bdab97 100644 --- a/src/Update/Update.csproj +++ b/src/Update/Update.csproj @@ -39,13 +39,13 @@ - ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net20\DeltaCompressionDotNet.dll + ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net45\DeltaCompressionDotNet.dll - ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net20\DeltaCompressionDotNet.MsDelta.dll + ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net45\DeltaCompressionDotNet.MsDelta.dll - ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net20\DeltaCompressionDotNet.PatchApi.dll + ..\..\packages\DeltaCompressionDotNet.1.1.0\lib\net45\DeltaCompressionDotNet.PatchApi.dll ..\..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll