WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 2 posts ] 



 
Author Message
 Post Posted: Fri Sep 08, 2017 7:37 am 
Offline
Newbie
Newbie

Joined: Fri Sep 08, 2017 7:30 am
Posts: 1
Hi, I don't know if this is the correct place to ask but I am having trouble running a windows dotnet app in linux using mono.

I'm running:

mono foo.exe

It's a black-box program, which opens a window asking for a directory. It then checks if there is some sort of data in the targeted directory. With the data I am using, I've confirmed this software works in a VM.

I want to get it to run in linux using mono.

I've tried putting in:
Z:\path\to\directory (wine-style)
and also
/path/to/directory
but neither of those work. It says the data is not there, but when I try with the same data in VM it works fine.

So I am thinking it is a problem with the directory syntax?

But when I compiled a mono program to check the directory, it returned the unix directory:
Code:
using System;
using System.IO;
using System.Reflection;

public class HelloWorld
{
  static public void Main ()
  {
    Console.WriteLine (Path.GetDirectoryName(Assembly.GetEntryAssembly().Location));
  }
}

Code:
$mcs hello.cs && mono hello.exe

Code:
/path/to/directory


Why then is there an error when I enter the directory using the unix directory syntax? Is it because the program was compiled under windows originally?

What directory syntax should I be using?


Top 
 Post Posted: Fri Sep 08, 2017 3:46 pm 
Offline
Moderator
Moderator
User avatar

Joined: Tue Mar 25, 2008 10:30 pm
Posts: 11772
yellowMouse wrote:
Hi, I don't know if this is the correct place to ask but I am having trouble running a windows dotnet app in linux using mono.

I'm running:

mono foo.exe

That should be
Code:
wine foo.exe

and you need wine-mono installed, not Linux mono.

Depending on what version of .NET this app needs, you may need to install native .NET.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 2 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: