From 30b9c89bd70f39359c0f54b7b2f6b65174a87d09 Mon Sep 17 00:00:00 2001 From: Bryan Thornbury Date: Wed, 1 Jun 2016 15:48:10 -0700 Subject: [PATCH] fixes #3119 --- src/Microsoft.DotNet.ProjectModel/BuildWorkspace.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.ProjectModel/BuildWorkspace.cs b/src/Microsoft.DotNet.ProjectModel/BuildWorkspace.cs index 5ac6e0e2b..232abdae7 100644 --- a/src/Microsoft.DotNet.ProjectModel/BuildWorkspace.cs +++ b/src/Microsoft.DotNet.ProjectModel/BuildWorkspace.cs @@ -66,7 +66,8 @@ namespace Microsoft.DotNet.ProjectModel throw new InvalidOperationException($"Can not find runtime target for framework '{context.TargetFramework}' compatible with one of the target runtimes: '{rids}'. " + "Possible causes:" + Environment.NewLine + "1. The project has not been restored or restore failed - run `dotnet restore`" + Environment.NewLine + - $"2. The project does not list one of '{rids}' in the 'runtimes' section."); + $"2. The project does not list one of '{rids}' in the 'runtimes' section." + Environment.NewLine + + "3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries."); } return runtimeContext;