diff options
| author | Sjory <Mgj32000@gmail.com> | 2024-12-05 13:23:12 +0100 |
|---|---|---|
| committer | Sjory <Mgj32000@gmail.com> | 2024-12-05 13:23:12 +0100 |
| commit | dae84a9660ed572dc150e548eb71ac38a0efbf6e (patch) | |
| tree | 285a1321c9cc0a403122449d81970729522930b7 /Website/Website.Client | |
| parent | ca3e50a78787685fb5a39c6f751a87b2beb65c17 (diff) | |
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)
Diffstat (limited to 'Website/Website.Client')
12 files changed, 132 insertions, 0 deletions
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 + +<PageTitle>Counter</PageTitle> + +<h1>Counter</h1> + +<p role="status">Current count: @currentCount</p> + +<button class="btn btn-primary" @onclick="IncrementCount">Click me</button> + +@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 @@ +<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> + + <PropertyGroup> + <TargetFramework>net8.0</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>enable</Nullable> + <NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile> + <StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" /> + </ItemGroup> + +</Project> 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 @@ +// <autogenerated /> +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 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// 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. +// </auto-generated> +//------------------------------------------------------------------------------ + +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 @@ +// <auto-generated/> +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 --- /dev/null +++ b/Website/Website.Client/obj/Debug/net8.0/staticwebassets.removed.txt 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" + } + } +} |
