Skip to content

Commit

Permalink
(#63) Shared: extract everything that's possible for clean compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Dec 31, 2022
1 parent 1ab24f2 commit 851b0b6
Show file tree
Hide file tree
Showing 35 changed files with 27 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<PredefinedColors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PredefinedColors>
<color r="251" g="185" b="130" name="apricot" />
<color r="0" g="181" b="190" name="aquamarine" />
<color r="192" g="79" b="23" name="bittersweet" />
Expand Down Expand Up @@ -68,4 +68,4 @@
<color r="255" g="242" b="0" name="yellow" />
<color r="152" g="204" b="112" name="yellowgreen" />
<color r="250" g="162" b="26" name="yelloworange" />
</PredefinedColors>
</PredefinedColors>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace WpfMath.Utils
{
#if NET452 // not needed for .NET Core 3.0+ because there're System.TupleExtensions
Expand Down
21 changes: 21 additions & 0 deletions WpfMath.Shared/WpfMath.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,25 @@
<RootNamespace>WpfMath</RootNamespace>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Data\DefaultTexFont.xml" />
<EmbeddedResource Include="Data\GlueSettings.xml" />
<EmbeddedResource Include="Data\PredefinedColors.xml" />
<EmbeddedResource Include="Data\PredefinedTexFormulas.xml" />
<EmbeddedResource Include="Data\TexFormulaSettings.xml" />
<EmbeddedResource Include="Data\TexSymbols.xml" />
</ItemGroup>

<ItemGroup>
<Resource Include="Fonts\cmex10.ttf" />
<Resource Include="Fonts\cmmi10.ttf" />
<Resource Include="Fonts\cmr10.ttf" />
<Resource Include="Fonts\cmsy10.ttf" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="WpfMath" />
<InternalsVisibleTo Include="WpfMath.Tests" />
</ItemGroup>

</Project>
File renamed without changes.
11 changes: 4 additions & 7 deletions src/WpfMath/WpfMath.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net452</TargetFrameworks>
<UseWpf>true</UseWpf>
Expand Down Expand Up @@ -36,17 +37,13 @@ Fixed:
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Data/*" />
<Resource Include="Fonts\cmex10.ttf" />
<Resource Include="Fonts\cmmi10.ttf" />
<Resource Include="Fonts\cmr10.ttf" />
<Resource Include="Fonts\cmsy10.ttf" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
<ProjectReference Include="..\..\WpfMath.Shared\WpfMath.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
Expand Down

0 comments on commit 851b0b6

Please sign in to comment.