Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dotnet8 angular18 #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

IndifferentDisdain
Copy link

@IndifferentDisdain IndifferentDisdain commented Jun 9, 2024

MIgrate to .NET 8 and Angular 18. Fixes #4

  • Compiler warnings introduced with the .NET 8 migration, resolved with changes to Program.cs.
  • Migrated Angular 16 to 17, then 17 to 18.
  • Manual migration of @angular-eslint/* packages required.
  • Updated text in other files to reference .NET 8 and Angular 18, e.g. README.md

README.md Outdated

| `dotnet new angular` | `dotnet new f23-angular-material` |
| --- | --- |
| ❌ Slow inner-loop dev experience with the proxy and HTTPS cert startup code | ✅ Fast inner-loop with separate processes for ASP.NET and `npm start` (see README in generated project) |
| ❌ Angular proxy code does not match how it's usually used when deployed to production | ✅ Closer match to production |
| ❌ Does an `npm install` on launch | ✅ Faster launch by letting you run `npm i` only when needed |
| ❌ Angular v12 | ✅ Angular v16 |
| ❌ Angular v12 | ✅ Angular v18 |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the ASP.NET built-in template uses a version as ancient as v12 any more, but I'm unsure what version it's currently on.

@@ -34,8 +34,8 @@
if (context.File.Name == "index.html")
{
// more info on this header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#preventing_caching
context.Context.Response.Headers.Add("Cache-Control", "no-store, max-age=0");
context.Context.Response.Headers.Add("Expires", "-1");
context.Context.Response.Headers.Append("Cache-Control", "no-store, max-age=0");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm familiar with the warning this is addressing, but is Append appropriate here or should we be using the indexer to set (overwrite) the values if they already exist in the dictionary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Angular 18 and .NET 8
2 participants