File tree Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 4
4
using System . Drawing ;
5
5
using System . IO ;
6
6
using System . Linq ;
7
+ using System . Text . Json . Nodes ;
7
8
using System . Text . RegularExpressions ;
8
9
using System . Windows . Forms ;
9
10
using HandlebarsDotNet ;
@@ -593,7 +594,12 @@ private void GenerateFromTemplate()
593
594
{
594
595
// Compile the template, and merge it with the metadata.
595
596
var template = Handlebars . Compile ( localRichTextBoxGenerationTemplate . Text ) ;
596
- var result = template ( dataObjectMappingList ) ;
597
+
598
+ //string serializedMapping = System.Text.Json.JsonSerializer.Serialize(dataObjectMappingList);
599
+ string jsonInput = File . ReadAllText ( dataObjectMappingList . metadataFileName ) ;
600
+ JsonNode deserializedMapping = System . Text . Json . JsonSerializer . Deserialize < JsonNode > ( jsonInput ) ;
601
+
602
+ var result = template ( deserializedMapping ) ;
597
603
598
604
// Check if the metadata needs to be displayed.
599
605
if ( DisplayJsonFlag )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public FormMain()
31
31
InitializeComponent ( ) ;
32
32
33
33
// Set the version of the build for everything
34
- const string versionNumberForApplication = "v1.6.11 " ;
34
+ const string versionNumberForApplication = "v1.6.12 " ;
35
35
36
36
Text = $ "Virtual Data Warehouse - { versionNumberForApplication } ";
37
37
labelWelcome . Text = $ "{ labelWelcome . Text } - { versionNumberForApplication } ";
@@ -649,7 +649,7 @@ internal List<LocalTemplate> GetMetadata()
649
649
// Validate the file contents against the schema definition.
650
650
if ( File . Exists ( Application . StartupPath + @"\Schema\" + GlobalParameters . JsonSchemaForDataWarehouseAutomationFileName ) )
651
651
{
652
- var result = JsonHandling . ValidateJsonFileAgainstSchema ( Application . StartupPath + @"\Schema\" + GlobalParameters . JsonSchemaForDataWarehouseAutomationFileName , fileName ) ;
652
+ var result = JsonValidation . ValidateJsonFileAgainstSchema ( Application . StartupPath + @"\Schema\" + GlobalParameters . JsonSchemaForDataWarehouseAutomationFileName , fileName ) ;
653
653
654
654
foreach ( var error in result . Errors )
655
655
{
Original file line number Diff line number Diff line change 572
572
</ItemGroup >
573
573
<ItemGroup >
574
574
<PackageReference Include =" DataWarehouseAutomation" >
575
- <Version >1.2.5 </Version >
575
+ <Version >1.3.3 </Version >
576
576
</PackageReference >
577
577
<PackageReference Include =" Handlebars.Net" >
578
578
<Version >2.1.4</Version >
581
581
<Version >5.1.1</Version >
582
582
</PackageReference >
583
583
<PackageReference Include =" Microsoft.Identity.Client" >
584
- <Version >4.53 .0</Version >
584
+ <Version >4.55 .0</Version >
585
585
</PackageReference >
586
586
<PackageReference Include =" Microsoft.SqlServer.SqlManagementObjects" >
587
- <Version >170.13 .0</Version >
587
+ <Version >170.18 .0</Version >
588
588
</PackageReference >
589
589
<PackageReference Include =" Newtonsoft.Json" >
590
590
<Version >13.0.3</Version >
591
591
</PackageReference >
592
592
<PackageReference Include =" Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version =" 0.4.421302" >
593
593
<PrivateAssets >all</PrivateAssets >
594
594
</PackageReference >
595
- <PackageReference Include =" Microsoft.Windows.Compatibility" Version =" 7.0.1 " />
595
+ <PackageReference Include =" Microsoft.Windows.Compatibility" Version =" 7.0.4 " />
596
596
</ItemGroup >
597
597
</Project >
Original file line number Diff line number Diff line change 133
133
{
134
134
"Name" = "8:.NET Framework"
135
135
"Message" = "8:[VSDNETMSG]"
136
- "FrameworkVersion" = "8:v4.6.1 "
136
+ "FrameworkVersion" = "8:v4.6.1 "
137
137
"AllowLaterVersions" = "11:FALSE"
138
138
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=671728"
139
139
}
281
281
{
282
282
"Name" = "8:Microsoft Visual Studio"
283
283
"ProductName" = "8:Virtual Data Warehouse"
284
- "ProductCode" = "8:{4AF00EF6-A639-439D-8013-7D626835C38A }"
285
- "PackageCode" = "8:{220173E5-C92A-434F-8C45-FBE967536476 }"
284
+ "ProductCode" = "8:{DD960107-BA0D-4688-8E13-E6AE94F99C4D }"
285
+ "PackageCode" = "8:{0DB81DFB-67C0-459F-8217-BD7FB3D86EB7 }"
286
286
"UpgradeCode" = "8:{CAA37576-CF3A-4799-AF70-44CB58934E54}"
287
287
"AspNetVersion" = "8:4.0.30319.0"
288
288
"RestartWWWService" = "11:FALSE"
289
289
"RemovePreviousVersions" = "11:FALSE"
290
290
"DetectNewerInstalledVersion" = "11:TRUE"
291
291
"InstallAllUsers" = "11:TRUE"
292
- "ProductVersion" = "8:1.6.11 "
292
+ "ProductVersion" = "8:1.6.12 "
293
293
"Manufacturer" = "8:RoelantVos"
294
294
"ARPHELPTELEPHONE" = "8:"
295
295
"ARPHELPLINK" = "8:http://www.roelantvos.com/blog"
You can’t perform that action at this time.
0 commit comments