NuGet.Preprocessor.TransformFile C# (CSharp) Method

TransformFile() public method

public TransformFile ( IPackageFile file, string targetPath, IProjectSystem projectSystem ) : void
file IPackageFile
targetPath string
projectSystem IProjectSystem
return void
        public void TransformFile(IPackageFile file, string targetPath, IProjectSystem projectSystem)
        {
            if (!projectSystem.FileExists(targetPath))
            {
                using (Stream stream = Process(file, projectSystem).AsStream())
                {
                    projectSystem.AddFile(targetPath, stream);
                }
            }
        }