Commented out the nuget.targets import that was added to csproj for some reason. Since then the build breaks like it couldnt find the file but it is actually there on the build server.