With enough shooting, a barrel-mounted Picatinny rail will come loose if you’re not very careful (and maybe even if you are).
How To Install M-LOK Picatinny Rail Section
Scope Mounting - Achieve Better Zeroing with Picatinny Rings
Installing Picture Rail Moulding - A Beautiful Mess
Shooting Gear, Page 5 of 8
How to install A bi-pod Rail to your Stock
What is the best way to install the STAS picture rail? - STAS picture hanging systems
How to Use a Picture Rail - The Broughton Street House
How to Mount a Scope on a Picatinny Rail
Staircase Installation Help and Tips
The Complete Guide to Mounting A Rifle Scope
The Right Way to Install Chair Molding