Skip to content

Commit

Permalink
Merge pull request #1581 from cwensley/curtis/update-references
Browse files Browse the repository at this point in the history
Update references and minor fixes
  • Loading branch information
cwensley authored Feb 17, 2020
2 parents 7106554 + 7c9418b commit 38af1af
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.Core" Version="4.3.1" />
<PackageReference Include="Portable.Xaml" Version="0.23.0" />
<PackageReference Include="Extended.Wpf.Toolkit" Version="3.2.0" />
<PackageReference Include="Portable.Xaml" Version="0.24.0" />
<PackageReference Include="Extended.Wpf.Toolkit" Version="3.6.0" />
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="16.0.202" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="16.4.1057" />
</ItemGroup>
Expand Down
18 changes: 13 additions & 5 deletions src/Addins/Eto.Designer/DesignPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,19 @@ public static Control GetContent(Control content)

void ControlCreatedInternal(Control control)
{
ControlCreating?.Invoke();
contentControl = control;
designSurface.Content = GetContent(control);
token = null;
ControlCreated?.Invoke();
try
{
ControlCreating?.Invoke();
contentControl = control;
designSurface.Content = GetContent(control);
token = null;
ControlCreated?.Invoke();
}
catch (Exception ex)
{
designSurface.Content = null;
ErrorInternal(ex);
}
}

void ErrorInternal(Exception ex)
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Serialization.Xaml/Eto.Serialization.Xaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ https://github.com/picoe/Eto/wiki
</ItemGroup>

<ItemGroup>
<PackageReference Include="Portable.Xaml" Version="0.23.0" />
<PackageReference Include="Portable.Xaml" Version="0.24.0" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'netstandard1.0'">
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Wpf/Eto.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ You do not need to use any of the classes of this assembly (unless customizing t
</ItemGroup>

<ItemGroup>
<PackageReference Include="Extended.Wpf.Toolkit" Version="3.2.0" PrivateAssets="all" />
<PackageReference Include="Extended.Wpf.Toolkit" Version="3.6.0" PrivateAssets="all" />
<PackageReference Include="Windows7APICodePack-Shell" Version="1.1.0" PrivateAssets="all" />
</ItemGroup>

Expand Down
5 changes: 3 additions & 2 deletions src/Eto/Eto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ https://github.com/picoe/Eto/wiki
<Compile Include="..\Shared\EnumerableExtensions.cs" />
</ItemGroup>
<ItemGroup>
<None Update="Eto.Forms.targets" Pack="true" PackagePath="build" />
<None Remove="Eto.Forms.targets" />
<None Include="Eto.Forms.targets" Pack="true" PackagePath="build" />
<None Update="$(BasePath)LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
Expand All @@ -49,6 +50,6 @@ https://github.com/picoe/Eto/wiki
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
</Project>
6 changes: 5 additions & 1 deletion src/Eto/Forms/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ protected void RemoveLogicalParent(Control child)
/// <param name="previousChild">Previous child that the new child is replacing.</param>
protected void SetParent(Control child, Action assign = null, Control previousChild = null)
{
if (ReferenceEquals(child, this))
{
throw new InvalidOperationException("Cannot assign a control as a child of itself.");
}
if (Handler is IThemedControlHandler)
{
if (!ReferenceEquals(previousChild, null))
Expand All @@ -374,7 +378,7 @@ protected void SetParent(Control child, Action assign = null, Control previousCh
{
#if DEBUG
if (!ReferenceEquals(previousChild.VisualParent, this))
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "The previous child control is not a child of this container. Ensure you only remove children that you own."));
throw new ArgumentException("The previous child control is not a child of this container. Ensure you only remove children that you own.");
#endif

if (!ReferenceEquals(previousChild.VisualParent, null))
Expand Down
2 changes: 1 addition & 1 deletion test/Eto.Test.Gtk/Eto.Test.Gtk2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion test/Eto.Test.Gtk/Eto.Test.Gtk3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions test/Eto.Test.Mac/Eto.Test.Mac64.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>

<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props"/>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />

<Import Project="..\..\build\MSBuildTaskHelper.props" Condition="'$(MSBuildTaskHelpersImported)'!='true'"/>
<Import Project="..\..\build\MSBuildTaskHelper.props" Condition="'$(MSBuildTaskHelpersImported)'!='true'" />
<Import Project="..\..\src\Eto.Mac\build\Mac.props" Condition="'$(ExcludeRestorePackageImports)' != 'true'" />

<PropertyGroup>
Expand All @@ -24,13 +24,13 @@
<ProjectReference Include="..\..\lib\monomac\src\MonoMac.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>

<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets"/>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />

<Import Project="..\..\src\Eto.Mac\build\Mac.targets" Condition="'$(ExcludeRestorePackageImports)' != 'true'" />

Expand Down
2 changes: 1 addition & 1 deletion test/Eto.Test.Mac/Eto.Test.XamMac2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<ProjectReference Include="..\..\src\Eto.Mac\Eto.XamMac2.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
</ItemGroup>
<ItemGroup>
<Content Include="TestIcon.icns" />
Expand Down
2 changes: 1 addition & 1 deletion test/Eto.Test.WinForms/Eto.Test.WinForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0">
<PackageReference Include="NUnit" Version="3.12.0">
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/Eto.Test.Wpf/Eto.Test.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0">
<PackageReference Include="NUnit" Version="3.12.0">
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions test/Eto.Test/Eto.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<ProjectReference Include="..\..\src\Eto.Serialization.Json\Eto.Serialization.Json.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="System.Diagnostics.Process" Version="4.3.0" />
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<None Remove="Sections\Serialization\Xaml\Test.xeto" />
Expand Down

0 comments on commit 38af1af

Please sign in to comment.