Exemplo n.º 1
0
        public ResXDesignerWriter(string projectRootDirectory, string relativeResourcePath, IResXDesignerProjectItemWriter itemWriter, IFilePathsService filePathsService)
        {
            this.relativeResourcePath = relativeResourcePath;
            this.itemWriter           = itemWriter;
            this.relativeDesignerPath = Path.Combine(Path.GetDirectoryName(relativeResourcePath),
                                                     filePathsService.GetResourceDesignerRelativePath(Path.GetFileNameWithoutExtension(relativeResourcePath)));

            this.fullPath = Path.Combine(projectRootDirectory, this.relativeDesignerPath);
        }
        public ResXDesignerWriter(string projectRootDirectory, string relativeResourcePath,
            List<ProjectItemGroupCompile> designerItemGroup,
            List<ProjectItemGroupEmbeddedResource> resourceItemGroup,
			IFilePathsService filePathsService)
        {
            this.designerItemGroup = designerItemGroup;
            this.resourceItemGroup = resourceItemGroup;
            this.relativeResourcePath = relativeResourcePath;
			this.relativeDesignerPath = Path.Combine(Path.GetDirectoryName(relativeResourcePath), filePathsService.GetResourceDesignerRelativePath(Path.GetFileNameWithoutExtension(relativeResourcePath)));
            this.fullPath = Path.Combine(projectRootDirectory, this.relativeDesignerPath);
        }
 public ResXDesignerWriter(string projectRootDirectory, string relativeResourcePath,
                           List <ProjectItemGroupCompile> designerItemGroup,
                           List <ProjectItemGroupEmbeddedResource> resourceItemGroup,
                           IFilePathsService filePathsService)
 {
     this.designerItemGroup    = designerItemGroup;
     this.resourceItemGroup    = resourceItemGroup;
     this.relativeResourcePath = relativeResourcePath;
     this.relativeDesignerPath = Path.Combine(Path.GetDirectoryName(relativeResourcePath), filePathsService.GetResourceDesignerRelativePath(Path.GetFileNameWithoutExtension(relativeResourcePath)));
     this.fullPath             = Path.Combine(projectRootDirectory, this.relativeDesignerPath);
 }