Error RZ3007: Targeted tag name cannot be null or whitespace This method worked for me: delete obj and bin folders run dotnet restore run dotnet build