✅ C# code that uses FileSearcher running in Bottles

Hey there, I made a windows Forms code that runs a File Searcher, and I wanna use it on Bottles correctly (Linux Operation that I use on a virtual machine called virtual box), but I don´t know why it isn´t working properly. Ican interact with the .exe files i put inside the machine, but the problem is that my File Searcher code seems not to work on linux, as it only lets me see Files that are on windows Paths, nor can I any file at all. Is there any way to make a File Searcher for Linux or is something like that implemented?
8 Replies
Jimmacle
Jimmacle4d ago
linux cannot run exe files natively you need to use a recent version of .NET (5+) and run the DLL using dotnet or publish to a linux target to create an executable file
Sehra
Sehra4d ago
"windows forms", the clue is in the name. if you run an exe in wsl it's caught and starts in windows
Jimmacle
Jimmacle4d ago
also that winforms doesn't work on linux at all looks like bottles is some windows emulation layer that i've never heard of, so depending on exactly how it works your program might not have access to the host filesystem but if you're using .NET and want to support linux you should just use a cross platform GUI framework and target linux directly
Daiko Games
Daiko GamesOP4d ago
The Problem is there are not many and I tried MAUI, but when I load it it doesn´t work on my pc and Xamarin? Xamarin is also very harsh to learn for me 😦 But it doesn´t mean I hate these type of applications, i am just curious if there is a way to make that what I asked for - I heard that Bottles has a way to work with files that are inside of Linux - that is what i am wondering about - also is there any discord for Bottles - bc i can´t seem to find one, and I couldn´t try wine (also a way to use .exe files in linux) jet but i will sure will
Jimmacle
Jimmacle4d ago
xamarin is discontinued, your best bet is avalonia it's pretty similar to WPF if your goal is to support linux then just support linux, don't wrestle with emulation for no reason
Daiko Games
Daiko GamesOP3d ago
ok i will try to use my code in avalonia Ok Avalonia seems very fine , I will try to make my script into avalonia now - wow thx Jimmacle The xaml is just like coding html :0 thanks a lot for sharing this awesome information - i think this topic can be closed 🙂
Sehra
Sehra3d ago
$close
MODiX
MODiX3d ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?