This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >netstandard2.0 </TargetFramework >
4
- <AzureFunctionsVersion >v2 </AzureFunctionsVersion >
3
+ <TargetFramework >netcoreapp3.1 </TargetFramework >
4
+ <AzureFunctionsVersion >v3 </AzureFunctionsVersion >
5
5
<AssemblyVersion >1.0.1.0</AssemblyVersion >
6
6
<Version >1.0.0</Version >
7
7
</PropertyGroup >
23
23
<PackageReference Include =" Microsoft.Azure.DocumentDB.Core" Version =" 2.2.2" />
24
24
<PackageReference Include =" Microsoft.Azure.Management.Media" Version =" 2.0.1" />
25
25
<PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.CosmosDB" Version =" 3.0.3" />
26
- <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 1 .0.24 " />
26
+ <PackageReference Include =" Microsoft.NET.Sdk.Functions" Version =" 3 .0.3 " />
27
27
<PackageReference Include =" Microsoft.Rest.ClientRuntime.Azure.Authentication" Version =" 2.3.7" />
28
28
</ItemGroup >
29
29
<ItemGroup >
Original file line number Diff line number Diff line change @@ -81,12 +81,13 @@ public static async Task<IActionResult> Run(
81
81
try
82
82
{
83
83
var folder = context . FunctionDirectory ;
84
+ var tempFolder = Path . GetTempPath ( ) ;
84
85
85
86
string inputFileName = System . IO . Path . GetFileName ( new Uri ( sasInputUrl ) . LocalPath ) ;
86
- string pathLocalInput = System . IO . Path . Combine ( context . FunctionDirectory , inputFileName ) ;
87
+ string pathLocalInput = System . IO . Path . Combine ( tempFolder , inputFileName ) ;
87
88
88
89
string outputFileName = System . IO . Path . GetFileName ( new Uri ( sasOutputUrl ) . LocalPath ) ;
89
- string pathLocalOutput = System . IO . Path . Combine ( context . FunctionDirectory , outputFileName ) ;
90
+ string pathLocalOutput = System . IO . Path . Combine ( tempFolder , outputFileName ) ;
90
91
91
92
foreach ( DriveInfo drive in DriveInfo . GetDrives ( ) . Where ( d => d . IsReady ) )
92
93
{
You can’t perform that action at this time.
0 commit comments