Skip to content

Commit

Permalink
Fix all build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersAbel committed Mar 22, 2020
1 parent 810c721 commit c8c740c
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 624 deletions.
2 changes: 1 addition & 1 deletion Samples/SampleIdentityServer4/Views/Account/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>Login</h1>
</div>

@Html.Partial("_ValidationSummary")
<partial name="_ValidationSummary" />

<div class="row">

Expand Down
6 changes: 3 additions & 3 deletions Samples/SampleIdentityServer4/Views/Consent/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="row">
<div class="col-sm-8">
@Html.Partial("_ValidationSummary")
<partial name="_ValidationSummary" />

<form asp-action="Index" class="consent-form">
<input type="hidden" asp-for="ReturnUrl" />
Expand All @@ -33,7 +33,7 @@
<ul class="list-group">
@foreach (var scope in Model.IdentityScopes)
{
@Html.Partial("_ScopeListItem", scope)
<partial name="_ScopeListItem", model="@scope" />
}
</ul>
</div>
Expand All @@ -49,7 +49,7 @@
<ul class="list-group">
@foreach (var scope in Model.ResourceScopes)
{
@Html.Partial("_ScopeListItem", scope)
<partial name="_ScopeListItem" model="@scope" />
}
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="row">
<div class="col-sm-8">
@Html.Partial("_ValidationSummary")
<partial name="_ValidationSummary" />

<form asp-action="Index" class="consent-form">
<input type="hidden" asp-for="ReturnUrl" />
Expand All @@ -33,7 +33,7 @@
<ul class="list-group">
@foreach (var scope in Model.IdentityScopes)
{
@Html.Partial("_ScopeListItem", scope)
<partial name="_ScopeListItem" model="@scope" />
}
</ul>
</div>
Expand All @@ -49,7 +49,7 @@
<ul class="list-group">
@foreach (var scope in Model.ResourceScopes)
{
@Html.Partial("_ScopeListItem", scope)
<partial name="_ScopeListItem" model="@scope" />
}
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

<h4>@ViewData["Title"]</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" model="@Model.StatusMessage" />
<div class="row">
<div class="col-md-6">
<form method="post">
Expand All @@ -31,5 +31,5 @@
</div>

@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
<partial name="_ValidationScriptsPartial" />
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ViewData.AddActivePage(ManageNavPages.ExternalLogins);
}

@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" model="@Model.StatusMessage" />
@if (Model.CurrentLogins?.Count > 0)
{
<h4>Registered Logins</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

<h4>@ViewData["Title"]</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" model="@Model.StatusMessage" />
<div class="row">
<div class="col-md-6">
<form method="post">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

<h4>Set your password</h4>
@Html.Partial("_StatusMessage", Model.StatusMessage)
<partial name="_StatusMessage" model="@Model.StatusMessage" />
<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.
Expand All @@ -30,5 +30,5 @@
</div>

@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
<partial name="_ValidationScriptsPartial" />
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>..\Sustainsys.Saml2.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>false</RunCodeAnalysis>
<DocumentationFile>bin\Debug\Sustainsys.Saml2.HttpModule.XML</DocumentationFile>
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down
4 changes: 2 additions & 2 deletions Sustainsys.Saml2.Mvc/Sustainsys.Saml2.Mvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>..\Sustainsys.Saml2.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>true</RunCodeAnalysis>
<RunCodeAnalysis>false</RunCodeAnalysis>
<DocumentationFile>bin\Debug\Sustainsys.Saml2.Mvc.XML</DocumentationFile>
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
Expand Down
4 changes: 2 additions & 2 deletions Sustainsys.Saml2.Owin/Sustainsys.Saml2.Owin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Sustainsys.Saml2.Owin.XML</DocumentationFile>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>..\Sustainsys.Saml2.ruleset</CodeAnalysisRuleSet>
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
Expand Down

0 comments on commit c8c740c

Please sign in to comment.