Skip to content

Commit 2f55f6c

Browse files
author
ArthurHub
committed
* refactor
1 parent fc3b573 commit 2f55f6c

5 files changed

Lines changed: 18 additions & 12 deletions

File tree

Source/HtmlRenderer.Core/HtmlRenderer.Core.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<EmbeddedResource Include="Utils\ImageLoad.png" />
4444
</ItemGroup>
4545
<ItemGroup>
46+
<Compile Include="..\SharedAssemblyInfo.cs">
47+
<Link>Properties\SharedAssemblyInfo.cs</Link>
48+
</Compile>
4649
<Compile Include="Dom\CssBox.cs" />
4750
<Compile Include="Dom\CssBoxFrame.cs" />
4851
<Compile Include="Dom\CssBoxHr.cs" />
@@ -100,11 +103,9 @@
100103
<Compile Include="HtmlContainerBase.cs" />
101104
<Compile Include="CssData.cs" />
102105
<Compile Include="IGraphics.cs" />
103-
<Compile Include="AssemblyInfo.cs" />
104-
</ItemGroup>
105-
<ItemGroup>
106-
<Folder Include="Properties\" />
106+
<Compile Include="Properties\AssemblyInfo.cs" />
107107
</ItemGroup>
108+
<ItemGroup />
108109
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
109110
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
110111
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
using System.Runtime.CompilerServices;
2+
3+
// add specific assemblies to see the internal members of core
4+
[assembly: InternalsVisibleTo("HtmlRenderer.WinForms")]
5+
[assembly: InternalsVisibleTo("HtmlRenderer.WPF")]

Source/HtmlRenderer.WPF/HtmlRenderer.WPF.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
<ItemGroup>
4646
<AppDesigner Include="Properties\" />
4747
</ItemGroup>
48+
<ItemGroup />
4849
<ItemGroup>
49-
<Folder Include="Properties\" />
50+
<Compile Include="..\SharedAssemblyInfo.cs">
51+
<Link>Properties\SharedAssemblyInfo.cs</Link>
52+
</Compile>
5053
</ItemGroup>
5154
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5255
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

Source/HtmlRenderer.WinForms/HtmlRenderer.WinForms.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<Reference Include="System.Windows.Forms" />
6464
</ItemGroup>
6565
<ItemGroup>
66+
<Compile Include="..\SharedAssemblyInfo.cs">
67+
<Link>Properties\SharedAssemblyInfo.cs</Link>
68+
</Compile>
6669
<Compile Include="HtmlContainer.cs" />
6770
<Compile Include="Utils\WinFormsContextMenu.cs" />
6871
<Compile Include="Utils\HtmlClipboardUtils.cs" />
@@ -97,9 +100,7 @@
97100
<Install>true</Install>
98101
</BootstrapperPackage>
99102
</ItemGroup>
100-
<ItemGroup>
101-
<Folder Include="Properties\" />
102-
</ItemGroup>
103+
<ItemGroup />
103104
<ItemGroup>
104105
<ProjectReference Include="..\HtmlRenderer.Core\HtmlRenderer.Core.csproj">
105106
<Project>{fe611685-391f-4e3e-b27e-d3150e51e49b}</Project>
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following
@@ -22,8 +21,5 @@
2221
// The following GUID is for the ID of the typelib if this project is exposed to COM
2322
[assembly: Guid("ec8a9e7e-9a9d-43c3-aa97-f6f505b1d3ed")]
2423

25-
//
26-
[assembly: InternalsVisibleTo("HtmlRenderer.WinForms")]
27-
2824
// Version information for an assembly consists of the following four values:
2925
[assembly: AssemblyVersion("1.5.0.0")]

0 commit comments

Comments
 (0)