The "publish" has to be immediately after the "dotnet". You have "-r" in there. That has to be moved. The command must come first before any other options.
dotnet publish -r win-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --output "C:\Users\C124\OneDrive\Desktop\Single\"