-
-
Notifications
You must be signed in to change notification settings - Fork 265
Make multitarget possible #591
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
Open
sensslen
wants to merge
22
commits into
natemcmaster:main
Choose a base branch
from
sensslen:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ef0afc2
make multitarget possible
sensslen 138b42a
only specify netframework on windows
sensslen 0dc7007
use windows machines to build release
sensslen 6aadb1e
fix non windows targetframeworks setting
sensslen 9ac37dc
Initial plan
Copilot 090a300
fix: disable strong naming for source generator project
Copilot f25d48f
use fixed versions of polysharp and remove langversion specification …
sensslen 1a2678e
Merge pull request #1 from sensslen/copilot/fix-strong-naming-issue
sensslen c39bf5b
Merge pull request #2 from sensslen/simon/address-review-comments
sensslen a74ae70
Initial plan
Copilot 62f9505
add some documentation and remove empty catch
sensslen 79de02d
fix: disable strong name signing for test assemblies to resolve .NET …
Copilot b1bfee8
Fix hashCode generation
sensslen 8ef3481
Revert "fix: disable strong naming for source generator project"
sensslen 755749f
fix: add app.config to bypass strong name verification for .NET Frame…
Copilot e1cc18b
fix: restore InternalsVisibleTo public key requirement for strong-nam…
Copilot 117a1e1
no need to ckeck for windows compilation for unit under test
sensslen 100ca3a
Merge branch 'main' into copilot/fix-dotnet-framework-build-issue
sensslen 8169c1d
Merge branch 'copilot/fix-dotnet-framework-build-issue' of https://gi…
sensslen 901b681
Merge pull request #3 from sensslen/copilot/fix-dotnet-framework-buil…
sensslen fcdf6cb
address more issues
sensslen 3620b7c
Merge branch 'main' of https://github.com/sensslen/CommandLineUtils
sensslen 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,22 @@ | ||
| // Copyright (c) Nate McMaster. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
|
||
| using System.Collections.Generic; | ||
|
|
||
| namespace McMaster.Extensions.CommandLineUtils.Extensions | ||
| { | ||
| internal static class DictionaryExtensions | ||
| { | ||
| #if !NET6_0_OR_GREATER | ||
| public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, TValue value) | ||
| { | ||
| if (dictionary.ContainsKey(key)) | ||
| { | ||
| return false; | ||
| } | ||
| dictionary.Add(key, value); | ||
| return true; | ||
| } | ||
| #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,21 @@ | ||
| // Copyright (c) Nate McMaster. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
|
||
| using System.Diagnostics.CodeAnalysis; | ||
|
|
||
| namespace McMaster.Extensions.CommandLineUtils.Extensions | ||
| { | ||
| internal static class StringExtensions | ||
| { | ||
| /// <summary> | ||
| /// A wrapper around <see cref="string.IsNullOrEmpty(string)"/> that allows proper nullability annotation. | ||
| /// This is a workaround because .NET Framework assemblies are not nullability annotated. | ||
| /// </summary> | ||
| public static bool IsNullOrEmpty([NotNullWhen(false)] this string? value) => string.IsNullOrEmpty(value); | ||
| /// <summary> | ||
| /// A wrapper around <see cref="string.IsNullOrWhiteSpace(string)"/> that allows proper nullability annotation. | ||
| /// This is a workaround because .NET Framework assemblies are not nullability annotated. | ||
| /// </summary> | ||
| public static bool IsNullOrWhiteSpace([NotNullWhen(false)] this string? value) => string.IsNullOrWhiteSpace(value); | ||
sensslen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would generally prefer to keep linux runners. The windows agents are 5 to 10x slower (from my non-scientific testing). Is there any reason this needs to run on Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not aware of a way to make linux compile .net framework. That's the reason for the change. I may be wrong here though.