-
-
Notifications
You must be signed in to change notification settings - Fork 14
Update to .NET 10 #858
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
Merged
Merged
Update to .NET 10 #858
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
374a33b
Update to .NET 10
martincostello 3e884ca
Update .NET SDK to 10.0.100-preview.4.25258.110 (#920)
costellobot 89c5a1c
Update .NET SDK to 10.0.100-preview.5.25277.114 (#939)
costellobot 586ae75
Updates for rebase
martincostello 90f0f4a
Reorder TFMs
martincostello 26a8ac2
Update to .NET 10 preview 6
martincostello f22b10e
Remove suppression
martincostello f6a87f7
Update .NET SDK to 10.0.100-preview.7.25380.108 (#992)
costellobot 61f7cd0
Update NuGet packages
martincostello 03dda52
Update .NET SDK (#1015)
costellobot 0c1777f
Update NuGet packages
martincostello ceb18cb
Simplify parameter validation
martincostello f2ea254
Update .NET SDK to 10.0.100-rc.2.25502.107 (#1054)
costellobot 21e3469
Update to .NET 10 GA (#1076)
martincostello 9e421ec
Remove NU5104 suppression
martincostello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Copyright (c) Martin Costello, 2018. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
|
|
||
| #if NETFRAMEWORK || NETSTANDARD | ||
| using System.Runtime.CompilerServices; | ||
|
|
||
| #pragma warning disable IDE0130 | ||
| namespace System; | ||
|
|
||
| /// <summary> | ||
| /// Extension methods for <see cref="ArgumentNullException"/>. | ||
| /// </summary> | ||
| internal static class ArgumentNullExceptionExtensions | ||
| { | ||
| extension(ArgumentNullException) | ||
| { | ||
| /// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary> | ||
| /// <param name="argument">The reference type argument to validate as non-null.</param> | ||
| /// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param> | ||
| public static void ThrowIfNull(object? argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null) | ||
| { | ||
| if (argument is null) | ||
| { | ||
| throw new ArgumentNullException(paramName); | ||
| } | ||
martincostello marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
| #endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // Copyright (c) Martin Costello, 2018. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
|
|
||
| #if NETFRAMEWORK || NETSTANDARD | ||
| #pragma warning disable IDE0130 | ||
| namespace System.Runtime.CompilerServices; | ||
|
|
||
| /// <summary> | ||
| /// Indicates that a parameter captures the expression passed for another parameter as a string. | ||
| /// </summary> | ||
| /// <param name="parameterName">The name of the parameter whose expression should be captured as a string.</param> | ||
| [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)] | ||
| internal sealed class CallerArgumentExpressionAttribute(string parameterName) : Attribute | ||
| { | ||
| /// <summary> | ||
| /// Gets the name of the parameter whose expression should be captured as a string. | ||
| /// </summary> | ||
| public string ParameterName { get; } = parameterName; | ||
| } | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.