Skip to content

How to use sidecar to run tauri with a console app? #5863

Answered by Hellager
Hellager asked this question in Q&A
Discussion options

You must be logged in to vote

I have asked an issue [bug] Always get Uncaught (in promise) invalid utf-8 sequence of 1 bytes from index 2 with sidecar and figured out why.
The problem is the console app cannot correctly load the dll specific in tauri->bundle->resources.
So the solution is quite simply, bundle all your assemblies like dll to your console app will fix it.
If you are using c# .net framework to build your console app and have the same issue, strongly recommend to use Costura.Fody. For more detail, check this Embedding DLLs in a compiled executable

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Hellager
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Hellager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants