3
4
5
Supported Architectures

Runtime

Operating system

s390, s390x (32 and 64 bits)

JIT

Linux

SPARC (32)

JIT

Solaris, Li...
www.mono-project.com
http://mono-project.com/Monkeyguide
http://www.go-mono.com/docs/
http://www.monobrasil.org

7
8
Busca manual de Separadores
int index = exePath.LastIndexOf("");
exeDir = exePath.Substring(0, index);
exeFile = exePath.S...
“;”

“:”

Console.WriteLine ( "Subdiretorios encontrados no PATH :“ );
string path_env = Environment.GetEnvironmentVariabl...
12
13
14
15
16
17
20
Inclua no apache

Include /etc/apache2/mod_mono.conf ou

Carregar via módulo no apache

LoadModule mono_module /usr/lib/ht...
Apache
MonoServerPath "/usr/bin/mod-mono-server2“
MonoAutoApplication enabled
<httpHandlers>
<add verb="*" path="*.m" type...
Copie seu site para o servidor e descompacte
$ cd /var/www/
$ unzip CommunityServer.zip
Você vai acessá-lo em
http://local...
$ cd /usr/lib/xsp/test
$ xsp
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /home/cvs/mcs/class/cor...
25
http://www.monoproject.com/ASP.NET_Mono_Specific_Configuration

26
http://www.grokthis.net/
http://www.ubiquityhosting.com/

27
28
Crie os diretórios
$ mkdir asp-net
$ cd asp-net/
$ mkdir bin
Crie o Arquivo teste1.aspx
<html>
<head>
<title>Teste às ASP ...
Para teste execute o xsp no diretório da
aplicação
$ xsp
Adding applications '/:.'...
Registering application:
Host:
any
P...
Teste2.aspx
<%@ Page Language="c#"
Inherits="Mono.Teste2" %>
<html>
<head>
<title>Teste II às ASP .NET no
Mono</title>
</h...
Mono C#
Compiler

Mono C#
Compiler

Arquivo de
Saída

$ mcs teste2.cs -r:System.Web -t:library -out:bin/teste1.dll
Compila...
34
35
36
37
38
39
4
0
MojoPortal
http://www.mojoportal.com
http://demo.mojoportal.com/

41
www.mindtouch

42
43
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Semana Interop: Desenvolvendo Asp.NET para Linux
Upcoming SlideShare
Loading in...5
×

Semana Interop: Desenvolvendo Asp.NET para Linux

1,079

Published on

Desenvolvendo Asp.NET para Linux
Portando Aplicativos
Mono e ASP.NET
Progrando ASP.NET no Mono
Criando uma aplicação
Cases de Sucesso

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,079
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Semana Interop: Desenvolvendo Asp.NET para Linux

  1. 1. 3
  2. 2. 4
  3. 3. 5
  4. 4. Supported Architectures Runtime Operating system s390, s390x (32 and 64 bits) JIT Linux SPARC (32) JIT Solaris, Linux PowerPC JIT Linux, Mac OSX, Wii, PlayStation 3 x86 JIT Linux, FreeBSD, OpenBSD, NetBSD, Microsoft Windows, Solaris, OS X JIT Linux, Solaris JIT Linux ARM: little and big endian JIT Linux (both old and new ABI), iPhone Alpha MIPS HPPA JIT Linux JIT Linux JIT Linux x86-64: AMD64 and EM64T (64 bit) IA64 Itanium2 (64 bit) 6
  5. 5. www.mono-project.com http://mono-project.com/Monkeyguide http://www.go-mono.com/docs/ http://www.monobrasil.org 7
  6. 6. 8
  7. 7. Busca manual de Separadores int index = exePath.LastIndexOf(""); exeDir = exePath.Substring(0, index); exeFile = exePath.Substring(index+1); Código mais portável exeDir = Path.GetDirectoryName (exePath); exeFile = Path.GetFileName (exePath); 10
  8. 8. “;” “:” Console.WriteLine ( "Subdiretorios encontrados no PATH :“ ); string path_env = Environment.GetEnvironmentVariable ( "PATH“ ); string[] path_dirs = path_env.Split (Path.PathSeparator); foreach (string pathdir in path_dirs) Console.WriteLine(pathdir); 11
  9. 9. 12
  10. 10. 13
  11. 11. 14
  12. 12. 15
  13. 13. 16
  14. 14. 17
  15. 15. 20
  16. 16. Inclua no apache Include /etc/apache2/mod_mono.conf ou Carregar via módulo no apache LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so 21
  17. 17. Apache MonoServerPath "/usr/bin/mod-mono-server2“ MonoAutoApplication enabled <httpHandlers> <add verb="*" path="*.m" type="Maverick.Dispatcher, Maverick" /> </httpHandlers> mod_mono.conf AddType application/x-asp-net .m 22
  18. 18. Copie seu site para o servidor e descompacte $ cd /var/www/ $ unzip CommunityServer.zip Você vai acessá-lo em http://localhost/CommunityServer/ http://www.mono-project.com/ASP.NET http://www.mono-project.com/Mod_mono http://www.mono-project.com/AutoHosting Instruções para o Ubuntu https://help.ubuntu.com/community/ModMono 23
  19. 19. $ cd /usr/lib/xsp/test $ xsp Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /home/cvs/mcs/class/corlib/Microsoft.Win32 Hit Return to stop the server. 24
  20. 20. 25
  21. 21. http://www.monoproject.com/ASP.NET_Mono_Specific_Configuration 26
  22. 22. http://www.grokthis.net/ http://www.ubiquityhosting.com/ 27
  23. 23. 28
  24. 24. Crie os diretórios $ mkdir asp-net $ cd asp-net/ $ mkdir bin Crie o Arquivo teste1.aspx <html> <head> <title>Teste às ASP .NET no Mono</title> </head> <body> Olá Mundo! </body> </html>
  25. 25. Para teste execute o xsp no diretório da aplicação $ xsp Adding applications '/:.'... Registering application: Host: any Port: any Virtual path: / Physical path: /home/pre/tmp/asp-net Listening on port: 8080 Listening on address: 0.0.0.0 Root directory: /home/pre/tmp/asp-net Hit Return to stop the server. 31
  26. 26. Teste2.aspx <%@ Page Language="c#" Inherits="Mono.Teste2" %> <html> <head> <title>Teste II às ASP .NET no Mono</title> </head> <body> <asp:Label id="msg" runat="server" /> </body> </html> 32
  27. 27. Mono C# Compiler Mono C# Compiler Arquivo de Saída $ mcs teste2.cs -r:System.Web -t:library -out:bin/teste1.dll Compilation succeeded Arquivo CSharp Tipo 33
  28. 28. 34
  29. 29. 35
  30. 30. 36
  31. 31. 37
  32. 32. 38
  33. 33. 39
  34. 34. 4 0
  35. 35. MojoPortal http://www.mojoportal.com http://demo.mojoportal.com/ 41
  36. 36. www.mindtouch 42
  37. 37. 43
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×