Skip to content

Commit c3a0330

Browse files
committed
Add new NuGet Host packages as options
1 parent 6eeb713 commit c3a0330

2 files changed

Lines changed: 55 additions & 4 deletions

File tree

src/ServiceStack.Hello/ServiceStack.Hello.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
<Content Include="img\MetadataIndex.png" />
9191
<Content Include="img\Mono-powered-big.png" />
9292
<Content Include="img\NewProject.png" />
93-
<Content Include="Web.config" />
93+
<Content Include="Web.config">
94+
<SubType>Designer</SubType>
95+
</Content>
9496
</ItemGroup>
9597
<ItemGroup>
9698
<Compile Include="Global.asax.cs">

src/ServiceStack.Hello/default.htm

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,22 @@
146146
{
147147
margin: 0 0 0 10px;
148148
}
149-
149+
150+
.nuget-badge pre {
151+
background-color: #202020;
152+
border: 4px solid #c0c0c0;
153+
border-radius: 5px;
154+
-moz-border-radius: 5px;
155+
-webkit-border-radius: 5px;
156+
box-shadow: 2px 2px 3px #6e6e6e;
157+
color: #e2e2e2;
158+
display:block;
159+
font: 1.5em 'andale mono', 'lucida console', monospace;
160+
line-height: 1.5em;
161+
overflow: auto;
162+
padding: 15px;
163+
margin-right: 10px;
164+
}
150165
</style>
151166
</head>
152167
<body>
@@ -172,9 +187,43 @@ <h1 class="title">Creating a Web service from scratch with Service Stack</h1>
172187
This tutorial will go through and develop and call a simple Hello world Web Service
173188
from scratch using <a href="http://www.servicestack.net">Service Stack</a> and VS.NET.
174189
</p>
190+
191+
<h2>Installing via NuGet</h2>
192+
<p>
193+
If you have NuGet you can skip steps 1 - 3 below by installing one of the NuGet Host packages below:
194+
</p>
175195

196+
<h3>
197+
Install ServiceStack at the root path <b style="font-size: 20px">/</b>
198+
</h3>
199+
<p>
200+
Create an empty ASP.NET Web Application and
201+
</p>
202+
203+
<div class="nuget-badge">
204+
<p>
205+
<pre>PM&gt; Install-Package ServiceStack.Host.AspNet</pre>
206+
</p>
207+
</div>
176208

177-
<h2>1. Creating your application</h2>
209+
<h3>
210+
Install ServiceStack at the custom path <b style="font-size: 20px">/api</b>
211+
</h3>
212+
<p>
213+
Create an empty ASP.NET MVC Web Application and
214+
</p>
215+
216+
<div class="nuget-badge">
217+
<p>
218+
<pre>PM&gt; Install-Package ServiceStack.Host.Mvc</pre>
219+
</p>
220+
</div>
221+
222+
<p>
223+
Once installed you can jump to <a href="#view-webservice">Viewing your Web Service</a>.
224+
</p>
225+
226+
<h2>Install Manually - 1. Creating your application</h2>
178227
<p>
179228
Create a new ASP.NET Web Application by going into Visual Studio
180229
and selecting <strong>File -&gt; New -&gt; Project</strong> on the File menu.
@@ -321,7 +370,7 @@ <h4>Web Service AppHost Singleton</h4>
321370
Done! You now have a working application :)
322371
</p>
323372

324-
373+
<a name="view-webservice"></a>
325374
<h1>Viewing your Web Services</h1>
326375
<p>
327376
Now that you have a working Web Service lets see what ServiceStack does for you out of the box:

0 commit comments

Comments
 (0)