public ExportAttribute ( DirectoryInfo directory, string frameworkType ) : void | ||
directory | DirectoryInfo | |
frameworkType | string | |
Résultat | void |
void Configure(ConfigureWindowModel model, Project project) { var directoryInfo = fullPathResolver.GetFullPath(model.ToolsDirectory, project); var targetFile = new FileInfo(Path.Combine(directoryInfo.FullName, "NotifyPropertyWeaverMsBuildTask.dll")); if (!targetFile.Exists || VersionChecker.IsVersionNewer(targetFile)) { if (!fileExporter.ExportTask(directoryInfo)) { taskFileReplacer.AddFile(directoryInfo); } } if (model.IncludeAttributeAssembly) { var frameworkType = FrameworkTypeReader.GetFrameworkType(project.FullName); fileExporter.ExportAttribute(fullPathResolver.GetFullPath(model.DependenciesDirectory, project), frameworkType); } var defaulter = new Defaulter(); var projectInjector = new NotifyPropertyWeaverProjectInjector { ProjectFile = project.FullName }; defaulter.FromModel(projectInjector, model); projectInjector.Execute(); }
public void ProcessAttributeFile(Project project) { var dependenciesDirectory = ProjectReader.GetDependenciesDirectory(project.FullName); if (dependenciesDirectory == null) { return; } var directoryInfo = fullPathResolver.GetFullPath(dependenciesDirectory, project); var targetFile = new FileInfo(Path.Combine(directoryInfo.FullName, "NotifyPropertyWeaver.dll")); if (!targetFile.Exists) { return; } if (VersionChecker.IsVersionNewer(targetFile)) { var frameworkType = FrameworkTypeReader.GetFrameworkType(project.FullName); fileExporter.ExportAttribute(directoryInfo, frameworkType); } }