예제 #1
0
        // TODO use Code.cs and CodeLine.cs

        #endregion

        #region Everything

        // ensure everything and save the project
        public static void EnsureEverything()
        {
            var project = VsUtils.GetCurrentProject();

            // omit these checks, perform them manually
            //EnsureResourcesFolder(project);
            //EnsureStringResources(project);

            // only if res dir contains resources
            if (Resourcer.AnyResource())
            {
                EnsureResourceManager(project);
                EnsureAppXaml(project);
            }

            // only if there are translations added
            if (Resourcer.AnyLocale())
            {
                EnsureAppXamlCs(project);
            }

            VsUtils.SaveProject(VsUtils.GetCurrentProject());
        }