Asset refactoring and content files

This commit is contained in:
Pavel Krymets 2016-02-17 10:08:27 -08:00
parent 388bb7260c
commit a71112ce8f
34 changed files with 1301 additions and 173 deletions

View file

@ -53,7 +53,7 @@ namespace Microsoft.DotNet.Cli.Compiler.Common
}
}
public static void StructuredCopyTo(this IEnumerable<LibraryAsset> assets, string destinationPath)
public static void StructuredCopyTo(this IEnumerable<LibraryAsset> assets, string destinationPath, string tempLocation)
{
if (!Directory.Exists(destinationPath))
{
@ -63,8 +63,9 @@ namespace Microsoft.DotNet.Cli.Compiler.Common
foreach (var asset in assets)
{
var targetName = ResolveTargetName(destinationPath, asset);
var transformedFile = asset.GetTransformedFile(tempLocation);
File.Copy(asset.ResolvedPath, targetName, overwrite: true);
File.Copy(transformedFile, targetName, overwrite: true);
}
}