Skip to content

Commit a2d6990

Browse files
committed
TextHelpers сlass became internal
1 parent 962eff0 commit a2d6990

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

build/strong-name-signing.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<PropertyGroup>
3+
<AssemblyOriginatorKeyFile>../../build/Key.snk</AssemblyOriginatorKeyFile>
4+
<SignAssembly>true</SignAssembly>
5+
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
6+
</PropertyGroup>
7+
</Project>

src/MsieJavaScriptEngine/Helpers/TextHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace MsieJavaScriptEngine.Helpers
1010
/// <summary>
1111
/// Text helpers
1212
/// </summary>
13-
public static class TextHelpers
13+
internal static class TextHelpers
1414
{
1515
/// <summary>
1616
/// Array of characters used to find the next line break
@@ -24,7 +24,7 @@ public static class TextHelpers
2424
/// <param name="textLine">Content of the text line</param>
2525
/// <param name="columnNumber">Column number</param>
2626
/// <param name="maxFragmentLength">Maximum length of the text fragment</param>
27-
public static string GetTextFragmentFromLine(string textLine, int columnNumber,
27+
internal static string GetTextFragmentFromLine(string textLine, int columnNumber,
2828
int maxFragmentLength = 100)
2929
{
3030
if (string.IsNullOrEmpty(textLine))

src/MsieJavaScriptEngine/MsieJavaScriptEngine.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
99
<OutputType>Library</OutputType>
1010
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
11-
<AssemblyOriginatorKeyFile>../../build/Key.snk</AssemblyOriginatorKeyFile>
12-
<SignAssembly>true</SignAssembly>
13-
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
1411
<NoWarn>$(NoWarn);CS1591;NU5125</NoWarn>
1512
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1613
<DisableDefaultResxToCsConversionTarget>true</DisableDefaultResxToCsConversionTarget>
@@ -37,6 +34,7 @@
3734

3835
<Import Project="../../build/common.props" />
3936
<Import Project="../../build/net40-client-target.props" />
37+
<Import Project="../../build/strong-name-signing.props" />
4038

4139
<ItemGroup>
4240
<PackageReference Include="AdvancedStringBuilder" Version="0.1.0" />
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System.Runtime.CompilerServices;
2+
3+
// Unit tests need access to internal members
4+
[assembly: InternalsVisibleTo("MsieJavaScriptEngine.Test.Common, PublicKey=002400000480000094000000060200000024000052534131000400000100010031605c3b70d76b" +
5+
"bb7e2afeccded26c52f66c4c7047c7a5b6a88301f54f1e91d5e5a08a9e36b0ad18a403f7894eda" +
6+
"d58b014576963d6c6073e3df92eebadd1e9c6bc6c8fb3ad8b95e6358a0948a2fc5df0fa76553b5" +
7+
"63c7584fc6fa22952bd24965f64877622d14559a3603879f8a746eaed0f2cb009dec5537770d94" +
8+
"83e629a9")]

test/MsieJavaScriptEngine.Test.Common/MsieJavaScriptEngine.Test.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
</PropertyGroup>
1313

1414
<Import Project="../../build/common.props" />
15+
<Import Project="../../build/strong-name-signing.props" />
1516

1617
<ItemGroup>
1718
<PackageReference Include="NUnit" Version="3.10.1" />

0 commit comments

Comments
 (0)