Try adding ProduceReferenceAssembly MSBuild property and set it to true:
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
See original post here: https://github.com/dotnet/format/issues/56