File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
<Target Name =" CopyNativeBinaries" AfterTargets =" Build" >
10
10
<ItemGroup >
11
- <NativeBinary Include =" $(TargetDir)bin/runtimes/linux-x64/native/ libgit2-106a5f2.so" />
12
- <NativeBinary Include =" $(TargetDir)bin/runtimes/osx/native/ libgit2-106a5f2.dylib" />
13
- <NativeBinary Include =" $(TargetDir)bin/runtimes/win-x86/native/ git2-106a5f2.dll" />
14
- <NativeBinary Include =" $(TargetDir)bin/runtimes/linux-x64/native/ Magick.Native-Q16-x64.dll.so" />
15
- <NativeBinary Include =" $(TargetDir)bin/runtimes/osx-x64/native/ Magick.Native-Q16-x64.dll.dylib" />
16
- <NativeBinary Include =" $(TargetDir)bin/runtimes/win-x64/native/ Magick.Native-Q16-x64.dll" />
11
+ <NativeBinary Include =" $(TargetDir)bin/libgit2-106a5f2.so" />
12
+ <NativeBinary Include =" $(TargetDir)bin/libgit2-106a5f2.dylib" />
13
+ <NativeBinary Include =" $(TargetDir)bin/git2-106a5f2.dll" />
14
+ <NativeBinary Include =" $(TargetDir)bin/Magick.Native-Q16-x64.dll.so" />
15
+ <NativeBinary Include =" $(TargetDir)bin/Magick.Native-Q16-x64.dll.dylib" />
16
+ <NativeBinary Include =" $(TargetDir)bin/Magick.Native-Q16-x64.dll" />
17
17
</ItemGroup >
18
18
<Copy SourceFiles =" @(NativeBinary)" DestinationFiles =" @(NativeBinary->'$(TargetDir)bin/%(Filename)%(Extension)')" />
19
19
</Target >
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ RUN mkdir -p /home/site/wwwroot
5
5
RUN cd /src/CompressImagesFunction && dotnet publish CompressImagesFunction.csproj -c Release --output /home/site/wwwroot
6
6
7
7
# Native Binaries
8
- RUN cd /src/CompressImagesFunction && cp bin/Release/netstandard2.0/bin/libgit2-106a5f2.so /home/site/wwwroot/bin/
8
+ # TODO find why the runtimes folder is no longer created on dotnet sdk3.1
9
+ RUN cd /src/CompressImagesFunction && cp libgit2-106a5f2.so /home/site/wwwroot/bin/
9
10
RUN cd /src/CompressImagesFunction && cp bin/Release/netstandard2.0/Magick.Native-Q16-x64.dll.so /home/site/wwwroot/bin/
10
11
11
12
FROM mcr.microsoft.com/azure-functions/dotnet:3.0
You can’t perform that action at this time.
0 commit comments