Giter VIP home page Giter VIP logo

Comments (16)

nipunojha avatar nipunojha commented on August 16, 2024 2

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024 1

Great idea! Looking forward to seeing the code!

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024 1

Closed by mistake! Code submitted.

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024 1

Hey @nipunojha, it seems like you're not using the Microsoft Graph .NET SDK which is one of the prerequisites for hacks in this hackathon. Would you mind updating the code? 😊

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024 1

Lol...typical dev. Will try and change the code else will withdraw :D

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024 1

You've got an awesome solution. Please, don't hesitate to reach out if you get stuck moving the code over to the Microsoft Graph .NET SDK. We're here to help.

from hack-together.

tajbender avatar tajbender commented on August 16, 2024 1

Wow, @nipunojha

this is soooo cool. May I use it in electrifier?

@waldekmastykarz Would it be possible for me to use his project es an add-on?

This way, we could help each other, too. Hack2gether, right?

Regards,
thx,
tajbender

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024 1

Thanks @tajbender! Happy for you to use this if it is okay by @waldekmastykarz and rules permit :)
Happy to collaborate with you on the graph bit of your solution

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024 1

Hey @nipunojha, the first thing that I saw is that in your project you're using the Microsoft Graph .NET SDK v5 while the documentation you're referencing is for .NET SDK v4. There are some breaking changes between v5 and v4 and I think you've just hit one of them. Here's more information about how to update the QueryOptions piece to the v5 SDK: https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/7a2be45d2cf37f18a32cc9a60d0edf441fd23a08/docs/upgrade-to-v5.md#query-options.

@tajbender perfectly fine to reuse parts of this solution by me with @nipunojha permission and the credits so that we can tell what are the unique pieces that you've built and what's reused.

Awesome work folks! Looking forward to seeing your hacks!

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024 1

@waldekmastykarz Thanks for the pointer and reference. It helped and got me past the issue. I figured since i was doing large upload i should also do the large file download and use the unit test reference to implement the same. hopefully it is all good now

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024 1

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024

Thanks! Okay, I converted the large file upload using the graph sdk example here https://learn.microsoft.com/en-us/graph/sdks/large-file-upload?tabs=csharp. Couldn't find how to use the sdk to download and delete the items yet. Will try and convert those too

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024

I am stuck at the moment facing issues with using the sdk to convert the file to pdf and need some assistance @waldekmastykarz

I tried the code from here, but my compiler doesn't recognize QueryFilter and suggested using Microsoft.TeamsFoundation.WorkItemTracking.WebApi.Models

image

I was also trying to check any unit tests which might help but couldn't something corresponding to this. (Will use the download large test as reference for the download option)
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs

Package References:

 <PackageReference Include="Azure.Identity" Version="1.8.2" />
    <PackageReference Include="MediaTypeMap.Core" Version="2.3.3" />
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.2.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
    <PackageReference Include="Microsoft.Graph" Version="5.0.0" />
    <PackageReference Include="Microsoft.Identity.Client" Version="4.50.0" />
    <PackageReference Include="Microsoft.IdentityModel.Clients.ActiveDirectory" Version="5.3.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
    <PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.170.0" />

from hack-together.

nipunojha avatar nipunojha commented on August 16, 2024

I hit a snag while testing. I am also running the functions on .net 6 and v4 runtime and facing issue at the creation of the graphClient microsoftgraph/msgraph-sdk-dotnet#1670

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024

I hit a snag while testing. I am also running the functions on .net 6 and v4 runtime and facing issue at the creation of the graphClient microsoftgraph/msgraph-sdk-dotnet#1670

Ouch, sorry to hear that. Would using an older version of the SDK be an option for you until we sort out how to use the SDK v5 on Azure Functions?

from hack-together.

waldekmastykarz avatar waldekmastykarz commented on August 16, 2024

Hey @nipunojha, were you able to have another look at the SDK? Is there anything that we could help you with?

from hack-together.

Related Issues (20)

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.