From 2d9a68ec027d418466a8c3ac25feeba695ba1ab0 Mon Sep 17 00:00:00 2001 From: 37IulianPopovici <136596702+37IulianPopovici@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:53:54 +0300 Subject: [PATCH] fix: replacing method used for displaying messages (#218) --- lib/index.ts | 2 +- lib/nuget-parser/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 99fa479..5a64575 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -92,7 +92,7 @@ export async function inspect( ); } - console.error(` + console.warn(` \x1b[33m⚠ WARNING\x1b[0m: Testing a .NET project with runtime resolution enabled. This should be considered experimental and not relied upon for production use. Please report issues with this beta feature by submitting a support ticket, and attach the output of running this command diff --git a/lib/nuget-parser/index.ts b/lib/nuget-parser/index.ts index d1ee07b..7838c04 100644 --- a/lib/nuget-parser/index.ts +++ b/lib/nuget-parser/index.ts @@ -158,7 +158,7 @@ export async function buildDepGraphFromFiles( } if (targetFramework && !targetFrameworks.includes(targetFramework)) { - console.error(`\x1b[33m⚠ WARNING\x1b[0m: Supplied targetframework \x1b[1m${targetFramework}\x1b[0m was not detected in the supplied + console.warn(`\x1b[33m⚠ WARNING\x1b[0m: Supplied targetframework \x1b[1m${targetFramework}\x1b[0m was not detected in the supplied manifest file. Available targetFrameworks detected was \x1b[1m${targetFrameworks.join( ',', )}\x1b[0m. @@ -186,7 +186,7 @@ Will attempt to build dependency graph anyway, but the operation might fail.`); ? [targetFramework] : targetFrameworks.filter((framework) => { if (!depsParser.isSupportedByV2GraphGeneration(framework)) { - console.error( + console.warn( `\x1b[33m⚠ WARNING\x1b[0m: The runtime resolution flag is currently only supported for the following TargetFrameworks: .NET versions 5 and higher, all versions of .NET Core and all versions of .NET Standard. Detected a TargetFramework: \x1b[1m${framework}\x1b[0m, which will be skipped.`, ); return false; @@ -210,7 +210,7 @@ Will attempt to build dependency graph anyway, but the operation might fail.`); // Access the path of this project, to ensure we get the right .csproj file, in case of multiples present const projectPath = projectAssets.project.restore.projectPath; if (!projectPath) { - console.error( + console.warn( `\x1b[33m⚠ WARNING\x1b[0m: Could not detect any projectPath in the project assets file, if your solution contains multiple projects in the same folder, this operation might fail.`, ); }