.Net without spending a buck

1,871 views

Published on

What are the alternative to a full Microsoft environment when you want to develop/deploy/host .Net applications.

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

  • Be the first to like this

No Downloads
Views
Total views
1,871
On SlideShare
0
From Embeds
0
Number of Embeds
34
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

.Net without spending a buck

  1. 1. .Net without spending a buck!05/2013
  2. 2. AgendaWhat costs a small company infrastructure?What MS products are for free?What is the alternative?2
  3. 3. What costs a small company infrastructure?• You need:– Web servers– DB servers– Development environment including IDE licenses– …• Or you might want to host servers in the Cloud…3
  4. 4. What costs a small company infrastructure?• Windows Server 2008 R2• SQL Server 2008 R2• Visual Studio 2012– Pro 700€ / Premium 2500€ / Ultimate 6000€• TFS• … and in the Cloud4
  5. 5. What MS products are for free?• Visual Studio Express– Visual Studio Express 2012 for Web– Visual Studio Express 2012 for Windows 8– Visual Studio Express 2012 for Windows Desktop• No Multi-unit testing framework and refactoringsupport• No static code analysis, profiling, …• Different IDEs for different use!5
  6. 6. What MS products are for free?• Team Foundation Server Service: In the Cloud!– No AD support– Could be slow when dealing with too much files– Not allowed to modify process/work item templates– Limited reports and no custom reports• Team Foundation Server Express– Limited Agile Project Management features and tools– No reporting/Sharepoint integration6
  7. 7. What MS products are for free?• SQL Server Express– No SQL Profiler– No SQL Server Agent– No FullText search– No SSIS / SSAS and only local SSRS7
  8. 8. What MS products are for free?Microsoft Express products are for free but…you still need valid Windows licenses!8
  9. 9. What is the alternative?• Other OS• Other Frameworks• Other Web Servers• Other DB• Other IDEBut the most important still coding in C#! :-)9
  10. 10. What is the alternative?• Other OS– Open SUSE (Novell)– CentOS– Debian– Ubuntu,– Create your own Mac (~30€) 10
  11. 11. What is the alternative?• Other FrameworksMono! Cross platform, open source .Net developmentframework. Started in 2001 just a few months after .Net frameworkfirst release, by Miguel de Icaza. Mono 1.0 was released in 2004, latest stable version is2.10.8, latest Beta version is 3.0.10 Compatibility page11
  12. 12. What is the alternative?Microsoft had the good idea to releasetheir CLI as an open standard!12
  13. 13. What is the alternative?13Base Class Library.NET Compatibility Class LibrariesMono specific class libraries(*)Monos Common LanguageRuntime: transforms into nativecodeSupports many processors / OS(*) Including Gtk+, Zip files, LDAP, OpenGL, Cairo, POSIX, etc
  14. 14. What is the alternative?• New frameworks based on Mono14Simple.Web
  15. 15. What is the alternative?15
  16. 16. What is the alternative?– To start with ServiceStack, go to Visual Studio and createan new ASP .Net Web Application project– Deploy ServiceStack Nuget package as follows (PackageManager Console)– Everything you’ll need to get started will be deployedto your project, just press F5 and enjoy!  16
  17. 17. What is the alternative?– To start with Nancy, go to Visual Studio and create an new ASP .NetWeb Application project (see previous slide)– Deploy Nancy Nuget package as follows (Package Manager Console)– Add a new Nancy module C# class– Copy Paste this code in itpublic class HelloModule : NancyModule{public HelloModule(){Get["/greet/{name}"] = x => { return string.Concat("Hello ", x.name); };}}– Press F5 and type http://localhost:xxxx/greet/Toto17
  18. 18. What is the alternative?• To go further…– ServiceStack– NancyFx– FubuMVC– Simple.Web & here18
  19. 19. What is the alternative?• Other WebServers– XSP: eXtensible Server Page– Apache mod_mono– Nginx19
  20. 20. What is the alternative?• Other DB– MySQL– PostgreSQL– SQLite20
  21. 21. What is the alternative?• Other IDE– SharpDevelop– MonoDevelop / Xamarin Studio21
  22. 22. What is the alternative?• DEMO!• For those who were not at the presentation, thefollowing slides describe the demo.22
  23. 23. What is the alternative? - DEMO• Open Visual Studio• Open File -> New -> Project• Target .Net Framework 3.5 and choose ASP.Net MVC 2 Web Application23
  24. 24. What is the alternative? - DEMO• Run it by pressing F5, just to see if everything is going ok…24
  25. 25. What is the alternative? - DEMO• Back in Visual Studio• Right click on your project• Select Open Folder in Windows Explorer25
  26. 26. What is the alternative? - DEMO• Copy the folder that contains the .slnfile of your project• Paste it on the machine whereXamarin is installed (on a MACOS Virtual Machine during this demo)26
  27. 27. What is the alternative? - DEMO• Open the sln file -> Xamarin should be launched27
  28. 28. What is the alternative? - DEMO• Execute it, it works!! 28
  29. 29. Questions ?29

×