Of course, the visual studio projects you created in AX are not kept in the source control (TFS in this case) as xpo file, but rather as the individual files composing the project. In order to import it manually from the local repository you need to use this:
static void ImportProject(Args _args)
str pathToCSProjFile = '';
where of course the pathToCSProjFile variable is as its name says the path to the csproj file on the disk.