Skip to content
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

Creating tag for .net is not working #23

Open
Pastajello opened this issue Jul 15, 2021 · 3 comments
Open

Creating tag for .net is not working #23

Pastajello opened this issue Jul 15, 2021 · 3 comments
Labels
bug Something isn't working functions

Comments

@Pastajello
Copy link

Hello,

For starters, great extension! :D

So for the issue:

Im not sure what languages are supported for tag creation here, but .Net has a bit different process to get the tar file.
From what I've read in sc the 'tag creation' only packs whatever is in the folder and sends it into appwrite.

For .net we first need to create 'publish package' and only then we can create a tar to send into appwrite from this package.

So now:

Would it be possible to either recognize .net solutions or pass the default path for tag method get the files from?
The path that the package is sitting is 'bin/Debug/net5.0/linux-x64'.
So the solution would be, at least for me, if the folder contains a '*.csproj' check for 'bin/Debug/net5.0/linux-x64' and tar this folder.

The process for .net is like this:

dotnet publish --runtime linux-x64 --framework net5.0 --no-self-contained
tar -C bin/Debug/net5.0/linux-x64 -zcvf code.tar.gz publish

@alexweininger
Copy link
Member

Thanks for opening the issue!

I have not tried creating Appwrite functions with .NET and I'm not familiar with the process. So I will try to reproduce this and work on adding support for .NET and hopefully it makes the "Create tag" feature more robust.

If you could provide me a simple .NET function that I can quickly do my own testing with that would help me a lot!

@alexweininger alexweininger added functions bug Something isn't working labels Jul 20, 2021
@Pastajello
Copy link
Author

Hi!
Thanks for answer :)

So the easiest would be a hello-world from samples.
https://github.com/appwrite/demos-for-functions/tree/master/dotnet/hello-world

The process is described in the readme but if there's any problem contact me :)
basically go to the folder with code and run from terminal:
dotnet publish --runtime linux-x64 --framework net5.0 --no-self-contained
tar -C bin/Debug/net5.0/linux-x64 -zcvf code.tar.gz publish

@alexweininger
Copy link
Member

Of course I should've checked the Appwrite demos first. Thanks! 😅

@alexweininger alexweininger linked a pull request Aug 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants