Visual Studio Mac 2017创建可执行文件 [英] Visual Studio Mac 2017 create executable file

查看:165
本文介绍了Visual Studio Mac 2017创建可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我刚刚使用Visual Studio for Mac玩过,可以用
创建第一个控制台应用程序。 



不幸的是,我在文件夹"/ Bin / Debug"中找到了或"/ bin / release"只是一个"test.exe"。文件。 

是否有可能为Mac OS X创建一个应用程序,我可以在其他Mac计算机上进行测试或发送给朋友?



提前致谢,



最好的情感Thommy

解决方案

< a name ="x_x_x_x_OLE_LINK1355">


您好Thommy ,


我认为您已为其创建了一个控制台项目。 net core,在我的Mac上我遇到了和你一样的问题。


在Windows操作系统中,控制台应用程序也可以不构建为.exe文件,它也是.dll文件。


但是我们可以用命令运行它windows中的line(dotnet命令)。请参考以下步骤:


1)。打开VS2015的命令行:


2)。输入dotnet yourconsole.dll,请参阅以下屏幕截图:


<跨度> <跨度> <跨度> <跨度>



您可以在Mac上尝试上述步骤,看看它是否有效。



此致


奥斯卡


Hello everybody,

I just played something with Visual Studio for Mac and could
create a first console application. 

Unfortunately, I find in the folder "/ Bin / Debug" or "/ bin / release" is only a "test.exe" file. 
Is there a Possibility to create an app for Mac OS X that I can use for testing on other Mac Computers or send to a friend?

Thanks in advance,

Best greatings Thommy

解决方案

Hi Thommy,

I think you have created a console project for .net core, in my Mac I have encountered the same issue as yours.

And in Windows OS, the console application could also not be built as .exe file, it is .dll file too.

But we could run it with command line (dotnet command) in windows. Please refer to the following step:

1). Open the command line for VS2015:

2). Type dotnet yourconsole.dll, please refer to the following screenshot:

You could try above steps in Mac to see whether it is works.

Sincerely,

Oscar


这篇关于Visual Studio Mac 2017创建可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