Skip to content

Commit 6edcd74

Browse files
committed
C#: Update make_stubs_all to pin ServicePack version number.
1 parent eaeeafe commit 6edcd74

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

csharp/scripts/stubs/make_stubs_all.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@
1616
"EntityFramework",
1717
"Newtonsoft.Json",
1818
"NHibernate",
19-
"ServiceStack",
20-
"ServiceStack.OrmLite.SqlServer",
2119
"System.Data.OleDb",
2220
"System.Data.SqlClient",
2321
"System.Data.SQLite",
2422
]
2523

24+
# List of packages with specific versions to create stubs for.
25+
# Note that these version numbers most likely needs to be increased
26+
# when new stubs are generated for a new .NET.
27+
packages_with_versions = [
28+
("ServiceStack", "8.5.2"),
29+
("ServiceStack.OrmLite.SqlServer", "8.5.2")
30+
]
31+
2632
thisScript = sys.argv[0]
2733
template = "webapp"
2834
relativeWorkDir = helpers.get_argv(1, "tempDir")
@@ -33,6 +39,9 @@
3339
for package in packages:
3440
generator.add_nuget(package)
3541

42+
for (package, version) in packages_with_versions:
43+
generator.add_nuget(package, version)
44+
3645
generator.make_stubs()
3746

3847
exit(0)

0 commit comments

Comments
 (0)