Ejemplo n.º 1
0
        public static void InitialisePackageSources()
        {
            if (!File.Exists(Platform.PackageSourcesFile))
            {
                var sources = new PackageSources();

                sources.Sources.Add(new PackageSource
                {
                    Name = "VitalElement",
                    Url  = "https://github.com/VitalElement/AvalonStudio.Repository"
                });

                SerializedObject.Serialize(Platform.PackageSourcesFile, sources);
            }

            var result = SerializedObject.Deserialize <PackageSources>(Platform.PackageSourcesFile);

            Instance = result;
        }
Ejemplo n.º 2
0
		public static void InitialisePackageSources()
		{
			if (!File.Exists(Platform.PackageSourcesFile))
			{
				var sources = new PackageSources();

				sources.Sources.Add(new PackageSource
				{
					Name = "VitalElement",
					Url = "https://github.com/VitalElement/AvalonStudio.Repository"
				});

                SerializedObject.Serialize(Platform.PackageSourcesFile, sources);				
			}

			var result = SerializedObject.Deserialize<PackageSources>(Platform.PackageSourcesFile);

			Instance = result;
		}