This commit is contained in:
Virgile Bello 2020-05-10 19:58:36 +02:00
Родитель 17052ff962
Коммит 6201d2c8a9
11 изменённых файлов: 143 добавлений и 352 удалений

32
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,32 @@
#Ignore thumbnails created by Windows
Thumbs.db
#Ignore files built by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
.vs/
#Nuget packages folder
packages/

Просмотреть файл

@ -1,70 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{24BE81B3-C22E-448B-A892-AAF95AB28747}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GNU.Getopt</RootNamespace>
<AssemblyName>GNU.Getopt</AssemblyName>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</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>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Stride.GNU.Getopt</PackageId>
</PropertyGroup>
<ItemGroup>
<Compile Include="Getopt.cs" />
<Compile Include="LongOpt.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<Compile Remove="Tests\**" />
<EmbeddedResource Remove="Tests\**" />
<None Remove="Tests\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="Properties\Resources.cs.resx" />
<EmbeddedResource Remove="Properties\Resources.de.resx" />
<EmbeddedResource Remove="Properties\Resources.fr.resx" />
<EmbeddedResource Remove="Properties\Resources.hu.resx" />
<EmbeddedResource Remove="Properties\Resources.ja.resx" />
<EmbeddedResource Remove="Properties\Resources.nl.resx" />
<EmbeddedResource Remove="Properties\Resources.no.resx" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<EmbeddedResource Update="Properties\Resources.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<LogicalName>Gnu.Getopt.Properties.Resources.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -1,35 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: AssemblyTitle("GNU Getopt Argument Parser")]
[assembly: AssemblyDescription("This is a C# port of a Java port of GNU Getopt, a class for parsing command line arguments passed to programs. It is based on the C getopt() functions in glibc 2.0.6 and should parse options in a 100% compatible manner.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Free Software Foundation, Inc.")]
[assembly: AssemblyProduct("GNU Getopt")]
[assembly: AssemblyCopyright("Copyright © 1987-1997 Free Software Foundation, Inc., Java Port Copyright © 1998 by Aaron M. Renn (arenn@urbanophile.com), C#.NET Port of the Java Port Copyright © 2007 by Klaus Prückl (klaus@prückl.at)")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
[assembly: ComVisible(true)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("486abd14-210b-44bb-a46c-53c7fa4c31da")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
// übernehmen, indem Sie "*" eingeben:
[assembly: AssemblyVersion("0.9.1.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

4
GNU.Getopt/Properties/Resources.Designer.cs сгенерированный
Просмотреть файл

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.269
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -19,7 +19,7 @@ namespace GNU.Getopt.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

Просмотреть файл

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
@ -200,7 +200,7 @@ namespace GNU.Gettext.Msgfmt
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = Options.CompilerName;
p.StartInfo.Arguments = String.Format(
"-target:library -out:\"{0}/{1}\" -lib:\"{2}\" -reference:GNU.Gettext.dll -optimize+ \"{3}\"",
"-target:library -out:\"{0}/{1}\" -lib:\"{2}\" -reference:GNU.Gettext.dll -reference:netstandard.dll -optimize+ \"{3}\"",
AssemblyOutDir,
GettextResourceManager.GetSatelliteAssemblyName(Options.BaseName),
Path.GetFullPath(Options.LibDir),

Просмотреть файл

@ -1,69 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{2E98861E-D84B-4F9D-9000-EC9744770769}</ProjectGuid>
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GNU.Gettext.Msgfmt</RootNamespace>
<AssemblyName>GNU.Gettext.Msgfmt</AssemblyName>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Commandlineparameters>-l ru-RU -d ../../GNU.Gettext/Examples.Hello/bin/Debug -r Examples.Hello -L ./../../Bin/Debug -v ../../GNU.Gettext/Examples.Hello/po/ru.po </Commandlineparameters>
</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>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<ProjectReference Include="..\..\GNU.Getopt\GNU.Getopt.csproj" />
<ProjectReference Include="..\GNU.Gettext\GNU.Gettext.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyGen.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ResourcesGen.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\GNU.Getopt\GNU.Getopt.csproj">
<Project>{24BE81B3-C22E-448B-A892-AAF95AB28747}</Project>
<Name>GNU.Getopt</Name>
</ProjectReference>
<ProjectReference Include="..\GNU.Gettext\GNU.Gettext.csproj">
<Project>{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}</Project>
<Name>GNU.Gettext</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

Просмотреть файл

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GNU.Gettext.Msgfmt")]
[assembly: AssemblyDescription("GNU gettext msgfmt utility for .NET / Mono")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Free Software Foundation, Inc.")]
[assembly: AssemblyProduct("GNU.Gettext.Msgfmt")]
[assembly: AssemblyCopyright("Copyright © 1987-1997 Free Software Foundation, Inc., C#.NET Port © 2011-2012 by Serguei Tarassov <st@arbinada.com>")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("51c8e490-ab70-4521-9d5f-8650f18c1bb4")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Просмотреть файл

@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GNU.Gettext", "GNU.Gettext\GNU.Gettext.csproj", "{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GNU.Gettext.Msgfmt", "GNU.Gettext.Msgfmt\GNU.Gettext.Msgfmt.csproj", "{2E98861E-D84B-4F9D-9000-EC9744770769}"
@ -27,18 +29,16 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|x86.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|x86.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Any CPU.Build.0 = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|x86.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|x86.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|x86.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Any CPU.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|x86.ActiveCfg = Release|Any CPU
{2E98861E-D84B-4F9D-9000-EC9744770769}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E98861E-D84B-4F9D-9000-EC9744770769}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E98861E-D84B-4F9D-9000-EC9744770769}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
@ -51,18 +51,18 @@ Global
{2E98861E-D84B-4F9D-9000-EC9744770769}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2E98861E-D84B-4F9D-9000-EC9744770769}.Release|x86.ActiveCfg = Release|Any CPU
{2E98861E-D84B-4F9D-9000-EC9744770769}.Release|x86.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|x86.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|x86.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Any CPU.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|x86.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|x86.Build.0 = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|x86.ActiveCfg = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Debug|x86.Build.0 = Debug|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Any CPU.Build.0 = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|x86.ActiveCfg = Release|Any CPU
{24BE81B3-C22E-448B-A892-AAF95AB28747}.Release|x86.Build.0 = Release|Any CPU
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
@ -75,16 +75,30 @@ Global
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Release|x86.ActiveCfg = Release|Any CPU
{5B5BB7C9-4972-4269-92AC-E041F3A2DF0F}.Release|x86.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Debug|x86.ActiveCfg = Debug|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Any CPU.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}.Release|x86.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|x86.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|x86.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Any CPU.Build.0 = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|x86.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|x86.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|x86.ActiveCfg = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Debug|x86.Build.0 = Debug|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Any CPU.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|x86.ActiveCfg = Release|Any CPU
{40A18DF7-3926-4AC4-8726-581F5C39082D}.Release|x86.Build.0 = Release|Any CPU
{69B39E65-093E-417A-BFC9-B1CF7B981680}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{69B39E65-093E-417A-BFC9-B1CF7B981680}.Debug|Any CPU.Build.0 = Debug|Any CPU
{69B39E65-093E-417A-BFC9-B1CF7B981680}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
@ -109,23 +123,14 @@ Global
{A458C869-B3C4-4130-8D3F-00F44548DD5C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A458C869-B3C4-4130-8D3F-00F44548DD5C}.Release|x86.ActiveCfg = Release|Any CPU
{A458C869-B3C4-4130-8D3F-00F44548DD5C}.Release|x86.Build.0 = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|x86.ActiveCfg = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Debug|x86.Build.0 = Debug|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Any CPU.Build.0 = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|x86.ActiveCfg = Release|Any CPU
{D7DC509C-6BD5-4627-92A8-5CF39A2A41BC}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = GNU.Gettext.Msgfmt\GNU.Gettext.Msgfmt.csproj
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5DB534C2-D090-40E1-BF16-C490EF403EFD}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = GNU.Gettext.Msgfmt\GNU.Gettext.Msgfmt.csproj
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,72 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6996D99C-2E0F-4EDA-9FF0-BB45F81EADC8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GNU.Gettext</RootNamespace>
<AssemblyName>GNU.Gettext</AssemblyName>
<FileAlignment>512</FileAlignment>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Stride.GNU.Gettext</PackageId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</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>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="intl.cs" />
<Compile Include="msgunfmt.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Catalog\Catalog.cs" />
<Compile Include="Catalog\CatalogDeletedEntry.cs" />
<Compile Include="Catalog\CatalogEntry.cs" />
<Compile Include="Catalog\StringEscaping.cs" />
<Compile Include="Catalog\IsoCodes.cs" />
<Compile Include="Catalog\CatalogParser.cs" />
<Compile Include="Catalog\PluralForms.cs" />
<Compile Include="Catalog\RecursiveTracer.cs" />
<Compile Include="Utils.cs" />
<Compile Include="FormatValidator.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup />
</Project>
</Project>

Просмотреть файл

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GNU.Gettext")]
[assembly: AssemblyDescription("GNU.Gettext for .NET and Mono")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Free Software Foundation, Inc.")]
[assembly: AssemblyProduct("GNU.Gettext")]
[assembly: AssemblyCopyright("Copyright © 1987-1997 Free Software Foundation, Inc., C#.NET Port © 2011-2012 by Serguei Tarassov <st@arbinada.com>")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8940df81-2f4d-4c09-a7ca-cfdd8e043f39")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Просмотреть файл

@ -55,6 +55,7 @@ using System.Reflection; /* Assembly, ConstructorInfo */
using System.Collections; /* Hashtable, ICollection, IEnumerator, IDictionaryEnumerator */
using System.IO; /* Path, FileNotFoundException, Stream */
using System.Text; /* StringBuilder */
using System.Collections.Generic;
namespace GNU.Gettext
{
@ -750,7 +751,14 @@ namespace GNU.Gettext
{
get
{
return Table.Keys;
var keys = new List<object>();
var enumerator = GetEnumerator();
while (enumerator.MoveNext())
{
// Perform logic on the item
keys.Add(enumerator.Current);
}
return keys;
}
}