AvalonStudio.Projects.Solution.Save C# (CSharp) Méthode

Save() public méthode

public Save ( ) : void
Résultat void
		public void Save()
		{
			StartupItem = StartupProject?.Name;

			for (var i = 0; i < ProjectReferences.Count; i++)
			{
				ProjectReferences[i] = ProjectReferences[i].ToAvalonPath();
			}

			SerializedObject.Serialize(Path.Combine(CurrentDirectory, Name + "." + Extension), this);
		}

Usage Example

Exemple #1
0
        public static Solution Create(string location, string name, bool save = true)
        {
            var result = new Solution();

            result.Name             = name;
            result.CurrentDirectory = location + Platform.DirectorySeperator;

            if (save)
            {
                result.Save();
            }

            return(result);
        }
All Usage Examples Of AvalonStudio.Projects.Solution::Save