We need to run the CrmSvcUtil.exe tool from the SDK\Bin folder.
Note: If we are run the tool from another folder location, we have to make sure that a copy of the Microsoft.Xrm.Sdk.dll assembly is in that same folder.
Please find the syntax
/out:<outputFilename>.cs /username:<username> /password:<password> /domain:<domainName>
Hope this Helps! 🙂