Could you provide insides of your .csproj for the project? Happend to me once when I was switching IDE, but simple clean and rebuild helped (did not change any build actions). Also try building through console with dotnet publish and check if the problem stays.