From dae84a9660ed572dc150e548eb71ac38a0efbf6e Mon Sep 17 00:00:00 2001 From: Sjory Date: Thu, 5 Dec 2024 13:23:12 +0100 Subject: Updated to .Net v8.0 since there was almost no development made except a few test. i startet from scratch with .Net 8.0 and made a Blazor (Auot - Server/Web app) --- Website/Website.Client/Pages/Counter.razor | 19 ++++++++++++++ Website/Website.Client/Program.cs | 5 ++++ Website/Website.Client/Website.Client.csproj | 15 +++++++++++ Website/Website.Client/_Imports.razor | 9 +++++++ .../.NETCoreApp,Version=v8.0.AssemblyAttributes.cs | 4 +++ .../Debug/net8.0/Website.Client.AssemblyInfo.cs | 23 +++++++++++++++++ .../net8.0/Website.Client.AssemblyInfoInputs.cache | 1 + ...lient.GeneratedMSBuildEditorConfig.editorconfig | 29 ++++++++++++++++++++++ .../Debug/net8.0/Website.Client.GlobalUsings.g.cs | 11 ++++++++ .../obj/Debug/net8.0/staticwebassets.removed.txt | 0 .../wwwroot/appsettings.Development.json | 8 ++++++ Website/Website.Client/wwwroot/appsettings.json | 8 ++++++ 12 files changed, 132 insertions(+) create mode 100644 Website/Website.Client/Pages/Counter.razor create mode 100644 Website/Website.Client/Program.cs create mode 100644 Website/Website.Client/Website.Client.csproj create mode 100644 Website/Website.Client/_Imports.razor create mode 100644 Website/Website.Client/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs create mode 100644 Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfo.cs create mode 100644 Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfoInputs.cache create mode 100644 Website/Website.Client/obj/Debug/net8.0/Website.Client.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 Website/Website.Client/obj/Debug/net8.0/Website.Client.GlobalUsings.g.cs create mode 100644 Website/Website.Client/obj/Debug/net8.0/staticwebassets.removed.txt create mode 100644 Website/Website.Client/wwwroot/appsettings.Development.json create mode 100644 Website/Website.Client/wwwroot/appsettings.json (limited to 'Website/Website.Client') diff --git a/Website/Website.Client/Pages/Counter.razor b/Website/Website.Client/Pages/Counter.razor new file mode 100644 index 0000000..e7d4f94 --- /dev/null +++ b/Website/Website.Client/Pages/Counter.razor @@ -0,0 +1,19 @@ +@page "/counter" +@rendermode InteractiveAuto + +Counter + +

Counter

+ +

Current count: @currentCount

+ + + +@code { + private int currentCount = 0; + + private void IncrementCount() + { + currentCount++; + } +} diff --git a/Website/Website.Client/Program.cs b/Website/Website.Client/Program.cs new file mode 100644 index 0000000..519269f --- /dev/null +++ b/Website/Website.Client/Program.cs @@ -0,0 +1,5 @@ +using Microsoft.AspNetCore.Components.WebAssembly.Hosting; + +var builder = WebAssemblyHostBuilder.CreateDefault(args); + +await builder.Build().RunAsync(); diff --git a/Website/Website.Client/Website.Client.csproj b/Website/Website.Client/Website.Client.csproj new file mode 100644 index 0000000..f9f4b38 --- /dev/null +++ b/Website/Website.Client/Website.Client.csproj @@ -0,0 +1,15 @@ + + + + net8.0 + enable + enable + true + Default + + + + + + + diff --git a/Website/Website.Client/_Imports.razor b/Website/Website.Client/_Imports.razor new file mode 100644 index 0000000..4dc66eb --- /dev/null +++ b/Website/Website.Client/_Imports.razor @@ -0,0 +1,9 @@ +@using System.Net.Http +@using System.Net.Http.Json +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using static Microsoft.AspNetCore.Components.Web.RenderMode +@using Microsoft.AspNetCore.Components.Web.Virtualization +@using Microsoft.JSInterop +@using Website.Client diff --git a/Website/Website.Client/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/Website/Website.Client/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfo.cs b/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfo.cs new file mode 100644 index 0000000..2ce4049 --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Website.Client")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ca3e50a78787685fb5a39c6f751a87b2beb65c17")] +[assembly: System.Reflection.AssemblyProductAttribute("Website.Client")] +[assembly: System.Reflection.AssemblyTitleAttribute("Website.Client")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfoInputs.cache b/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfoInputs.cache new file mode 100644 index 0000000..dc3cc30 --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/Website.Client.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +8172bd910b98f16e9cdbda5927c8fc866e22339ffcc73a587a440d9f8d47c9da diff --git a/Website/Website.Client/obj/Debug/net8.0/Website.Client.GeneratedMSBuildEditorConfig.editorconfig b/Website/Website.Client/obj/Debug/net8.0/Website.Client.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..787390b --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/Website.Client.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,29 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = false +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Website.Client +build_property.RootNamespace = Website.Client +build_property.ProjectDir = C:\Users\mgj32\Documents\GitHub\DrinksMachine\Website\Website.Client\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.RazorLangVersion = 8.0 +build_property.SupportLocalizedComponentNames = +build_property.GenerateRazorMetadataSourceChecksumAttributes = +build_property.MSBuildProjectDirectory = C:\Users\mgj32\Documents\GitHub\DrinksMachine\Website\Website.Client +build_property._RazorSourceGeneratorDebug = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = + +[C:/Users/mgj32/Documents/GitHub/DrinksMachine/Website/Website.Client/Pages/Counter.razor] +build_metadata.AdditionalFiles.TargetPath = UGFnZXNcQ291bnRlci5yYXpvcg== +build_metadata.AdditionalFiles.CssScope = + +[C:/Users/mgj32/Documents/GitHub/DrinksMachine/Website/Website.Client/_Imports.razor] +build_metadata.AdditionalFiles.TargetPath = X0ltcG9ydHMucmF6b3I= +build_metadata.AdditionalFiles.CssScope = diff --git a/Website/Website.Client/obj/Debug/net8.0/Website.Client.GlobalUsings.g.cs b/Website/Website.Client/obj/Debug/net8.0/Website.Client.GlobalUsings.g.cs new file mode 100644 index 0000000..0103b59 --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/Website.Client.GlobalUsings.g.cs @@ -0,0 +1,11 @@ +// +global using global::Microsoft.Extensions.Configuration; +global using global::Microsoft.Extensions.DependencyInjection; +global using global::Microsoft.Extensions.Logging; +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/Website/Website.Client/obj/Debug/net8.0/staticwebassets.removed.txt b/Website/Website.Client/obj/Debug/net8.0/staticwebassets.removed.txt new file mode 100644 index 0000000..e69de29 diff --git a/Website/Website.Client/wwwroot/appsettings.Development.json b/Website/Website.Client/wwwroot/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Website/Website.Client/wwwroot/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Website/Website.Client/wwwroot/appsettings.json b/Website/Website.Client/wwwroot/appsettings.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Website/Website.Client/wwwroot/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} -- cgit v1.3.1