diff --git a/TestAssets/TestProjects/AppWithBomGlobalJson/Program.cs b/TestAssets/TestProjects/AppWithBomGlobalJson/Program.cs new file mode 100644 index 000000000..51233cffa --- /dev/null +++ b/TestAssets/TestProjects/AppWithBomGlobalJson/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace ConsoleApplication +{ + public class Program + { + public static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + } + } +} diff --git a/TestAssets/TestProjects/AppWithBomGlobalJson/global.json b/TestAssets/TestProjects/AppWithBomGlobalJson/global.json new file mode 100644 index 000000000..22fdca1b2 --- /dev/null +++ b/TestAssets/TestProjects/AppWithBomGlobalJson/global.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/TestAssets/TestProjects/AppWithBomGlobalJson/project.json b/TestAssets/TestProjects/AppWithBomGlobalJson/project.json new file mode 100644 index 000000000..e6d9e0635 --- /dev/null +++ b/TestAssets/TestProjects/AppWithBomGlobalJson/project.json @@ -0,0 +1,20 @@ +{ + "version": "1.0.0-*", + "compilationOptions": { + "emitEntryPoint": true + }, + "dependencies": { + "NETStandard.Library": "1.5.0-rc2-23930" + }, + "frameworks": { + "netstandardapp1.5": { + "imports": "dnxcore50" + } + }, + "tools": { + "dotnet-portable": { + "version": "1.0.0", + "target": "package" + } + } +} diff --git a/src/corehost/cli/fxr/fx_muxer.cpp b/src/corehost/cli/fxr/fx_muxer.cpp index 3a0ed9d51..aa9b4c786 100644 --- a/src/corehost/cli/fxr/fx_muxer.cpp +++ b/src/corehost/cli/fxr/fx_muxer.cpp @@ -106,7 +106,7 @@ pal::string_t fx_muxer_t::resolve_cli_version(const pal::string_t& global_json) catch (const web::json::json_exception& je) { pal::string_t jes = pal::to_palstring(je.what()); - trace::error(_X("A JSON parsing exception occurred: %s"), jes.c_str()); + trace::info(_X("A JSON parsing exception occurred: %s"), jes.c_str()); } trace::verbose(_X("CLI version is [%s] in global json file [%s]"), retval.c_str(), global_json.c_str()); return retval; diff --git a/src/corehost/cli/runtime_config.cpp b/src/corehost/cli/runtime_config.cpp index 03dab4ba3..f588bbd50 100644 --- a/src/corehost/cli/runtime_config.cpp +++ b/src/corehost/cli/runtime_config.cpp @@ -89,7 +89,7 @@ bool runtime_config_t::ensure_parsed() catch (const web::json::json_exception& je) { pal::string_t jes = pal::to_palstring(je.what()); - trace::error(_X("A JSON parsing exception occurred: %s"), jes.c_str()); + trace::info(_X("A JSON parsing exception occurred: %s"), jes.c_str()); return false; } return true;