Reputation: 6025
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
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
Upvotes: 3