Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Update project.json to the new csproj format
Browse files Browse the repository at this point in the history
* Add support for multi-target frameworks
* Add support for .NETStandard 1.5 and 1.6
* Migrate from NUnit to xUnit
  • Loading branch information
louistakepillz committed Apr 10, 2017
1 parent f44caeb commit 2be12f1
Show file tree
Hide file tree
Showing 27 changed files with 129 additions and 705 deletions.
17 changes: 0 additions & 17 deletions .settings/tasks.json

This file was deleted.

196 changes: 4 additions & 192 deletions ArgumentParser.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 12.0.31101.0
# Visual Studio 15
VisualStudioVersion = 15.0.26403.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArgumentParser", "ArgumentParser\ArgumentParser.csproj", "{23449844-B055-481B-A085-D09391434DF3}"
EndProject
Expand All @@ -21,196 +22,7 @@ Global
{CE974B38-A436-4E3C-80D0-209FBE5F0858}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CE974B38-A436-4E3C-80D0-209FBE5F0858}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.DotNetNamingPolicy = $1
$1.DirectoryNamespaceAssociation = Hierarchical
$1.ResourceNamePolicy = FileFormatDefault
$0.TextStylePolicy = $2
$2.FileWidth = 120
$2.EolMarker = Unix
$2.inheritsSet = VisualStudio
$2.inheritsScope = text/plain
$2.scope = text/x-csharp
$0.CSharpFormattingPolicy = $3
$3.IndentSwitchBody = True
$3.StatementBraceStyle = NextLine
$3.ElseNewLinePlacement = NewLine
$3.CatchNewLinePlacement = NewLine
$3.FinallyNewLinePlacement = NewLine
$3.WhileNewLinePlacement = DoNotCare
$3.EmbeddedStatementPlacement = DoNotCare
$3.BeforeMethodDeclarationParentheses = False
$3.BeforeMethodCallParentheses = False
$3.BeforeConstructorDeclarationParentheses = False
$3.NewLineAfterConstructorInitializerColon = SameLine
$3.BeforeIndexerDeclarationBracket = False
$3.BeforeDelegateDeclarationParentheses = False
$3.AfterDelegateDeclarationParameterComma = True
$3.NewParentheses = False
$3.BeforeSizeOfParentheses = True
$3.BeforeTypeOfParentheses = True
$3.SpacesBeforeBrackets = False
$3.SpacesAfterTypecast = True
$3.AlignToFirstMethodDeclarationParameter = False
$3.inheritsSet = Mono
$3.inheritsScope = text/x-csharp
$3.scope = text/x-csharp
$0.TextStylePolicy = $4
$4.FileWidth = 120
$4.TabsToSpaces = False
$4.inheritsSet = VisualStudio
$4.inheritsScope = text/plain
$4.scope = text/plain
$0.TextStylePolicy = $5
$5.inheritsSet = null
$5.scope = application/config+xml
$0.XmlFormattingPolicy = $6
$6.inheritsSet = null
$6.scope = application/config+xml
$0.TextStylePolicy = $7
$7.FileWidth = 120
$7.IndentWidth = 2
$7.EolMarker = Unix
$7.inheritsSet = VisualStudio
$7.inheritsScope = text/plain
$7.scope = application/xml
$0.XmlFormattingPolicy = $8
$8.DefaultFormat = $9
$9.ContentIndentString = " "
$9.AttributesIndentString = " "
$8.inheritsSet = Mono
$8.inheritsScope = application/xml
$8.scope = application/xml
$0.StandardHeader = $10
$10.Text = @//-----------------------------------------------------------------------\n// <copyright file="${FileName}.cs" company="LouisTakePILLz">\n// Copyright © ${Year} LouisTakePILLz\n// <author>LouisTakePILLz</author>\n// </copyright>\n//-----------------------------------------------------------------------\n\n/*\n * This program is free software: you can redistribute it and/or modify it under the terms of\n * the GNU General Public License as published by the Free Software Foundation, either\n * version 3 of the License, or (at your option) any later version.\n * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n * See the GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */
$10.IncludeInNewFiles = True
$0.NameConventionPolicy = $11
$11.Rules = $12
$12.NamingRule = $13
$13.Name = Namespaces
$13.AffectedEntity = Namespace
$13.VisibilityMask = VisibilityMask
$13.NamingStyle = PascalCase
$13.IncludeInstanceMembers = True
$13.IncludeStaticEntities = True
$12.NamingRule = $14
$14.Name = Types
$14.AffectedEntity = Class, Struct, Enum, Delegate
$14.VisibilityMask = Public
$14.NamingStyle = PascalCase
$14.IncludeInstanceMembers = True
$14.IncludeStaticEntities = True
$12.NamingRule = $15
$15.Name = Interfaces
$15.RequiredPrefixes = $16
$16.String = I
$15.AffectedEntity = Interface
$15.VisibilityMask = Public
$15.NamingStyle = PascalCase
$15.IncludeInstanceMembers = True
$15.IncludeStaticEntities = True
$12.NamingRule = $17
$17.Name = Attributes
$17.RequiredSuffixes = $18
$18.String = Attribute
$17.AffectedEntity = CustomAttributes
$17.VisibilityMask = Public
$17.NamingStyle = PascalCase
$17.IncludeInstanceMembers = True
$17.IncludeStaticEntities = True
$12.NamingRule = $19
$19.Name = Event Arguments
$19.RequiredSuffixes = $20
$20.String = EventArgs
$19.AffectedEntity = CustomEventArgs
$19.VisibilityMask = Public
$19.NamingStyle = PascalCase
$19.IncludeInstanceMembers = True
$19.IncludeStaticEntities = True
$12.NamingRule = $21
$21.Name = Exceptions
$21.RequiredSuffixes = $22
$22.String = Exception
$21.AffectedEntity = CustomExceptions
$21.VisibilityMask = VisibilityMask
$21.NamingStyle = PascalCase
$21.IncludeInstanceMembers = True
$21.IncludeStaticEntities = True
$12.NamingRule = $23
$23.Name = Methods
$23.AffectedEntity = Methods
$23.VisibilityMask = Protected, Public
$23.NamingStyle = PascalCase
$23.IncludeInstanceMembers = True
$23.IncludeStaticEntities = True
$12.NamingRule = $24
$24.Name = Static Readonly Fields
$24.AffectedEntity = ReadonlyField
$24.VisibilityMask = Protected, Public
$24.NamingStyle = PascalCase
$24.IncludeInstanceMembers = False
$24.IncludeStaticEntities = True
$12.NamingRule = $25
$25.Name = Fields
$25.AffectedEntity = Field
$25.VisibilityMask = Protected, Public
$25.NamingStyle = PascalCase
$25.IncludeInstanceMembers = True
$25.IncludeStaticEntities = True
$12.NamingRule = $26
$26.Name = ReadOnly Fields
$26.AffectedEntity = ReadonlyField
$26.VisibilityMask = Protected, Public
$26.NamingStyle = PascalCase
$26.IncludeInstanceMembers = True
$26.IncludeStaticEntities = False
$12.NamingRule = $27
$27.Name = Constant Fields
$27.AffectedEntity = ConstantField
$27.VisibilityMask = Protected, Public
$27.NamingStyle = PascalCase
$27.IncludeInstanceMembers = True
$27.IncludeStaticEntities = True
$12.NamingRule = $28
$28.Name = Properties
$28.AffectedEntity = Property
$28.VisibilityMask = Protected, Public
$28.NamingStyle = PascalCase
$28.IncludeInstanceMembers = True
$28.IncludeStaticEntities = True
$12.NamingRule = $29
$29.Name = Events
$29.AffectedEntity = Event
$29.VisibilityMask = Protected, Public
$29.NamingStyle = PascalCase
$29.IncludeInstanceMembers = True
$29.IncludeStaticEntities = True
$12.NamingRule = $30
$30.Name = Enum Members
$30.AffectedEntity = EnumMember
$30.VisibilityMask = VisibilityMask
$30.NamingStyle = PascalCase
$30.IncludeInstanceMembers = True
$30.IncludeStaticEntities = True
$12.NamingRule = $31
$31.Name = Parameters
$31.AffectedEntity = Parameter
$31.VisibilityMask = VisibilityMask
$31.NamingStyle = CamelCase
$31.IncludeInstanceMembers = True
$31.IncludeStaticEntities = True
$12.NamingRule = $32
$32.Name = Type Parameters
$32.RequiredPrefixes = $33
$33.String = T
$32.AffectedEntity = TypeParameter
$32.VisibilityMask = VisibilityMask
$32.NamingStyle = PascalCase
$32.IncludeInstanceMembers = True
$32.IncludeStaticEntities = True
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
148 changes: 22 additions & 126 deletions ArgumentParser/ArgumentParser.csproj
Original file line number Diff line number Diff line change
@@ -1,132 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{23449844-B055-481B-A085-D09391434DF3}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ArgumentParser</RootNamespace>
<AssemblyName>ArgumentParser</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworks>net462;net461;net46;net452;net451;net45;netstandard1.5;netstandard1.6</TargetFrameworks>
<Description>A rich and elegant library for parameter-parsing that supports various syntaxes and flavors.</Description>
<Authors>LouisTakePILLz</Authors>
<Company>LouisTakePILLz</Company>
<Copyright>Copyright © LouisTakePILLz 2017</Copyright>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<AssemblyVersion>0.7.0.0</AssemblyVersion>
<FileVersion>0.7.0.0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>

