diff --git a/samples/BlazorServer.ExampleConsumer/GlobalUsings.cs b/samples/BlazorServer.ExampleConsumer/GlobalUsings.cs index bb06cc89..580cd479 100644 --- a/samples/BlazorServer.ExampleConsumer/GlobalUsings.cs +++ b/samples/BlazorServer.ExampleConsumer/GlobalUsings.cs @@ -1,9 +1,15 @@ // Copyright (c) David Pine. All rights reserved. // Licensed under the MIT License. +global using System.Diagnostics; global using System.Text.Json; global using System.Text.Json.Serialization; -global using Microsoft.JSInterop; -global using Microsoft.AspNetCore.Components; + global using BlazorServer.ExampleConsumer.Models; + +global using Microsoft.AspNetCore.Components; +global using Microsoft.AspNetCore.Mvc; +global using Microsoft.AspNetCore.Mvc.RazorPages; +global using Microsoft.JSInterop; + global using static System.Globalization.CultureInfo; diff --git a/samples/BlazorServer.ExampleConsumer/Pages/Error.cshtml.cs b/samples/BlazorServer.ExampleConsumer/Pages/Error.cshtml.cs index 5a4b77f6..8a74da4c 100644 --- a/samples/BlazorServer.ExampleConsumer/Pages/Error.cshtml.cs +++ b/samples/BlazorServer.ExampleConsumer/Pages/Error.cshtml.cs @@ -1,14 +1,11 @@ // Copyright (c) David Pine. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - namespace BlazorServer.ExampleConsumer.Pages; + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] [IgnoreAntiforgeryToken] -public class ErrorModel(ILogger logger) : PageModel +public class ErrorModel : PageModel { public string? RequestId { get; set; } diff --git a/src/Blazor.SourceGenerators/Blazor.SourceGenerators.csproj b/src/Blazor.SourceGenerators/Blazor.SourceGenerators.csproj index 9b8e5def..eff104ec 100644 --- a/src/Blazor.SourceGenerators/Blazor.SourceGenerators.csproj +++ b/src/Blazor.SourceGenerators/Blazor.SourceGenerators.csproj @@ -14,58 +14,53 @@ false - en-US - $([System.DateTime]::Now.ToString(yyyyMMdd)) - $(ClientOfficialVersion) - $(ClientPreviewVersion) - nightly-$(CurrentDate) - preview - $(ClientVersion) - $(ClientVersion)-$(VersionSuffix) - $(ClientVersion) - David Pine - true - Blazor.SourceGenerators - Blazor Source Generators - The source generator used to generate extension methods on the IJSInProcessRuntime type for WebAssembly JavaScript interop. - Blazor.SourceGenerators - Blazor.SourceGenerators - dotnet;dotnetcore;csharp;analyzers;sourcegen;generators;roslyn; - - https://github.com/IEvangelist/blazorators - true - true - false - true - AnyCPU - External - Product - embedded - false - false - NU5125;NU5039 - true - https://github.com/IEvangelist/blazorators - LICENSE - git - true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - true - README.md - true - logo.png - true - + en-US + $([System.DateTime]::Now.ToString(yyyyMMdd)) + $(ClientOfficialVersion) + $(ClientPreviewVersion) + nightly-$(CurrentDate) + preview + $(ClientVersion) + $(ClientVersion)-$(VersionSuffix) + $(ClientVersion) + David Pine + true + Blazor.SourceGenerators + Blazor Source Generators + The source generator used to generate extension methods on the IJSInProcessRuntime type for WebAssembly JavaScript interop. + Blazor.SourceGenerators + Blazor.SourceGenerators + dotnet;dotnetcore;csharp;analyzers;sourcegen;generators;roslyn; + + https://github.com/IEvangelist/blazorators + true + true + false + true + AnyCPU + External + Product + embedded + false + false + NU5125;NU5039 + true + https://github.com/IEvangelist/blazorators + LICENSE + git + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + true + README.md + true + logo.png + true + - + 1701;1702;NU5128 - - - - -