4 using SiliconStudio.Core;
5 using SiliconStudio.Core.IO;
7 namespace SiliconStudio.Assets
12 [DataContract(
"PackageReference")]
37 public Guid Id {
get; set; }
44 public UFile Location {
get; set; }
65 packageReference = null;
87 return string.Format(
"{0}:{1}", Id, Location);
static bool TryParse(string assetReferenceText, out Guid guid, out UFile location)
Tries to parse an asset reference in the format "GUID:Location".
PackageReference()
Initializes a new instance of the PackageReference class.
static bool TryParse(string packageReferenceAsText, out PackageReference packageReference)
Tries to parse a package reference in the format {guid:location}.
Guid Id
Gets or sets the unique identifier of this asset.
PackageReference(Guid id, UFile location)
Initializes a new instance of the PackageReference class.
PackageReference Clone()
Clones this instance.
override string ToString()
A reference to a local package loaded into the same PackageSession.
UFile FullPath
Gets the path to the package file. May be null if the package was not loaded or saved.
A package managing assets.
Defines a normalized file path. See UPath for details. This class cannot be inherited.