Commit 0d6c2bef authored by Andres Käver's avatar Andres Käver
Browse files

razor

parent 4d4b663f
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Domain")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Domain")]
[assembly: System.Reflection.AssemblyTitleAttribute("Domain")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/bin/Debug/netstandard2.1/Domain.deps.json
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/bin/Debug/netstandard2.1/Domain.dll
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/bin/Debug/netstandard2.1/Domain.pdb
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.csprojAssemblyReference.cache
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.AssemblyInfoInputs.cache
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.AssemblyInfo.cs
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.csproj.CoreCompileInputs.cache
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.dll
/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/Debug/netstandard2.1/Domain.pdb
{
"format": 1,
"restore": {
"/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj": {}
},
"projects": {
"/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"projectName": "Domain",
"projectPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"packagesPath": "/Users/akaver/.nuget/packages/",
"outputPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder"
],
"configFilePaths": [
"/Users/akaver/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"netstandard2.1"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"NETStandard.Library": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/3.1.403/RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/akaver/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/akaver/.nuget/packages/;/usr/local/share/dotnet/sdk/NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
{
"version": 3,
"targets": {
".NETStandard,Version=v2.1": {}
},
"libraries": {},
"projectFileDependencyGroups": {
".NETStandard,Version=v2.1": []
},
"packageFolders": {
"/Users/akaver/.nuget/packages/": {},
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"projectName": "Domain",
"projectPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"packagesPath": "/Users/akaver/.nuget/packages/",
"outputPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder"
],
"configFilePaths": [
"/Users/akaver/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"netstandard2.1"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"NETStandard.Library": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/3.1.403/RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "CMrVxjGOvjZb/cb/ui4VmZeuGx8ZWUfJgpmLJaZgRmdgOP/79Vljqk5Se7N0co2A4QOHp1AzlmQyT4oOpBzsJA==",
"success": true,
"projectFilePath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"expectedPackageFiles": [],
"logs": []
}
\ No newline at end of file
{
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"projectName": "Domain",
"projectPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/Domain.csproj",
"outputPath": "/Users/akaver/Development/TalTech/csharp-2020-fall/course-materials/demos/RazorPagesDemo/Domain/obj/",
"projectStyle": "PackageReference",
"fallbackFolders": [
"/usr/local/share/dotnet/sdk/NuGetFallbackFolder"
],
"originalTargetFrameworks": [
"netstandard2.1"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"NETStandard.Library": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/3.1.403/RuntimeIdentifierGraph.json"
}
}
}
\ No newline at end of file
16040618761159547
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApp", "WebApp\WebApp.csproj", "{97F4A2CE-F6EE-4683-A64D-6DB8D09200AF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DAL", "DAL\DAL.csproj", "{97CCB431-544E-4DB8-92F3-2DBDA9BF7523}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "Domain\Domain.csproj", "{7ACE6095-4A23-42B5-9973-B162AFC8F32C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{97F4A2CE-F6EE-4683-A64D-6DB8D09200AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97F4A2CE-F6EE-4683-A64D-6DB8D09200AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97F4A2CE-F6EE-4683-A64D-6DB8D09200AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97F4A2CE-F6EE-4683-A64D-6DB8D09200AF}.Release|Any CPU.Build.0 = Release|Any CPU
{97CCB431-544E-4DB8-92F3-2DBDA9BF7523}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97CCB431-544E-4DB8-92F3-2DBDA9BF7523}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97CCB431-544E-4DB8-92F3-2DBDA9BF7523}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97CCB431-544E-4DB8-92F3-2DBDA9BF7523}.Release|Any CPU.Build.0 = Release|Any CPU
{7ACE6095-4A23-42B5-9973-B162AFC8F32C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7ACE6095-4A23-42B5-9973-B162AFC8F32C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7ACE6095-4A23-42B5-9973-B162AFC8F32C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7ACE6095-4A23-42B5-9973-B162AFC8F32C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
@page
@model ErrorModel
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
@if (Model.ShowRequestId)
{
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}
<h3>Development Mode</h3>
<p>
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
</p>
<p>
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
It can result in displaying sensitive information from exceptions to end users.
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
and restarting the app.
</p>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebApp.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public class ErrorModel : PageModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
private readonly ILogger<ErrorModel> _logger;
public ErrorModel(ILogger<ErrorModel> logger)
{
_logger = logger;
}
public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment