mrapi
mrapi

Reputation: 6025

Get 'dotnet publish' command used by Vs 2017

In a .Net Core +Angular project how do I publish it from command line getting the same result as publish from VS 2017?

tried

dotnet publish --configuration Release --runtime win-x64

but not getting the same result,found lots of dll files not present in publish from VS

thanks

Upvotes: 0

Views: 2432

Answers (1)

ElasticCode
ElasticCode

Reputation: 7875

You need to publish the project using the netcoreapp2.1 framework without --runtime win-x64 as below

dotnet publish --framework netcoreapp2.1 --configuration Release

Default publishing settings in VS 2017 will target framework as below

VS 2017 Publish Settings

Upvotes: 3

Related Questions