Exemplo n.º 1
0
        private static PhysicalPackageAssemblyReference CreateFile(string name, string content)
        {
            var buffer = Encoding.UTF8.GetBytes(content);
            var file   = new PhysicalPackageAssemblyReference(() => new MemoryStream(buffer));

            file.SourcePath = name;
            file.TargetPath = name;
            return(file);
        }
Exemplo n.º 2
0
        private static PhysicalPackageAssemblyReference CreateFile()
        {
            var buffer = Encoding.UTF8.GetBytes("test");
            var file   = new PhysicalPackageAssemblyReference(() => new MemoryStream(buffer));

            file.SourcePath = "test";
            file.TargetPath = "test";
            return(file);
        }