.NET Core: 'Publish' target is not supported

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When you are building Self Contained Deployments, sometimes the publish process cannot resolve the target framework. For example:

dotnet publish -r win10-x64

dotnet publish -r win10-x64 --self-contained

In this case you will get following error:

Error :
The 'Publish' target is not supported without specifying a target framework.
The current project targets multiple frameworks, please specify the framework for the published application.

To workaround this error, you have to explicitly specify the target framework.

dotnet publish -r win10-x64 --self-contained -f netcoreapp2.0


Posted Sep 19 2017, 06:35 AM by Damir Dobric
Filed under:
developers.de is a .Net Community Blog powered by daenet GmbH.