87
87
"prefetchCount": 1000,
88
88
"batchCheckpointFrequency": 1
89
89
},
90
- "functionTimeout": "00:05:00",
91
- "extensionBundle": {
92
- "id": "Microsoft.Azure.Functions.ExtensionBundle",
93
- "version": "[2.*, 3.0.0)"
94
- }
90
+ "functionTimeout": "00:05:00"
95
91
}
96
92
"""
97
93
94
+ EXTENSION_CSPROJ_TEMPLATE = """\
95
+ <Project Sdk="Microsoft.NET.Sdk">
96
+ <PropertyGroup>
97
+ <TargetFramework>netcoreapp3.1</TargetFramework>
98
+ <WarningsAsErrors></WarningsAsErrors>
99
+ <DefaultItemExcludes>**</DefaultItemExcludes>
100
+ </PropertyGroup>
101
+ <ItemGroup>
102
+ <PackageReference
103
+ Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.0.0" />
104
+ <PackageReference
105
+ Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator"
106
+ Version="1.1.3" />
107
+ </ItemGroup>
108
+ </Project>
109
+ """
110
+
98
111
SECRETS_TEMPLATE = """\
99
112
{
100
113
"masterKey": {
@@ -976,11 +989,16 @@ def _setup_func_app(app_root):
976
989
extensions = app_root / 'bin'
977
990
ping_func = app_root / 'ping'
978
991
host_json = app_root / 'host.json'
992
+ csproj_file = app_root / 'extensions.csproj'
979
993
980
994
if not os .path .isfile (host_json ):
981
995
with open (host_json , 'w' ) as f :
982
996
f .write (HOST_JSON_TEMPLATE )
983
997
998
+ if not os .path .isfile (csproj_file ):
999
+ with open (csproj_file , 'w' ) as f :
1000
+ f .write (EXTENSION_CSPROJ_TEMPLATE )
1001
+
984
1002
_symlink_dir (TESTS_ROOT / 'common' / 'ping' , ping_func )
985
1003
_symlink_dir (EXTENSIONS_PATH , extensions )
986
1004
@@ -989,8 +1007,9 @@ def _teardown_func_app(app_root):
989
1007
extensions = app_root / 'bin'
990
1008
ping_func = app_root / 'ping'
991
1009
host_json = app_root / 'host.json'
1010
+ csproj_file = app_root / 'extensions.csproj'
992
1011
993
- for path in (extensions , ping_func , host_json ):
1012
+ for path in (extensions , ping_func , host_json , csproj_file ):
994
1013
remove_path (path )
995
1014
996
1015
0 commit comments