Giter Club home page Giter Club logo

Comments (8)

kamyker avatar kamyker commented on May 30, 2024

How your .csproj looks like? Try maybe my fork: https://github.com/kamyker/openwhisk-dotnet-csharp

from openwhisk-runtime-dotnet.

shawnallen85 avatar shawnallen85 commented on May 30, 2024

@dmlo Is Microsoft.Extensions.DependencyInjection.Abstractions included in your published zip file? The dependencies need to be included there. Let me know, thanks!

from openwhisk-runtime-dotnet.

dmlo avatar dmlo commented on May 30, 2024

@shawnallen85 Microsoft.Extensions.DependencyInjection.Abstractions.dll v3.1.3 was in the zip file I was sending to OpenWhisk.

from openwhisk-runtime-dotnet.

dmlo avatar dmlo commented on May 30, 2024

@kamyker here is my csproj:

`

<PropertyGroup>
    <TargetFrameworks>netstandard2.1;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="EFCore.NamingConventions" Version="1.1.0" />
  <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
  <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.4" />
  <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
</ItemGroup>

<ItemGroup>
  <ProjectReference Include="..\ih-interface\ih-interface.csproj" />
</ItemGroup>

<ItemGroup>
    <None Include="config.json" CopyToPublishDirectory="Always" />
    <None Update="female-names.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="last-names.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="male-names.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="places.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
</ItemGroup>
`

from openwhisk-runtime-dotnet.

kamyker avatar kamyker commented on May 30, 2024

No idea, "PackageReference Include="Microsoft.AspNetCore" in https://github.com/apache/openwhisk-runtime-dotnet/blob/master/core/dotnet3.1/proxy/Apache.OpenWhisk.Runtime.Common/Apache.OpenWhisk.Runtime.Common.csproj
could be the issue.

My version looks a bit different: https://github.com/kamyker/openwhisk-dotnet-csharp/blob/master/core/dotnet3.1/proxy/Apache.OpenWhisk.Runtime.Common/Apache.OpenWhisk.Runtime.Common.csproj

If you can reproduce error without using database (just call something from Microsoft.Extensions.DependencyInjection.Abstractions) I can try it on my fork.

from openwhisk-runtime-dotnet.

shawnallen85 avatar shawnallen85 commented on May 30, 2024

@dmlo Can you try with the latest version from the master branch? @woutersterp had submitted a change that might address this issue. Let me know, thanks!!

from openwhisk-runtime-dotnet.

shawnallen85 avatar shawnallen85 commented on May 30, 2024

I found out what we need to do to resolve this issue, but to implement it requires a breaking change in how functions are built and deployed. Will hold off on this until the next release where we plan on potentially changing the contract.

from openwhisk-runtime-dotnet.

shawnallen85 avatar shawnallen85 commented on May 30, 2024

For reference: https://github.com/shawnallen85/openwhisk-runtime-dotnet/tree/assembly-load-changes

from openwhisk-runtime-dotnet.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.