vscode-appwrite icon indicating copy to clipboard operation
vscode-appwrite copied to clipboard

Creating tag for .net is not working

Open Pastajello opened this issue 4 years ago • 3 comments

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

Pastajello avatar Jul 15 '21 10:07 Pastajello

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 avatar Jul 20 '21 03:07 alexweininger

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

Pastajello avatar Jul 20 '21 07:07 Pastajello

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

alexweininger avatar Jul 20 '21 12:07 alexweininger