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

Update to .NET 9 #334

Merged
merged 22 commits into from
Nov 12, 2024
Merged

Update to .NET 9 #334

merged 22 commits into from
Nov 12, 2024

Conversation

martincostello
Copy link
Owner

@martincostello martincostello commented Feb 13, 2024

  • Update to .NET 9.
  • Refactor some puzzles to leverage new APIs in .NET 9/C# 13.
  • Fix/suppress new code analysis warnings.

@martincostello martincostello added enhancement dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Feb 13, 2024
martincostello added a commit that referenced this pull request Feb 14, 2024
Fix new code analysis warning identified in #334.
martincostello added a commit that referenced this pull request Feb 14, 2024
Fix new code analysis warning identified in #334.
martincostello added a commit that referenced this pull request Mar 29, 2024
Remove redundant cast identified by .NET 9 in #334.
martincostello added a commit that referenced this pull request Mar 29, 2024
Remove redundant cast identified by .NET 9 in #334.
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 084a9cd to 81fcdb3 Compare April 9, 2024 19:32
@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

martincostello and others added 21 commits November 12, 2024 19:11
Update to preview 1 of .NET 9.
Use the new `Index()` method.
Update .NET SDK to version 9.0.100-preview.2.24157.14.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update .NET SDK to version 9.0.100-preview.3.24204.13.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update .NET SDK to version 9.0.100-preview.4.24267.66.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Set `LangVersion=preview` to use C# 13.
Add batch files to launch Visual Studio (Code) with the locally installed .NET SDK version for use with daily builds.
Disable CA1515 in the ruleset file rather than with NoWarn.
Update .NET SDK to version 9.0.100-preview.5.24307.3.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update .NET SDK to version 9.0.100-preview.6.24328.19.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Use `System.Threading.Lock` instead of an object to resolve `IDE0330` warning in .NET 9 preview 7.
Update to preview 7 of .NET 9.
Revert back to using the latest version of C# instead of preview.
Update .NET SDK to version 9.0.100-rc.1.24452.12.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Remove CS9057 suppression.
Refactor puzzle 59 to operate on spans of characters.
Search for the unique word "Euler" rather than for common words.
Use the `ReadOnlySpan<T>.Split(char)` method to see if that's better than manual coding.
- Remove local method.
- Use a single variable.
- Treat some strings as spans and use their `Split()` method.
- Use `string.Join(char)`.
- Rename variable to theta symbol.
Update .NET SDK to version 9.0.100-rc.2.24474.11.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update .NET SDK to version 9.0.100.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
@martincostello martincostello marked this pull request as ready for review November 12, 2024 22:23
@martincostello martincostello merged commit 20112fc into main Nov 12, 2024
8 checks passed
@martincostello martincostello deleted the dotnet-vnext branch November 12, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants