Skip to content

Commit

Permalink
Fixed the NuGet packing so the necessary map files are packed into th…
Browse files Browse the repository at this point in the history
…e package as well.
  • Loading branch information
zedseven committed Oct 28, 2020
1 parent 9707563 commit 970a44b
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ before_install: sudo apt-get -y install tree

install:
- dotnet restore
- tree -a -C .
- tree -a .

script:
- dotnet build RomanizationNet.sln --configuration Release --no-restore
Expand Down
30 changes: 10 additions & 20 deletions Romanization/Romanization.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<RepositoryUrl>https://github.com/zedseven/Romanization.NET.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<NeutralLanguage>en-CA</NeutralLanguage>
<Version>0.9.2</Version>
<AssemblyVersion>0.9.2.0</AssemblyVersion>
<Version>0.9.3</Version>
<AssemblyVersion>0.9.3.0</AssemblyVersion>
<AssemblyName>Romanization.NET</AssemblyName>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Romanization Chinese Japanese Korean</PackageTags>
Expand All @@ -23,24 +23,14 @@
</PropertyGroup>

<ItemGroup>
<None Update="LanguageCharacterMaps\HanjaHangeul.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageCharacterMaps\HanziHanyuPinlu.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageCharacterMaps\HanziHanyuPinyin.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageCharacterMaps\HanziXHC.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageCharacterMaps\KanjiKun.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LanguageCharacterMaps\KanjiOn.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Content Include="contentFiles/**/*.csv" copyToOutput="true">
<IncludeInPackage>true</IncludeInPackage>
<CopyToOutput>true</CopyToOutput>
<BuildAction>Content</BuildAction>
<copyToOutput>true</copyToOutput>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<PackageCopyToOutput>true</PackageCopyToOutput>
</Content>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Romanization/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal static class Utilities
{
// Constants
public static readonly string AssemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
public static readonly string LanguageCharacterMapsPath = Path.Combine(AssemblyPath, "LanguageCharacterMaps");
public static readonly string LanguageCharacterMapsPath = Path.Combine(AssemblyPath, "contentFiles", "any", "any", "LanguageCharacterMaps");

// Exceptions
/// <summary>
Expand Down

0 comments on commit 970a44b

Please sign in to comment.