Hi,
I'm trying to load a project using the following code:
Microsoft.Build.Evaluation.Project project = ProjectCollection.GlobalProjectCollection.LoadProject(path);
But I get the following exception:
Microsoft.Build.Exceptions.InvalidProjectFileException The project file could not be loaded. Access to the path 'path' is denied.
I have verified the path is correct, so I cannot what's going wrong...
Any thoughts?
Thanks!