I\'m trying to call \"dotnet publish\" with a specific publish profile pubxml file as documented here :
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/
You might need the full path, e.g.
dotnet publish -c Release /p:PublishProfile=Properties\PublishProfiles\FolderProfile.pubxml