forked from dotnet/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IContentAssetPreprocessor.cs
27 lines (24 loc) · 1.15 KB
/
IContentAssetPreprocessor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
namespace Microsoft.NET.Build.Tasks
{
/// <summary>
/// Resource for reading, processing and writing content assets
/// </summary>
internal interface IContentAssetPreprocessor
{
/// <summary>
/// Configure the preprocessor with a base outputDirectory and the tokens/value
/// pairs used during preprocessing
/// </summary>
void ConfigurePreprocessor(string outputDirectoryBase, Dictionary<string, string> preprocessorValues);
/// <summary>
/// Read and process a content asset from originalAssetPath and write
/// result to specified output path
/// </summary>
/// <returns>true if an asset is written, false otherwise</returns>
/// <exception cref="InvalidOperationException"><see cref="ConfigurePreprocessor"/> was not called.</exception>
bool Process(string originalAssetPath, string relativeOutputPath, out string pathToFinalAsset);
}
}