Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/Build-Test-And-Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
environment: "BuildAndUploadImage"
env:
TEST_TAG: user/app:test

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageVersion Include="ContentFeedNuget" Version="$(ToolingPackagesVersion)" />
</ItemGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="9.0.1" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.8.0" />
<PackageVersion Include="EssentialCSharp.Shared.Models" Version="$(ToolingPackagesVersion)" />
Expand Down
4 changes: 2 additions & 2 deletions EssentialCSharp.Web.Tests/EssentialCSharp.Web.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
Expand Down
4 changes: 2 additions & 2 deletions EssentialCSharp.Web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#syntax=docker/dockerfile:1.2

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 8080
EXPOSE 8081

FROM mcr.microsoft.com/dotnet/sdk:8.0.101 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0.200 AS build
ARG ACCESS_TO_NUGET_FEED=true
ENV ACCESS_TO_NUGET_FEED=$ACCESS_TO_NUGET_FEED
RUN sh -c "$(curl -fsSL https://aka.ms/install-artifacts-credprovider.sh)"
Expand Down
3 changes: 2 additions & 1 deletion EssentialCSharp.Web/EssentialCSharp.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PlaceholderChapterOneHtmlFile Include="$(ProjectDir)/Placeholders/Chapters/01/Pages/*.html" />
Expand All @@ -20,6 +20,7 @@
<PackageReference Include="IntelliTect.Multitool" />
<PackageReference Include="Mailjet.Api" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" />
<PackageReference Include="Microsoft.AspNetCore.Components" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
Expand Down
33 changes: 17 additions & 16 deletions EssentialCSharp.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
@using IntelliTect.Multitool
@using EssentialCSharp.Common
@inject ISiteMappingService _SiteMappings
@using Microsoft.AspNetCore.Components
@{
var prodMap = new ImportMapDefinition(
new Dictionary<string, string>
{
{ "vue", "./lib/vue/dist/vue.esm-browser.prod.js" },
{ "vue-window-size", "./lib/vue-window-size/composition-api/dist/index.js" },
}, null, null);
var devMap = new ImportMapDefinition(
new Dictionary<string, string>
{
{ "vue", "./lib/vue/dist/vue.esm-browser.js" },
{ "vue-window-size", "./lib/vue-window-size/composition-api/dist/index.js" },
}, null, null);
}
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -46,24 +61,10 @@
@*So that Safari can import modules*@
<script async src="/lib/es-module-shims/dist/es-module-shims.js"></script>
<environment include="Development">
<script type="importmap">
{
"imports": {
"vue": "./lib/vue/dist/vue.esm-browser.js",
"vue-window-size": "./lib/vue-window-size/composition-api/dist/index.js"
}
}
</script>
<script type="importmap" asp-importmap="@devMap"></script>
</environment>
<environment exclude="Development">
<script type="importmap">
{
"imports": {
"vue": "./lib/vue/dist/vue.esm-browser.prod.js",
"vue-window-size": "./lib/vue-window-size/composition-api/dist/index.js"
}
}
</script>
<script type="importmap" asp-importmap="@prodMap"></script>
</environment>
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "9.0.101",
"rollForward": "latestMinor"
}
}