<PropertyGroup>
<IsNETStandard>$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', 'netstandard'))</IsNETStandard>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\ArgumentParser.xml</DocumentationFile>

<PropertyGroup>
<DefineConstants Condition="$(IsNETStandard)">$(DefineConstants);NETSTANDARD</DefineConstants>
<DefineConstants Condition="!$(IsNETStandard)">$(DefineConstants);NETFRAMEWORK</DefineConstants>
<DefineConstants Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(TargetFramework)', 'netstandard[^1]|net\d'))">$(DefineConstants);USE_REFLECTION_PERMISSIONS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Arguments\FlagArgument.cs" />
<Compile Include="Arguments\FlagArgument`1.cs" />
<Compile Include="Arguments\IArgument`1.cs" />
<Compile Include="Arguments\IFlag.cs" />
<Compile Include="Arguments\POSIX\POSIXLongFlag.cs" />
<Compile Include="Arguments\POSIX\POSIXLongFlag`1.cs" />
<Compile Include="Arguments\Simple\SimpleArgument.cs" />
<Compile Include="Arguments\Simple\SimpleArgument`1.cs" />
<Compile Include="Arguments\Simple\SimpleFlag.cs" />
<Compile Include="Arguments\Simple\SimpleFlag`1.cs" />
<Compile Include="Arguments\ValueOptions.cs" />
<Compile Include="PreprocessorDelegate.cs" />
<Compile Include="Reflection\AttributeFilterDelegate.cs" />
<Compile Include="Helpers\ProjectionEqualityComparer.cs" />
<Compile Include="Helpers\ProjectionEqualityComparer`1.cs" />
<Compile Include="ParserBindingException.cs" />
<Compile Include="Reflection\IFlagOptionAttribute.cs" />
<Compile Include="Reflection\ICoupleableOptionAttribute.cs" />
<Compile Include="Reflection\POSIX\IPOSIXOptionAttribute.cs" />
<Compile Include="Reflection\Simple\ISimpleOptionAttribute.cs" />
<Compile Include="Reflection\Simple\SimpleCompositeListOptionAttribute.cs" />
<Compile Include="Reflection\Simple\SimpleListOptionAttribute.cs" />
<Compile Include="Reflection\Simple\SimpleFlagAttribute.cs" />
<Compile Include="Reflection\Simple\SimpleOptionAttribute.cs" />
<Compile Include="Reflection\Windows\IWindowsOptionAttribute.cs" />
<Compile Include="Reflection\Windows\WindowsCompositeListOptionAttribute.cs" />
<Compile Include="Reflection\Windows\WindowsListOptionAttribute.cs" />
<Compile Include="Helpers\ValueConverter.cs" />
<Compile Include="Arguments\Windows\WindowsFlag.cs" />
<Compile Include="Arguments\Windows\WindowsFlag`1.cs" />
<Compile Include="MemberBinding.cs" />
<Compile Include="Reflection\BindingPolicy.cs" />
<Compile Include="Reflection\BindingPolicyAttribute.cs" />
<Compile Include="Arguments\FlagOptions.cs" />
<Compile Include="Arguments\POSIX\POSIXShortFlag`1.cs" />
<Compile Include="Reflection\BindingEventArgs.cs" />
<Compile Include="Reflection\IOptionAttribute.cs" />
<Compile Include="Reflection\POSIX\POSIXCompositeListOptionAttribute.cs" />
<Compile Include="Reflection\POSIX\POSIXFlagAttribute.cs" />
<Compile Include="Reflection\POSIX\POSIXListOptionAttribute.cs" />
<Compile Include="Reflection\Windows\WindowsFlagAttribute.cs" />
<Compile Include="Reflection\Windows\WindowsOptionAttribute.cs" />
<Compile Include="IParserContext.cs" />
<Compile Include="IVerbContext.cs" />
<Compile Include="Patterns\POSIXParameterPattern.cs" />
<Compile Include="Patterns\SimpleParameterPattern.cs" />
<Compile Include="Patterns\ValuePattern.cs" />
<Compile Include="Patterns\VerbPattern.cs" />
<Compile Include="Patterns\WindowsColonParameterPattern.cs" />
<Compile Include="Patterns\WindowsEqualParameterPattern.cs" />
<Compile Include="Patterns\WindowsParameterPattern.cs" />
<Compile Include="RawParameter.cs" />
<Compile Include="FlagPair.cs" />
<Compile Include="IPairable.cs" />
<Compile Include="Reflection\POSIX\POSIXOptionAttribute.cs" />
<Compile Include="Key.cs" />
<Compile Include="ParameterPair.cs" />
<Compile Include="Helpers\ProjectionEqualityComparer`2.cs" />
<Compile Include="Helpers\StringArrayConverter.cs" />
<Compile Include="ParserExtension.cs" />
<Compile Include="ParsingException.cs" />
<Compile Include="Arguments\IArgument.cs" />
<Compile Include="ParameterTokenStyle.cs" />
<Compile Include="Parser.cs" />
<Compile Include="ParserOptions.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Arguments\POSIX\POSIXShortFlag.cs" />
<Compile Include="Arguments\POSIX\POSIXLongArgument.cs" />
<Compile Include="Arguments\POSIX\POSIXLongArgument`1.cs" />
<Compile Include="Arguments\POSIX\POSIXShortArgument.cs" />
<Compile Include="Arguments\POSIX\POSIXShortArgument`1.cs" />
<Compile Include="Arguments\Argument.cs" />
<Compile Include="Arguments\Argument`1.cs" />
<Compile Include="Arguments\Windows\WindowsArgument`1.cs" />
<Compile Include="Arguments\Windows\WindowsArgument.cs" />
<Compile Include="Reflection\VerbAttribute.cs" />
<Compile Include="UnboundValue.cs" />
<Compile Include="ValueParsingException.cs" />
<Compile Include="Verb.cs" />

<ItemGroup Condition="$(IsNETStandard)">
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>
Loading

0 comments on commit 2be12f1

Please sign in to comment.