Skipping unpublishable project.
I get below feedback in the build step log when I try to build a deploy package using .NET Core (dotnet). It is a VS 2017 solution. This is the first time I am using TeamCity, and I am not certain, that I'm on the right track at all - When trying to use MSBuild, the Agent states it is incompatible.
Can you guys send me in any direction for further trouble shooting?
[10:00:02] Step 3/3: .NET Core (dotnet) (1s)
[10:00:02] [Step 3/3] Starting: "C:\Program Files\dotnet\dotnet.exe" publish MyProject/MyProject.csproj --configuration Release --output MyProject/obj/Release/Package --verbosity detailed
[10:00:02] [Step 3/3] in directory: C:\BuildAgent\work\6696560c83bbad2a
[10:00:02] [Step 3/3] Microsoft (R) Build Engine version 15.1.548.43366
[10:00:02] [Step 3/3] Copyright (C) Microsoft Corporation. All rights reserved.
[10:00:02] [Step 3/3]
[10:00:02] [Step 3/3] Build started 4/25/2017 12:00:02 PM.
[10:00:03] [Step 3/3] Overriding target "GetFrameworkPaths" in project "C:\Program Files\dotnet\sdk\1.0.1\Microsoft.Common.CurrentVersion.targets" with target "GetFrameworkPaths" from project "C:\Program Files\dotnet\sdk\1.0.1\Microsoft.NETFramework.CurrentVersion.targets".
[10:00:03] [Step 3/3] Project "C:\BuildAgent\work\6696560c83bbad2a\MyProject\MyProject.csproj" on node 1 (Publish target(s)).
[10:00:03] [Step 3/3] Building with tools version "15.0".
[10:00:03] [Step 3/3] Target "_DeploymentUnpublishable" in file "C:\Program Files\dotnet\sdk\1.0.1\Microsoft.Common.CurrentVersion.targets" from project "C:\BuildAgent\work\6696560c83bbad2a\MyProject\MyProject.csproj" (target "Publish" depends on it):
[10:00:03] [Step 3/3] Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
[10:00:03] [Step 3/3] Task "Message"
[10:00:03] [Step 3/3] Skipping unpublishable project.
[10:00:03] [Step 3/3] Done executing task "Message".
[10:00:03] [Step 3/3] Done building target "_DeploymentUnpublishable" in project "MyProject.csproj".
[10:00:03] [Step 3/3] Target "Publish" in file "C:\Program Files\dotnet\sdk\1.0.1\Microsoft.Common.CurrentVersion.targets" from project "C:\BuildAgent\work\6696560c83bbad2a\MyProject\MyProject.csproj" (entry point):
[10:00:03] [Step 3/3] Done building target "Publish" in project "MyProject.csproj".
[10:00:03] [Step 3/3] Done Building Project "C:\BuildAgent\work\6696560c83bbad2a\MyProject\MyProject.csproj" (Publish target(s)).
[10:00:03] [Step 3/3]
[10:00:03] [Step 3/3] Build succeeded.
[10:00:03] [Step 3/3] 0 Warning(s)
[10:00:03] [Step 3/3] 0 Error(s)
[10:00:03] [Step 3/3]
[10:00:03] [Step 3/3] Time Elapsed 00:00:00.64
[10:00:03] [Step 3/3] Process exited with code 0
Please sign in to leave a comment.
I want it to pack the files in MyProject\obj\Release\Package - but it remains empty - due to the "Skipping unpublishable project.", I suppose.
I am having the same issue, only with a .Net Framework 4.5+ project.