Select to view content in your preferred language

ProjectFile

643
1
03-12-2013 12:20 PM
KierenTinning1
Deactivated User
Does anyone know how to use the ProjectFile class? I am trying to get the name of the AMP file currently in use.

Thanks for the help

E
0 Kudos
1 Reply
KierenTinning1
Deactivated User
Well, just FYI, until I hear back from tech support as no one, including tech support knows how to use this class. This is how I solved the issue

    private string GetProject()
        {
            IEnumerable<MobileCacheInfo> emi = MobileApplication.Current.Project.EnumerateMobileCacheInfos();
            string str = "";
            foreach (MobileCacheInfo mi in emi)
            {
                str = mi.MobileCache.StoragePath;
            }

            String[] pr = str.Split('\\');
            String project = pr[pr.Length - 2];

            return project;
        }

Bit of a hack, but it works well enough
0 Kudos