-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KiotaLock fails instantiation on the browser-wasm runtime #2147
Comments
Thanks for reporting this. The interesting thing is that kiota web doesn't fail, but it doesn't set the right version information either.
The best way forward to support those "platforms" properly, is probably to implement a source generator that'd look into the csproj and update a constant. Would you like to take a crack at this? |
Deal, I'll give it a spin tomorrow! Thanks for the reference @baywet ! |
@baywet , happy to report that, after fixing this issue I was able to successfully integrate Kiota in a project I'm working on: This project is growing strong!!! |
ah so this is what you were up to! really cool integration! Thanks for sharing it. |
ehm, not really :-) this was actually just a quick spike that came up this week, our main interest in Kiota is for other purposes. Regarding telemetry, that would be nice! |
First of all, again, great work!
I have been hacking on what we discussed here #2131 , and everything but this little detail seems to work out of the box!
Running
Kiota.Builder
in thebrowser-wasm
runtime I'm getting this exception when KiotaLock is instantiated:** Reproducer **
git clone https://github.com/andreaTP/kiota-wasm-poc.git
docker build . -t kiota-wasm-poc:latest
docker run --rm -p 8080:8080 kiota-wasm-poc:latest
Generate
buttonI have implemented a quick workaround here:
main...andreaTP:kiota:disable-reflection-in-lock
I haven't opened the relevant PR as I'm not sure what would be the best practice in the .NET world to solve those kinds of issues.
The text was updated successfully, but these errors were encountered: