I am using a POM in C# with Xunit as a framework, and am getting error in pagefactory for the following code:
Error: "The name PageFactory does not exist in current context", what is the solution for this?
PageFactory class is now considered deprecated in the Selenium binaries; that could be the issue. But, I would still try adding the following to your code to see if it will resolve.
Failing that, you could use
NuGet to install this package in your project.