diff --git a/tools/nuget/generate_nuspec_for_native_nuget.py b/tools/nuget/generate_nuspec_for_native_nuget.py index 752773e8ff6f9..6905ef21bc272 100644 --- a/tools/nuget/generate_nuspec_for_native_nuget.py +++ b/tools/nuget/generate_nuspec_for_native_nuget.py @@ -1029,13 +1029,7 @@ def generate_files(line_list, args): "_._", ) net6_maccatalyst_target_targets = os.path.join( - args.sources_path, - "csharp", - "src", - "Microsoft.ML.OnnxRuntime", - "targets", - "net6.0-maccatalyst", - args.package_name + ".targets", + args.sources_path, "csharp", "src", "Microsoft.ML.OnnxRuntime", "targets", "net6.0-maccatalyst", "_._" ) net6_macos_source_targets = os.path.join(