Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit a5b7453

Browse files
authored
Merge pull request #9 from eelwk/master
updating to function runtime 3.0 and .netcore 3.1. writing to local t…
2 parents 1bc0982 + 892671b commit a5b7453

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Encoding/Encoding/Encoding.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netstandard2.0</TargetFramework>
4-
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
55
<AssemblyVersion>1.0.1.0</AssemblyVersion>
66
<Version>1.0.0</Version>
77
</PropertyGroup>
@@ -23,7 +23,7 @@
2323
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.2.2" />
2424
<PackageReference Include="Microsoft.Azure.Management.Media" Version="2.0.1" />
2525
<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" />
2727
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication" Version="2.3.7" />
2828
</ItemGroup>
2929
<ItemGroup>

Encoding/Encoding/VodFunctions/ffmpeg-encoding.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ public static async Task<IActionResult> Run(
8181
try
8282
{
8383
var folder = context.FunctionDirectory;
84+
var tempFolder = Path.GetTempPath();
8485

8586
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);
8788

8889
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);
9091

9192
foreach (DriveInfo drive in DriveInfo.GetDrives().Where(d => d.IsReady))
9293
{

0 commit comments

Comments
 (0)