diff --git a/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/DescriptorPropertyBuilder.cs b/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/DescriptorPropertyBuilder.cs
index 50042fd405..b57fc01b86 100644
--- a/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/DescriptorPropertyBuilder.cs
+++ b/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/DescriptorPropertyBuilder.cs
@@ -60,7 +60,7 @@ public override bool BuildProperty(object obj, PropertyInfo propertyInfo)
.GetValue(lookup).ToString();
var uri = lookup.GetType()
- .GetProperty(EdFiConstants.Namespace)
+ .GetProperty($"Var{EdFiConstants.Namespace}")
.GetValue(lookup);
var descriptorValue = uri != null && !string.IsNullOrEmpty(uri.ToString())
diff --git a/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/NamespacePropertyBuilder.cs b/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/NamespacePropertyBuilder.cs
index 25b89e555e..ea006d2b7b 100644
--- a/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/NamespacePropertyBuilder.cs
+++ b/Utilities/DataLoading/EdFi.LoadTools/SmokeTest/PropertyBuilders/NamespacePropertyBuilder.cs
@@ -27,7 +27,7 @@ public override bool BuildProperty(object obj, PropertyInfo propertyInfo)
{
var typeName = obj.GetType().Name;
- if (propertyInfo.PropertyType != typeof(string) || propertyInfo.Name != EdFiConstants.Namespace)
+ if (propertyInfo.PropertyType != typeof(string) || propertyInfo.Name != $"Var{EdFiConstants.Namespace}")
{
return false;
}
diff --git a/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.OdsApi.Sdk.nuspec b/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.OdsApi.Sdk.nuspec
index ae52d498e1..7e5ea1c1f8 100644
--- a/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.OdsApi.Sdk.nuspec
+++ b/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.OdsApi.Sdk.nuspec
@@ -21,6 +21,6 @@
-
+
\ No newline at end of file
diff --git a/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.SdkGen.Console.csproj b/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.SdkGen.Console.csproj
index b62da3e1b0..00cc76f7ac 100644
--- a/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.SdkGen.Console.csproj
+++ b/Utilities/SdkGen/EdFi.SdkGen.Console/EdFi.SdkGen.Console.csproj
@@ -1,29 +1,29 @@
-
+
Exe
- net6.0
- false
- false
+ net8.0
+ false
+ false
-
-
-
-
-
-
+
+
+
+
+
+
-
+
PreserveNewest
-
+
-
+
PreserveNewest
@@ -31,4 +31,4 @@
Always
-
+
\ No newline at end of file
diff --git a/Utilities/SdkGen/EdFi.SdkGen.Console/OpenApiCodeGenCliRunner.cs b/Utilities/SdkGen/EdFi.SdkGen.Console/OpenApiCodeGenCliRunner.cs
index b271cb7ca1..c11741bfa1 100644
--- a/Utilities/SdkGen/EdFi.SdkGen.Console/OpenApiCodeGenCliRunner.cs
+++ b/Utilities/SdkGen/EdFi.SdkGen.Console/OpenApiCodeGenCliRunner.cs
@@ -20,7 +20,6 @@ public class OpenApiCodeGenCliRunner
private const string Profiles = "Profiles";
private const string Composites = "Composites";
private const string Identity = "Identity";
- private const string Java = "java";
private const string All = "All";
private readonly ILog _log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private readonly Options _options;
@@ -68,15 +67,15 @@ private void RunCliCodegen(IEnumerable apiEndpoints)
// code-gen paramaters
string[] @params =
{
- $"-Xms3g -jar {_options.CliExecutableFullName()}", "generate", "-g csharp-netcore", $"-i {apiEndpoint.EndpointUri}",
+ $"-Xms3g -jar {_options.CliExecutableFullName()}", "generate", "-g csharp", $"-i {apiEndpoint.EndpointUri}",
$"--api-package {apiPackage}", $"--model-package {modelPackage}", $"-o {_options.OutputFolder}",
- $"--additional-properties packageName={_options.Namespace},targetFramework=net6.0,netCoreProjectFile=true",
+ $"--additional-properties packageName={_options.Namespace},targetFramework=net8.0,netCoreProjectFile=true",
"--global-property modelTests=false --global-property apiTests=false --global-property apiDocs=false --global-property modelDocs=false --skip-validate-spec"
};
_log.Info($"Generating C# SDK for {apiEndpoint.EndpointUri}");
- ShellProcess(Java, @params);
+ ShellProcess(_options.JavaPath, @params);
}
}
diff --git a/Utilities/SdkGen/EdFi.SdkGen.Console/Options.cs b/Utilities/SdkGen/EdFi.SdkGen.Console/Options.cs
index 6768aedb0e..432f630e52 100644
--- a/Utilities/SdkGen/EdFi.SdkGen.Console/Options.cs
+++ b/Utilities/SdkGen/EdFi.SdkGen.Console/Options.cs
@@ -28,7 +28,7 @@ public sealed class Options
[Option(
'v',
"cliVersion",
- Default = "6.6.0",
+ Default = "7.2.0",
HelpText = "the version of openapi-codegen-cli to download")]
public string CliVersion { get; set; }
@@ -74,6 +74,13 @@ public sealed class Options
HelpText = "include identity in the generation of the assembly")]
public bool IncludeIdentity { get; set; }
+ [Option(
+ 'j',
+ "java-path",
+ Default = "java",
+ HelpText = "the path to the java executable")]
+ public string JavaPath { get; set; }
+
[Option(
'k',
"core-only",