Downgrade LangVer to 11.0 for net7.0
This commit is contained in:
parent
2848fd1982
commit
02b1a75d1e
@ -4,7 +4,7 @@ public class ArgumentFetcher
|
|||||||
{
|
{
|
||||||
public Argument[] ValidArguments;
|
public Argument[] ValidArguments;
|
||||||
|
|
||||||
private static readonly Argument HelpArg = new(["-h", "--help"], 0, "Print this help text.");
|
private static readonly Argument HelpArg = new(new []{"-h", "--help"}, 0, "Print this help text.");
|
||||||
|
|
||||||
public ArgumentFetcher(IEnumerable<Argument> arguments)
|
public ArgumentFetcher(IEnumerable<Argument> arguments)
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Description>Defines and Parses Arguments for programs.</Description>
|
<Description>Defines and Parses Arguments for programs.</Description>
|
||||||
<PackageProjectUrl>https://github.com/C9Glax/GlaxArguments</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/C9Glax/GlaxArguments</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://github.com/C9Glax/GlaxArguments</RepositoryUrl>
|
<RepositoryUrl>https://github.com/C9Glax/GlaxArguments</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>1.0.1</Version>
|
<Version>1.1.0</Version>
|
||||||
|
<TargetFrameworks>net8.0;net7.0</TargetFrameworks>
|
||||||
|
<LangVersion>11</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
using GlaxArguments;
|
using GlaxArguments;
|
||||||
|
|
||||||
Argument[] arguments =
|
Argument[] arguments = new[]
|
||||||
[
|
{
|
||||||
new (["-t", "--test"], 0, "Test arg"),
|
new Argument(new []{"-t", "--test"}, 0, "Test arg"),
|
||||||
new (["--test1"], 1, "Test arg with 1 parameter"),
|
new Argument(new []{"--test1"}, 1, "Test arg with 1 parameter"),
|
||||||
new (["--test2"], 2, "Test arg with 2 parameters"),
|
new Argument(new []{"--test2"}, 2, "Test arg with 2 parameters"),
|
||||||
new (["--test3"], 0, "Test arg")
|
new Argument(new []{"--test3"}, 0, "Test arg")
|
||||||
];
|
|
||||||
|
};
|
||||||
ArgumentFetcher fetcher = new(arguments);
|
ArgumentFetcher fetcher = new(arguments);
|
||||||
Dictionary<Argument, string[]> fetched = fetcher.Fetch("-h");
|
Dictionary<Argument, string[]> fetched = fetcher.Fetch("-h");
|
||||||
foreach(KeyValuePair<Argument, string[]> arg in fetched)
|
foreach(KeyValuePair<Argument, string[]> arg in fetched)
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<LangVersion>11</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user