mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #877 from emma-burrows/Csharp-samples
Csharp samples, including ASP.Net MVC view file
This commit is contained in:
@@ -225,6 +225,7 @@ C#:
|
|||||||
- csharp
|
- csharp
|
||||||
primary_extension: .cs
|
primary_extension: .cs
|
||||||
extensions:
|
extensions:
|
||||||
|
- .cshtml
|
||||||
- .csx
|
- .csx
|
||||||
|
|
||||||
C++:
|
C++:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
45
samples/C#/Index.cshtml
Normal file
45
samples/C#/Index.cshtml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
@{
|
||||||
|
ViewBag.Title = "Home Page";
|
||||||
|
}
|
||||||
|
@section featured {
|
||||||
|
<section class="featured">
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<hgroup class="title">
|
||||||
|
<h1>@ViewBag.Title.</h1>
|
||||||
|
<h2>@ViewBag.Message</h2>
|
||||||
|
</hgroup>
|
||||||
|
<p>
|
||||||
|
To learn more about ASP.NET MVC visit
|
||||||
|
<a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
|
||||||
|
The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET MVC.
|
||||||
|
If you have any questions about ASP.NET MVC visit
|
||||||
|
<a href="http://forums.asp.net/1146.aspx/1?MVC" title="ASP.NET MVC Forum">our forums</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
}
|
||||||
|
<h3>We suggest the following:</h3>
|
||||||
|
<ol class="round">
|
||||||
|
<li class="one">
|
||||||
|
<h5>Getting Started</h5>
|
||||||
|
ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
|
||||||
|
enables a clean separation of concerns and that gives you full control over markup
|
||||||
|
for enjoyable, agile development. ASP.NET MVC includes many features that enable
|
||||||
|
fast, TDD-friendly development for creating sophisticated applications that use
|
||||||
|
the latest web standards.
|
||||||
|
<a href="http://go.microsoft.com/fwlink/?LinkId=245151">Learn more…</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="two">
|
||||||
|
<h5>Add NuGet packages and jump-start your coding</h5>
|
||||||
|
NuGet makes it easy to install and update free libraries and tools.
|
||||||
|
<a href="http://go.microsoft.com/fwlink/?LinkId=245153">Learn more…</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="three">
|
||||||
|
<h5>Find Web Hosting</h5>
|
||||||
|
You can easily find a web hosting company that offers the right mix of features
|
||||||
|
and price for your applications.
|
||||||
|
<a href="http://go.microsoft.com/fwlink/?LinkId=245157">Learn more…</a>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
21
samples/C#/Program.cs
Normal file
21
samples/C#/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace LittleSampleApp
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Just what it says on the tin. A little sample application for Linguist to try out.
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Hello, I am a little sample application to test GitHub's Linguist module.");
|
||||||
|
Console.WriteLine("I also include a Razor MVC file just to prove it handles cshtml files now.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user