I ran into this issue today. I found that my problem was the following in the csproj
<RuntimeIdentifier>win-x64</RuntimeIdentifier>