Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps, reduce targets, incr major vers #37

Merged
merged 18 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: [2.1.802]
dotnet: [ '6.0.x' ]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/dotnet48.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build CrossComple .net core/.net framework Windows

on: [push]

jobs:
build:
name: Test Windows .net Framework Only
runs-on: windows-2019
steps:

- uses: actions/checkout@v2

- name: Setup NuGet
uses: NuGet/[email protected]

- name: setup-msbuild
uses: microsoft/[email protected]

- name: Restore Packages
run: nuget restore Dynamitey.sln
- name: Build solution
run: msbuild Dynamitey.sln -t:rebuild -property:Configuration=Release
- name: Run vstests
uses: microsoft/[email protected]
with:
testAssembly: Tests.dll
searchFolder: .\Tests\bin\Release\*\
runInParallel: true
otherConsoleOptions: /TestCaseFilter:"(TestCategory!=Performance)"
platform: x64
13 changes: 9 additions & 4 deletions Dynamitey.sln
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.9
# Visual Studio Version 17
VisualStudioVersion = 17.7.34202.233
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{691EBA79-CAA4-4670-BC8B-4537F990ADBF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{C33F07DB-7ACB-4081-92C2-BB739CB605C0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "Tests\Tests.csproj", "{C33F07DB-7ACB-4081-92C2-BB739CB605C0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SupportLibrary", "SupportLibrary\SupportLibrary.csproj", "{18E19833-D47E-4A7F-AE64-31E28FEF8728}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SupportLibrary", "SupportLibrary\SupportLibrary.csproj", "{18E19833-D47E-4A7F-AE64-31E28FEF8728}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dynamitey", "Dynamitey\Dynamitey.csproj", "{8902AFBA-4ACA-4880-B606-ADEC6BB21A1B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3535FA34-121F-4DEB-97C5-4A90E54AEE94}"
ProjectSection(SolutionItems) = preProject
Version.props = Version.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
1 change: 1 addition & 0 deletions Dynamitey.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=DB/@EntryIndexedValue">DB</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SL/@EntryIndexedValue">SL</s:String>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EdotCover_002EIde_002ECore_002EFilterManagement_002EModel_002ESolutionFilterSettingsManagerMigrateSettings/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/FilterSettingsManager/CoverageFilterXml/@EntryValue">&lt;data&gt;&lt;IncludeFilters /&gt;&lt;ExcludeFilters /&gt;&lt;/data&gt;</s:String>
<s:String x:Key="/Default/FilterSettingsManager/AttributeFilterXml/@EntryValue">&lt;data /&gt;</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Cacheable/@EntryIndexedValue">True</s:Boolean>
Expand Down
17 changes: 16 additions & 1 deletion Dynamitey/DynamicObjects/ExtensionToInstanceProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,22 @@ public override bool TryInvokeMember(System.Dynamic.InvokeMemberBinder binder, o

}catch(RuntimeBinderException)
{
types = null;
try
{
IList<Type> typeList = Dynamic.InvokeGet(binder,
"TypeArguments");
if (typeList != null)
{

types = typeList.ToArray();

}

}
catch (RuntimeBinderException)
{
types = null;
}
}

var name=InvokeMemberName.Create;
Expand Down
20 changes: 1 addition & 19 deletions Dynamitey/Dynamitey.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard1.5;net40;portable-net45+sl5+win8+wp8</TargetFrameworks>
<TargetFrameworks Condition="'$(WithoutCrossCompile)' != ''">netstandard2.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net40</TargetFrameworks>
<Description>(pronounced dyna-mighty) flexes DLR muscle to do meta-mazing things in .net</Description>
<Company>Ekon Benefits</Company>
<Authors />
Expand All @@ -23,11 +22,6 @@
<Import Project="..\Version.props" />


<ItemGroup Condition="'$(TargetFramework)'=='netstandard1.5'">
<PackageReference Include="Microsoft.CSharp" Version="4.*" />
<PackageReference Include="System.ComponentModel" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="Microsoft.CSharp" Version="4.*" />
<PackageReference Include="System.ComponentModel" Version="4.3.0" />
Expand All @@ -36,10 +30,6 @@
<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='portable-net45+sl5+win8+wp8'">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>


<ItemGroup>
Expand All @@ -57,9 +47,6 @@
</None>
</ItemGroup>

<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>

<ItemGroup>
<Compile Update="InlineLambdas.cs">
Expand All @@ -79,10 +66,5 @@
</Compile>
</ItemGroup>

<ItemGroup>
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.5" PrivateAssets="all" />
</ItemGroup>

<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />

</Project>
4 changes: 2 additions & 2 deletions SupportLibrary/SupportLibrary.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Collections" Version="4.3.0" />
<PackageReference Include="System.Runtime" Version="4.3.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Tests/DynamicObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace Dynamitey.Tests
{
[TestFixture]
public class DynamicObjs : AssertionHelper

Check warning on line 18 in Tests/DynamicObjects.cs

View workflow job for this annotation

GitHub Actions / Test ubuntu-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'

Check warning on line 18 in Tests/DynamicObjects.cs

View workflow job for this annotation

GitHub Actions / Test windows-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'

Check warning on line 18 in Tests/DynamicObjects.cs

View workflow job for this annotation

GitHub Actions / Test macOS-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'
{


Expand Down Expand Up @@ -573,7 +573,7 @@
}


#if !NETCOREAPP2_0
#if !NET6_0_OR_GREATER

[Test]
public void TestCodeDomLateTypeBind()
Expand Down
2 changes: 1 addition & 1 deletion Tests/Invoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

namespace Dynamitey.Tests
{
public class Invoke:AssertionHelper

Check warning on line 17 in Tests/Invoke.cs

View workflow job for this annotation

GitHub Actions / Test windows-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'
{
[TestFixtureTearDown]
[OneTimeTearDown]
public void DestroyCaches()
{
Dynamic.ClearCaches();
Expand Down
13 changes: 2 additions & 11 deletions Tests/Linq.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
#if !NETCOREAPP2_0
using IronPython.Hosting;
using Microsoft.Scripting;
#endif

namespace Dynamitey.Tests
{
[TestFixture]
public class Linq : AssertionHelper

Check warning on line 15 in Tests/Linq.cs

View workflow job for this annotation

GitHub Actions / Test windows-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'
{


Expand All @@ -37,7 +36,7 @@
Assert.AreEqual(expected, actual);

}
#if !NETCOREAPP2_0

private dynamic RunPythonHelper(object linq, string code)
{

Expand All @@ -53,15 +52,7 @@
tCompiled.Execute(tScope);
return tScope.GetVariable("result");
}
#else
private dynamic RunPythonHelper(object linq, string code)
{


Assert.Ignore("Iron Python Doesn't work on .net core");
return new object();
}
#endif



Expand Down
12 changes: 0 additions & 12 deletions Tests/Program.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Tests/SpeedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
{
[TestFixture]
[Category("Performance")]
public class SpeedTest:AssertionHelper

Check warning on line 14 in Tests/SpeedTest.cs

View workflow job for this annotation

GitHub Actions / Test ubuntu-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'

Check warning on line 14 in Tests/SpeedTest.cs

View workflow job for this annotation

GitHub Actions / Test macOS-latest for dotnet 6.0.x

'AssertionHelper' is obsolete: 'The AssertionHelper class has been deprecated and will be removed in a future release. Please consider using the NUnit.StaticExpect NuGet package instead.'
{
[TestFixtureSetUp]
[OneTimeSetUp]
public void WarmUpDlr()
{
Dynamic.InvokeMember(1, "ToString");
Expand Down
28 changes: 12 additions & 16 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net462</TargetFrameworks>
<TargetFrameworks Condition="'$(WithoutCrossCompile)' != ''">netcoreapp2.0</TargetFrameworks>
<OutputType Condition="'$(TargetFramework)'!='netcoreapp2.0'">Exe</OutputType>
<IsPackable>false</IsPackable>
<TargetFrameworks>net6;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ImpromptuInterface" Version="7.0.1-alpha20" />
<PackageReference Include="ImpromptuInterface" Version="7.0.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
<PackageReference Include="NUnit" Version="3.7.1" />
<PackageReference Include="FSharp.Core" Version="4.2.*" />
<PackageReference Include="Moq" Version="4.7.*" />
<PackageReference Include="NUnit.Console" Version="3.7.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.4.0" />
</ItemGroup>
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="FSharp.Core" Version="4.7.2" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="NUnit.Console" Version="3.16.3" />
<PackageReference Include="IronPython" Version="2.7.12" />

<ItemGroup Condition="'$(TargetFramework)'!='netcoreapp2.0'">
<PackageReference Include="IronPython" Version="2.7.7" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
<PackageReference Include="NUnit3TestAdapter" Version="3.8.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.*" />

<ItemGroup >
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>2.0.10</VersionPrefix>
<VersionPrefix>3.0.2</VersionPrefix>
</PropertyGroup>
</Project>
Loading