Beispiel #1
0
 public static string DetermineResourceCulture(string name)
 {
     Microsoft.Build.Tasks.AssignCulture task = new Microsoft.Build.Tasks.AssignCulture();
     task.Files = new TaskItem[] { new TaskItem(name) };
     task.BuildEngine = new LogOnlyBuildEngine();
     bool result = task.Execute();
     return task.AssignedFiles[0].GetMetadata("Culture");
 }
Beispiel #2
0
        public static string DetermineResourceCulture(string name)
        {
            Microsoft.Build.Tasks.AssignCulture task = new Microsoft.Build.Tasks.AssignCulture();
            task.Files       = new TaskItem[] { new TaskItem(name) };
            task.BuildEngine = new LogOnlyBuildEngine();
            bool result = task.Execute();

            return(task.AssignedFiles[0].GetMetadata("Culture"));
        }