public Asset(ContentProject project, FileInfo file, AssetBuildActionKind buildAction, string name, string importer, string processor) { Project = project; File = file; BuildAction = buildAction; Name = name; Importer = importer; Processor = processor; }
public void RegisterAsAsset(AssetBuildActionKind buidAction, string name, string importer, string processor) { Asset = Workspace.Current.Project.AddAsset(File, buidAction, name, importer, processor); }
public Asset AddAsset(FileInfo file, AssetBuildActionKind buidAction, string name, string importer, string processor) { if (file == null) throw new ArgumentNullException("file"); var assetPath = ResolveAssetPath(file); AddItem(buidAction.ToString(), assetPath, name, importer, processor); return GetAsset(file); }