public void UpdateFile() { string projectPath = Path.Combine(this.SourcePath.Value, this.ProjectFilename.Value); ProjectJsonWriter writer = new ProjectJsonWriter(); writer.Write(this, projectPath); }
protected override void WriteModuleAdditionalFiles(ModuleDefinition module) { if (module.IsMain && IsUWPProject) { ProjectJsonWriter writer = new ProjectJsonWriter(targetDir, this.dependencies, UAPPlatformIdentifier + this.minInstalledUAPVersion.ToString(3), this.runtimes); writer.ExceptionThrown += OnExceptionThrown; bool isSuccessfull = writer.WriteProjectJsonFile(); writer.ExceptionThrown -= OnExceptionThrown; this.OnProjectFileCreated(new FileGeneratedInfo(writer.ProjectJsonFilePath, !isSuccessfull)); } }