Exemplo n.º 1
0
 private static int Main(string[] args)
 {
     MSBuildCustomLocator.Register();
     try
     {
         var parseArgs = JsonSerializer.Deserialize <Dictionary <string, string> >(args.Length >= 2 ? args[1].Replace('\'', '"') : "{}");
         var result    = Parse(args[0], parseArgs);
         Console.WriteLine(result);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine("Error during project file parsing: {0}", e);
         return(-1);
     }
     return(0);
 }
Exemplo n.º 2
0
 private static int Main(string[] args)
 {
     MSBuildCustomLocator.Register();
     try
     {
         var obj    = JObject.Parse(args[1]);
         var result = Parse(args[0], obj);
         Console.WriteLine(result);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine("Error during project file parsing: {0}", e);
         return(-1);
     }
     return(0);
 }
Exemplo n.º 3
0
        private static int Main(string[] args)
        {
            MSBuildCustomLocator.Register();

            using (new MonoHack())
            {
                try
                {
                    var customPropertiesText = Console.In.ReadToEnd();
                    var obj    = JObject.Parse(customPropertiesText);
                    var result = Parse(args[0], obj);
                    Console.WriteLine(result);
                }
                catch (Exception e)
                {
                    Console.Error.WriteLine("Error during project file parsing: {0}", e);
                    return(-1);
                }
            }
            return(0);
        }