Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- ViewData["Title"] = "Confirm Email";
- }
- <h2>@ViewData["Title"].</h2>
- <div>
- <p>
- Thank you for confirming your email. Please <a asp-controller="Account" asp-action="Login">Click here to Log in</a>.
- </p>
- </div>
- @model Beerhall.Models.ViewModels.AccountViewModels.ExternalLoginConfirmationViewModel
- @{
- ViewData["Title"] = "Register";
- }
- <h2>@ViewData["Title"].</h2>
- <h3>Associate your @ViewData["LoginProvider"] account.</h3>
- <form asp-controller="Account" asp-action="ExternalLoginConfirmation" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <h4>Association Form</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <p class="text-info">
- You've successfully authenticated with <strong>@ViewData["LoginProvider"]</strong>.
- Please enter an email address for this site below and click the Register button to finish
- logging in.
- </p>
- <div class="form-group">
- <label asp-for="Email" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Email" class="form-control" />
- <span asp-validation-for="Email" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Register</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @{
- ViewData["Title"] = "Login Failure";
- }
- <header>
- <h2>@ViewData["Title"].</h2>
- <p class="text-danger">Unsuccessful login with service.</p>
- </header>
- @model Beerhall.Models.ViewModels.AccountViewModels.ForgotPasswordViewModel
- @{
- ViewData["Title"] = "Forgot your password?";
- }
- <h2>@ViewData["Title"]</h2>
- <p>
- For more information on how to enable reset password please see this <a href="http://go.microsoft.com/fwlink/?LinkID=532713">article</a>.
- </p>
- @*<form asp-controller="Account" asp-action="ForgotPassword" method="post" class="form-horizontal">
- <h4>Enter your email.</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="Email" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Email" class="form-control" />
- <span asp-validation-for="Email" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Submit</button>
- </div>
- </div>
- </form>*@
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @{
- ViewData["Title"] = "Forgot Password Confirmation";
- }
- <h2>@ViewData["Title"].</h2>
- <p>
- Please check your email to reset your password.
- </p>
- @{
- ViewData["Title"] = "Locked out";
- }
- <header>
- <h1 class="text-danger">Locked out.</h1>
- <p class="text-danger">This account has been locked out, please try again later.</p>
- </header>
- @using System.Threading.Tasks
- @using Beerhall.Models.Domain
- @model Beerhall.Models.ViewModels.AccountViewModels.LoginViewModel
- @inject SignInManager<ApplicationUser> SignInManager
- @{
- ViewData["Title"] = "Log in";
- }
- <h2>@ViewData["Title"].</h2>
- <div class="row">
- <div class="col-md-8">
- <section>
- <form asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <h4>Use a local account to log in.</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="Email" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Email" class="form-control" />
- <span asp-validation-for="Email" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="Password" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Password" class="form-control" />
- <span asp-validation-for="Password" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <div class="checkbox">
- <label asp-for="RememberMe">
- <input asp-for="RememberMe" />
- @Html.DisplayNameFor(m => m.RememberMe)
- </label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Log in</button>
- </div>
- </div>
- <p>
- <a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]">Register as a new user?</a>
- </p>
- <p>
- <a asp-action="ForgotPassword">Forgot your password?</a>
- </p>
- </form>
- </section>
- </div>
- <div class="col-md-4">
- <section>
- <h4>Use another service to log in.</h4>
- <hr />
- @{
- var loginProviders = SignInManager.GetExternalAuthenticationSchemes().ToList();
- if (loginProviders.Count == 0)
- {
- <div>
- <p>
- There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkID=532715">this article</a>
- for details on setting up this ASP.NET application to support logging in via external services.
- </p>
- </div>
- }
- else
- {
- <form asp-controller="Account" asp-action="ExternalLogin" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <div>
- <p>
- @foreach (var provider in loginProviders)
- {
- <button type="submit" class="btn btn-default" name="provider" value="@provider.AuthenticationScheme" title="Log in using your @provider.DisplayName account">@provider.AuthenticationScheme</button>
- }
- </p>
- </div>
- </form>
- }
- }
- </section>
- </div>
- </div>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.AccountViewModels.RegisterViewModel
- @{
- ViewData["Title"] = "Register";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Account" asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <h4>Create a new account.</h4>
- <hr />
- <div asp-validation-summary="ModelOnly" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="Email" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Email" class="form-control" />
- <span asp-validation-for="Email" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="Name" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Name" class="form-control" />
- <span asp-validation-for="Name" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="FirstName" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="FirstName" class="form-control" />
- <span asp-validation-for="FirstName" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="Street" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Street" class="form-control" />
- <span asp-validation-for="Street" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="PostalCode" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <select asp-for="PostalCode" asp-items="@(ViewData["Locations"] as SelectList)" class="form-control">
- <option value="">-- select location --</option>
- </select>
- <span asp-validation-for="PostalCode" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="Password" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Password" class="form-control" />
- <span asp-validation-for="Password" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="ConfirmPassword" class="form-control" />
- <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Register</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.AccountViewModels.ResetPasswordViewModel
- @{
- ViewData["Title"] = "Reset password";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Account" asp-action="ResetPassword" method="post" class="form-horizontal">
- <h4>Reset your password.</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <input asp-for="Code" type="hidden" />
- <div class="form-group">
- <label asp-for="Email" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Email" class="form-control" />
- <span asp-validation-for="Email" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="Password" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Password" class="form-control" />
- <span asp-validation-for="Password" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="ConfirmPassword" class="form-control" />
- <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Reset</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @{
- ViewData["Title"] = "Reset password confirmation";
- }
- <h1>@ViewData["Title"].</h1>
- <p>
- Your password has been reset. Please <a asp-controller="Account" asp-action="Login">Click here to log in</a>.
- </p>
- @model Beerhall.Models.ViewModels.AccountViewModels.SendCodeViewModel
- @{
- ViewData["Title"] = "Send Verification Code";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Account" asp-action="SendCode" asp-route-returnurl="@Model.ReturnUrl" method="post" class="form-horizontal">
- <input asp-for="RememberMe" type="hidden" />
- <div class="row">
- <div class="col-md-8">
- Select Two-Factor Authentication Provider:
- <select asp-for="SelectedProvider" asp-items="Model.Providers"></select>
- <button type="submit" class="btn btn-default">Submit</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.AccountViewModels.VerifyCodeViewModel
- @{
- ViewData["Title"] = "Verify";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Account" asp-action="VerifyCode" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <div asp-validation-summary="All" class="text-danger"></div>
- <input asp-for="Provider" type="hidden" />
- <input asp-for="RememberMe" type="hidden" />
- <h4>@ViewData["Status"]</h4>
- <hr />
- <div class="form-group">
- <label asp-for="Code" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Code" class="form-control" />
- <span asp-validation-for="Code" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <div class="checkbox">
- <input asp-for="RememberBrowser" />
- <label asp-for="RememberBrowser"></label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Submit</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @{
- ViewData["Title"] = "Brewers";
- }
- <h2>@ViewData["Title"]</h2>
- <h4>
- Please confirm you want to delete brewer @ViewData["Name"]...
- </h4>
- <form asp-action="Delete" method="post">
- <div>
- <button class="btn btn-primary" type="submit">Delete</button>
- <a asp-action="Index" class="btn btn-default">Cancel</a>
- </div>
- </form>
- @model EditViewModel
- @{
- ViewData["Title"] = Model.BrewerId == 0 ? "Create brewer" : "Edit brewer";
- var action = Model.BrewerId == 0 ? "Create" : "Edit";
- }
- <h2>@ViewData["Title"]</h2>
- <form asp-action="@action" method="post">
- <div asp-validation-summary="ModelOnly"></div>
- <input asp-for="BrewerId" />
- <div class="form-group">
- <label asp-for="Name"></label>
- <input asp-for="Name" class="form-control" />
- <span asp-validation-for="Name" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="Street"></label>
- <input asp-for="Street" class="form-control" />
- <span asp-validation-for="Street" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="PostalCode"></label>
- <select asp-for="PostalCode" asp-items="@(ViewData["Locations"] as SelectList)" class="form-control">
- <option value="">-- select location --</option>
- </select>
- <span asp-validation-for="PostalCode" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="ContactEmail"></label>
- <input asp-for="ContactEmail" class="form-control" />
- <span asp-validation-for="ContactEmail" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="Description"></label>
- <textarea asp-for="Description" class="form-control"></textarea>
- <span asp-validation-for="Description" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="DateEstablished"></label>
- <input asp-for="DateEstablished" class="form-control" />
- <span asp-validation-for="DateEstablished" class="text-danger"></span>
- </div>
- <div class="form-group">
- <label asp-for="Turnover"></label>
- <input asp-for="Turnover" class="form-control" />
- <span asp-validation-for="Turnover" class="text-danger"></span>
- </div>
- <div>
- <button class="btn btn-primary" type="submit">Save</button>
- <a asp-action="Index" class="btn btn-default">Cancel</a>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model IEnumerable<Beerhall.Models.Domain.Brewer>
- @{
- ViewData["Title"] = "Brewers";
- }
- <h2>@ViewData["Title"]</h2>
- <p>
- <a asp-controller="Brewer" asp-action="Create">Add a brewer</a>
- </p>
- <table class="table table-striped table-condensed table-bordered">
- <tr>
- <th>Name</th>
- <th>Street</th>
- <th>Location</th>
- <th class="text-right">Turnover</th>
- <th class="text-right">Date established</th>
- <th></th>
- </tr>
- @foreach (var item in Model) {
- <tr>
- <td>
- @item.Name
- </td>
- <td>
- @item.Street
- </td>
- <td>
- @item.Location?.PostalCode @item.Location?.Name
- </td>
- <td class="text-right">
- @(item.Turnover?.ToString("c") ?? "-")
- </td>
- <td class="text-right">
- @(item.DateEstablished?.Date.ToString("d") ?? "-")
- </td>
- <td>
- <a asp-controller="Brewer" asp-action="Detail" asp-route-id="@item.BrewerId">Detail</a> |
- <a asp-controller="Brewer" asp-action="Edit" asp-route-id="@item.BrewerId">Edit</a> |
- <a asp-controller="Brewer" asp-action="Delete" asp-route-id="@item.BrewerId">Delete</a>
- </td>
- </tr>
- }
- </table>
- <p>Total turnover: @($"{(int)ViewData["TotalTurnover"]:N0} €") </p>
- @model Beerhall.Models.ViewModels.CartViewModels.CheckOutViewModel
- @{
- ViewData["Title"] = "Checkout";
- }
- <h2>Checkout</h2>
- <form asp-action="Checkout">
- <div class="form-horizontal">
- <h4>Delivery address</h4>
- <hr />
- <div asp-validation-summary="ModelOnly" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="@Model.ShippingViewModel.Street" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="@Model.ShippingViewModel.Street" class="form-control" />
- <span asp-validation-for="@Model.ShippingViewModel.Street" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="@Model.ShippingViewModel.PostalCode" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <select asp-for="@Model.ShippingViewModel.PostalCode" asp-items="@Model.Locations" class="form-control">
- <option value="">-- select location --</option>
- </select>
- <span asp-validation-for="@Model.ShippingViewModel.PostalCode" class="text-danger"></span>
- </div>
- </div>
- <h4>Options</h4>
- <hr />
- <div class="form-group">
- <label asp-for="@Model.ShippingViewModel.DeliveryDate" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="@Model.ShippingViewModel.DeliveryDate" class="form-control" />
- <span asp-validation-for="@Model.ShippingViewModel.DeliveryDate" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="@Model.ShippingViewModel.Giftwrapping" class="col-md-2 control-label"></label>
- <div class="checkbox col-md-10">
- <input asp-for="@Model.ShippingViewModel.Giftwrapping" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Order" class="btn btn-primary" />
- <a asp-action="Index" class="btn btn-default">Cancel</a>
- </div>
- </div>
- </div>
- </form>
- @section Scripts {
- @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
- }
- @model IEnumerable<Beerhall.Models.ViewModels.CartViewModels.IndexViewModel>
- @{
- ViewData["Title"] = "Cart";
- }
- <h2>Your shopping cart</h2>
- @if (Model.Count() != 0) {
- <table class="table">
- <thead>
- <tr>
- <th></th>
- <th>Product</th>
- <th class="text-right">Unit price</th>
- <th class="text-right">Subtotal</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach (var line in Model) {
- <tr>
- <td class="text-right">@($"{line.Quantity} x")</td>
- <td>@line.Beer</td>
- <td class="text-right">@($"{line.Price:N2} €")</td>
- <td class="text-right">@($"{line.SubTotal:N2} €")</td>
- <td>
- <form method="post" asp-action="Remove" asp-route-id="@line.BeerId">
- <button type="submit" class="btn btn-xs"><span class="glyphicon-remove glyphicon"></span> Remove</button>
- </form>
- </td>
- </tr>
- }
- </tbody>
- <tfoot>
- <tr>
- <td colspan="4" class="text-right">@($"Total: {ViewData["Total"]:N2} €")</td>
- <td></td>
- </tr>
- </tfoot>
- </table>
- <div align="center" class="actionButtons">
- <a asp-action="Index" asp-controller="Store" class="btn btn-default">Continue shopping</a>
- <a asp-action="CheckOut" asp-controller="Cart" class="btn btn-default">Check out</a>
- </div>
- }
- else {
- <h4>
- You don't have any products in your shopping cart,
- <a asp-controller="Store" asp-action="Index">start shopping here...</a>
- </h4>
- }
- @{
- ViewData["Title"] = "About";
- }
- <h2>@ViewData["Title"].</h2>
- <h3>@ViewData["Message"]</h3>
- <p>Use this area to provide additional information.</p>
- @{
- ViewData["Title"] = "Contact";
- }
- <h2>@ViewData["Title"].</h2>
- <h3>@ViewData["Message"]</h3>
- <address>
- One Microsoft Way<br />
- Redmond, WA 98052-6399<br />
- <abbr title="Phone">P:</abbr>
- 425.555.0100
- </address>
- <address>
- <strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
- <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
- </address>
- @{
- ViewData["Title"] = "Home Page";
- }
- <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
- <ol class="carousel-indicators">
- <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
- <li data-target="#myCarousel" data-slide-to="1"></li>
- <li data-target="#myCarousel" data-slide-to="2"></li>
- <li data-target="#myCarousel" data-slide-to="3"></li>
- </ol>
- <div class="carousel-inner" role="listbox">
- <div class="item active">
- <img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
- <div class="carousel-caption" role="option">
- <p>
- Learn how to build ASP.NET apps that can run anywhere.
- <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
- Learn More
- </a>
- </p>
- </div>
- </div>
- <div class="item">
- <img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
- <div class="carousel-caption" role="option">
- <p>
- There are powerful new features in Visual Studio for building modern web apps.
- <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
- Learn More
- </a>
- </p>
- </div>
- </div>
- <div class="item">
- <img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" />
- <div class="carousel-caption" role="option">
- <p>
- Bring in libraries from NuGet, Bower, and npm, and automate tasks using Grunt or Gulp.
- <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409">
- Learn More
- </a>
- </p>
- </div>
- </div>
- <div class="item">
- <img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" />
- <div class="carousel-caption" role="option">
- <p>
- Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
- <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
- Learn More
- </a>
- </p>
- </div>
- </div>
- </div>
- <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
- <div class="row">
- <div class="col-md-3">
- <h2>Application uses</h2>
- <ul>
- <li>Sample pages using ASP.NET Core MVC</li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=518004">Bower</a> for managing client-side libraries</li>
- <li>Theming using <a href="http://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
- </ul>
- </div>
- <div class="col-md-3">
- <h2>How to</h2>
- <ul>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=699562">Add an appsetting in config and access it in app.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
- </ul>
- </div>
- <div class="col-md-3">
- <h2>Overview</h2>
- <ul>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
- </ul>
- </div>
- <div class="col-md-3">
- <h2>Run & Deploy</h2>
- <ul>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
- <li><a href="http://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li>
- </ul>
- </div>
- </div>
- @model Beerhall.Models.ViewModels.ManageViewModels.AddPhoneNumberViewModel
- @{
- ViewData["Title"] = "Add Phone Number";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Manage" asp-action="AddPhoneNumber" method="post" class="form-horizontal">
- <h4>Add a phone number.</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="PhoneNumber" class="form-control" />
- <span asp-validation-for="PhoneNumber" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Send verification code</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.ManageViewModels.ChangePasswordViewModel
- @{
- ViewData["Title"] = "Change Password";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Manage" asp-action="ChangePassword" method="post" class="form-horizontal">
- <h4>Change Password Form</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="OldPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="OldPassword" class="form-control" />
- <span asp-validation-for="OldPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="NewPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="NewPassword" class="form-control" />
- <span asp-validation-for="NewPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="ConfirmPassword" class="form-control" />
- <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Change password</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.ManageViewModels.IndexViewModel
- @{
- ViewData["Title"] = "Manage your account";
- }
- <h2>@ViewData["Title"].</h2>
- <p class="text-success">@ViewData["StatusMessage"]</p>
- <div>
- <h4>Change your account settings</h4>
- <hr />
- <dl class="dl-horizontal">
- <dt>Password:</dt>
- <dd>
- @if (Model.HasPassword)
- {
- <a asp-controller="Manage" asp-action="ChangePassword" class="btn-bracketed">Change</a>
- }
- else
- {
- <a asp-controller="Manage" asp-action="SetPassword" class="btn-bracketed">Create</a>
- }
- </dd>
- <dt>External Logins:</dt>
- <dd>
- @Model.Logins.Count <a asp-controller="Manage" asp-action="ManageLogins" class="btn-bracketed">Manage</a>
- </dd>
- <dt>Phone Number:</dt>
- <dd>
- <p>
- Phone Numbers can used as a second factor of verification in two-factor authentication.
- See <a href="http://go.microsoft.com/fwlink/?LinkID=532713">this article</a>
- for details on setting up this ASP.NET application to support two-factor authentication using SMS.
- </p>
- @*@(Model.PhoneNumber ?? "None")
- @if (Model.PhoneNumber != null)
- {
- <br />
- <a asp-controller="Manage" asp-action="AddPhoneNumber" class="btn-bracketed">Change</a>
- <form asp-controller="Manage" asp-action="RemovePhoneNumber" method="post">
- [<button type="submit" class="btn-link">Remove</button>]
- </form>
- }
- else
- {
- <a asp-controller="Manage" asp-action="AddPhoneNumber" class="btn-bracketed">Add</a>
- }*@
- </dd>
- <dt>Two-Factor Authentication:</dt>
- <dd>
- <p>
- There are no two-factor authentication providers configured. See <a href="http://go.microsoft.com/fwlink/?LinkID=532713">this article</a>
- for setting up this application to support two-factor authentication.
- </p>
- @*@if (Model.TwoFactor)
- {
- <form asp-controller="Manage" asp-action="DisableTwoFactorAuthentication" method="post" class="form-horizontal">
- Enabled <button type="submit" class="btn-link btn-bracketed">Disable</button>
- </form>
- }
- else
- {
- <form asp-controller="Manage" asp-action="EnableTwoFactorAuthentication" method="post" class="form-horizontal">
- <button type="submit" class="btn-link btn-bracketed">Enable</button> Disabled
- </form>
- }*@
- </dd>
- </dl>
- </div>
- @model Beerhall.Models.ViewModels.ManageViewModels.ManageLoginsViewModel
- @{
- ViewData["Title"] = "Manage your external logins";
- }
- <h2>@ViewData["Title"].</h2>
- <p class="text-success">@ViewData["StatusMessage"]</p>
- @if (Model.CurrentLogins.Count > 0)
- {
- <h4>Registered Logins</h4>
- <table class="table">
- <tbody>
- @for (var index = 0; index < Model.CurrentLogins.Count; index++)
- {
- <tr>
- <td>@Model.CurrentLogins[index].LoginProvider</td>
- <td>
- @if ((bool)ViewData["ShowRemoveButton"])
- {
- <form asp-controller="Manage" asp-action="RemoveLogin" method="post" class="form-horizontal">
- <div>
- <input asp-for="@Model.CurrentLogins[index].LoginProvider" name="LoginProvider" type="hidden" />
- <input asp-for="@Model.CurrentLogins[index].ProviderKey" name="ProviderKey" type="hidden" />
- <input type="submit" class="btn btn-default" value="Remove" title="Remove this @Model.CurrentLogins[index].LoginProvider login from your account" />
- </div>
- </form>
- }
- else
- {
- @:
- }
- </td>
- </tr>
- }
- </tbody>
- </table>
- }
- @if (Model.OtherLogins.Count > 0)
- {
- <h4>Add another service to log in.</h4>
- <hr />
- <form asp-controller="Manage" asp-action="LinkLogin" method="post" class="form-horizontal">
- <div id="socialLoginList">
- <p>
- @foreach (var provider in Model.OtherLogins)
- {
- <button type="submit" class="btn btn-default" name="provider" value="@provider.AuthenticationScheme" title="Log in using your @provider.DisplayName account">@provider.AuthenticationScheme</button>
- }
- </p>
- </div>
- </form>
- }
- @model Beerhall.Models.ViewModels.ManageViewModels.SetPasswordViewModel
- @{
- ViewData["Title"] = "Set Password";
- }
- <p class="text-info">
- You do not have a local username/password for this site. Add a local
- account so you can log in without an external login.
- </p>
- <form asp-controller="Manage" asp-action="SetPassword" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <h4>Set your password</h4>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="NewPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="NewPassword" class="form-control" />
- <span asp-validation-for="NewPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="ConfirmPassword" class="form-control" />
- <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Set password</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- @model Beerhall.Models.ViewModels.ManageViewModels.VerifyPhoneNumberViewModel
- @{
- ViewData["Title"] = "Verify Phone Number";
- }
- <h2>@ViewData["Title"].</h2>
- <form asp-controller="Manage" asp-action="VerifyPhoneNumber" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
- <input asp-for="PhoneNumber" type="hidden" />
- <h4>Add a phone number.</h4>
- <h5>@ViewData["Status"]</h5>
- <hr />
- <div asp-validation-summary="All" class="text-danger"></div>
- <div class="form-group">
- <label asp-for="Code" class="col-md-2 control-label"></label>
- <div class="col-md-10">
- <input asp-for="Code" class="form-control" />
- <span asp-validation-for="Code" class="text-danger"></span>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-default">Submit</button>
- </div>
- </div>
- </form>
- @section Scripts {
- @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>@ViewData["Title"]</title>
- <environment names="Development">
- <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
- <link rel="stylesheet" href="~/css/site.css" />
- </environment>
- <environment names="Staging,Production">
- <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css"
- asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
- asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
- <link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
- </environment>
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">Beerhall</a>
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li><a asp-area="" asp-controller="Brewer" asp-action="Index">Brewers</a></li>
- <li><a asp-area="" asp-controller="Store" asp-action="Index">Store</a></li>
- <li><a asp-area="" asp-controller="Cart" asp-action="Index">Cart</a></li>
- <li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li>
- <li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
- </ul>
- @await Html.PartialAsync("_LoginPartial")
- </div>
- </div>
- </div>
- <div class="container body-content">
- @if (TempData["message"] != null) {
- <div class="alert alert-success">@TempData["message"]</div>
- }
- @if (TempData["error"] != null) {
- <div class="alert alert-warning">@TempData["error"]</div>
- }
- @RenderBody()
- <hr />
- <footer>
- <p>© 2016 - Beerhall</p>
- </footer>
- </div>
- <environment names="Development">
- <script src="~/lib/jquery/dist/jquery.js"></script>
- <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
- <script src="~/js/site.js" asp-append-version="true"></script>
- </environment>
- <environment names="Staging,Production">
- <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
- asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
- asp-fallback-test="window.jQuery">
- </script>
- <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"
- asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
- asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
- </script>
- <script src="~/js/site.min.js" asp-append-version="true"></script>
- </environment>
- @RenderSection("scripts", required: false)
- </body>
- </html>
- @using Beerhall.Models.Domain
- @inject SignInManager<ApplicationUser> SignInManager
- @inject UserManager<ApplicationUser> UserManager
- @if (SignInManager.IsSignedIn(User))
- {
- <form asp-area="" asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
- <ul class="nav navbar-nav navbar-right">
- <li>
- <a asp-area="" asp-controller="Manage" asp-action="Index" title="Manage">Hello @UserManager.GetUserName(User)!</a>
- </li>
- <li>
- <button type="submit" class="btn btn-link navbar-btn navbar-link">Log off</button>
- </li>
- </ul>
- </form>
- }
- else
- {
- <ul class="nav navbar-nav navbar-right">
- <li><a asp-area="" asp-controller="Account" asp-action="Register">Register</a></li>
- <li><a asp-area="" asp-controller="Account" asp-action="Login">Log in</a></li>
- </ul>
- }
- <environment names="Development">
- <script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
- <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
- </environment>
- <environment names="Staging,Production">
- <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"
- asp-fallback-src="~/lib/jquery-validation/dist/jquery.validate.min.js"
- asp-fallback-test="window.jQuery && window.jQuery.validator">
- </script>
- <script src="https://ajax.aspnetcdn.com/ajax/jquery.validation.unobtrusive/3.2.6/jquery.validate.unobtrusive.min.js"
- asp-fallback-src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"
- asp-fallback-test="window.jQuery && window.jQuery.validator && window.jQuery.validator.unobtrusive">
- </script>
- </environment>
- @{
- ViewData["Title"] = "Error";
- }
- <h1 class="text-danger">Error.</h1>
- <h2 class="text-danger">An error occurred while processing your request.</h2>
- <h3>Development Mode</h3>
- <p>
- Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
- </p>
- <p>
- <strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
- </p>
- @using Beerhall
- @using Beerhall.Models
- @using Beerhall.Models.ViewModels.BrewerViewModels
- @using Microsoft.AspNetCore.Identity
- @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
- @model IEnumerable<Beerhall.Models.Domain.Beer>
- @{
- ViewData["Title"] = "The Beer Store";
- }
- <h2>@ViewData["Title"]</h2>
- @foreach (var beer in Model) {
- <div class="col-md-6 col-xs-12">
- <img src="~/images/beers/placeholder.gif" alt="@beer.Name" class="pull-left" />
- <h3>
- @beer.Name
- <span class="pull-right">@($"{beer.Price:N2} €")</span>
- </h3>
- <form asp-controller="Cart" asp-action="Add" asp-route-id="@beer.BeerId">
- <div class="form-group pull-right">
- <label class="sr-only" for="quantity">Quantity</label>
- <input type="number" name="quantity" value="1" min="1" style="width:5em" />
- <button type="submit" class="btn btn-default">
- <span class="glyphicon glyphicon-shopping-cart"></span> Add to cart
- </button>
- </div>
- </form>
- </div>
- }
- <div class="clearfix"></div>
- using System.IO;
- using Microsoft.AspNetCore.Hosting;
- namespace Beerhall
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- var host = new WebHostBuilder()
- .UseKestrel()
- .UseContentRoot(Directory.GetCurrentDirectory())
- .UseIISIntegration()
- .UseStartup<Startup>()
- .Build();
- host.Run();
- }
- }
- }
- using System.Security.Claims;
- using Microsoft.AspNetCore.Builder;
- using Microsoft.AspNetCore.Hosting;
- using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.Extensions.Configuration;
- using Microsoft.Extensions.DependencyInjection;
- using Microsoft.Extensions.Logging;
- using Beerhall.Data;
- using Beerhall.Data.Repositories;
- using Beerhall.Filters;
- using Beerhall.Services;
- using Beerhall.Models.Domain;
- using Microsoft.AspNetCore.Http;
- namespace Beerhall
- {
- public class Startup
- {
- public Startup(IHostingEnvironment env)
- {
- var builder = new ConfigurationBuilder()
- .SetBasePath(env.ContentRootPath)
- .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
- .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);
- if (env.IsDevelopment())
- {
- // For more details on using the user secret store see http://go.microsoft.com/fwlink/?LinkID=532709
- builder.AddUserSecrets();
- }
- builder.AddEnvironmentVariables();
- Configuration = builder.Build();
- }
- public IConfigurationRoot Configuration { get; }
- // This method gets called by the runtime. Use this method to add services to the container.
- public void ConfigureServices(IServiceCollection services)
- {
- // Add framework services.
- services.AddDbContext<ApplicationDbContext>(options =>
- options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
- services.AddIdentity<ApplicationUser, IdentityRole>(options => {
- options.Cookies.ApplicationCookie.AccessDeniedPath = new PathString("/Brewer/Index");
- })
- .AddEntityFrameworkStores<ApplicationDbContext>()
- .AddDefaultTokenProviders();
- services.AddAuthorization(options => {
- options.AddPolicy("AdminOnly", policy => policy.RequireClaim(ClaimTypes.Role, "admin"));
- options.AddPolicy("Customer", policy => policy.RequireClaim(ClaimTypes.Role, "customer"));
- });
- services.AddSession();
- services.AddMvc();
- // Add application services.
- services.AddTransient<IEmailSender, AuthMessageSender>();
- services.AddTransient<ISmsSender, AuthMessageSender>();
- services.AddScoped<IBrewerRepository, BrewerRepository>();
- services.AddScoped<ILocationRepository, LocationRepository>();
- services.AddScoped<IBeerRepository, BeerRepository>();
- services.AddScoped<ICustomerRepository, CustomerRepository>();
- services.AddScoped<CartSessionFilter>();
- services.AddScoped<CustomerFilter>();
- services.AddScoped<BeerhallDataInitializer>();
- }
- // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, BeerhallDataInitializer beerhallDataInitializer)
- {
- loggerFactory.AddConsole(Configuration.GetSection("Logging"));
- loggerFactory.AddDebug();
- if (env.IsDevelopment())
- {
- app.UseDeveloperExceptionPage();
- app.UseDatabaseErrorPage();
- app.UseBrowserLink();
- }
- else
- {
- app.UseExceptionHandler("/Home/Error");
- }
- app.UseStaticFiles();
- app.UseStatusCodePages();
- app.UseSession();
- app.UseIdentity();
- // Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715
- app.UseMvc(routes =>
- {
- routes.MapRoute(
- name: "default",
- template: "{controller=Brewer}/{action=Index}/{id?}");
- });
- beerhallDataInitializer.InitializeData().Wait();
- }
- }
- }
- {
- "userSecretsId": "aspnet-Beerhall-5560a25f-a16f-40ef-bad4-59749740753c",
- "dependencies": {
- "Microsoft.NETCore.App": {
- "version": "1.0.1",
- "type": "platform"
- },
- "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
- "Microsoft.AspNetCore.Diagnostics": "1.0.0",
- "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0",
- "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
- "Microsoft.AspNetCore.Mvc": "1.0.1",
- "Microsoft.AspNetCore.Razor.Tools": {
- "version": "1.0.0-preview2-final",
- "type": "build"
- },
- "Microsoft.AspNetCore.Routing": "1.0.1",
- "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
- "Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
- "Microsoft.AspNetCore.StaticFiles": "1.0.0",
- "Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",
- "Microsoft.EntityFrameworkCore.SqlServer.Design": {
- "version": "1.0.1",
- "type": "build"
- },
- "Microsoft.EntityFrameworkCore.Tools": {
- "version": "1.0.0-preview2-final",
- "type": "build"
- },
- "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
- "Microsoft.Extensions.Configuration.Json": "1.0.0",
- "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0",
- "Microsoft.Extensions.Logging": "1.0.0",
- "Microsoft.Extensions.Logging.Console": "1.0.0",
- "Microsoft.Extensions.Logging.Debug": "1.0.0",
- "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
- "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
- "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
- "version": "1.0.0-preview2-final",
- "type": "build"
- },
- "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
- "version": "1.0.0-preview2-final",
- "type": "build"
- },
- "Microsoft.AspNetCore.Session": "1.0.0"
- },
- "tools": {
- "BundlerMinifier.Core": "2.0.238",
- "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
- "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
- "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
- "Microsoft.Extensions.SecretManager.Tools": "1.0.0-preview2-final",
- "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
- "version": "1.0.0-preview2-final",
- "imports": [
- "portable-net45+win8"
- ]
- }
- },
- "frameworks": {
- "netcoreapp1.0": {
- "imports": [
- "dotnet5.6",
- "portable-net45+win8"
- ]
- }
- },
- "buildOptions": {
- "emitEntryPoint": true,
- "preserveCompilationContext": true
- },
- "runtimeOptions": {
- "configProperties": {
- "System.GC.Server": true
- }
- },
- "publishOptions": {
- "include": [
- "wwwroot",
- "**/*.cshtml",
- "appsettings.json",
- "web.config"
- ]
- },
- "scripts": {
- "prepublish": [ "bower install", "dotnet bundle" ],
- "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
- }
- }
Add Comment
Please, Sign In to add comment