Example #1
0
 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;
 }
Example #2
0
 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);
        }