Skip to content

.Net Core #5

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

Merged
merged 1 commit into from
Sep 2, 2016
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Xunit;

namespace StructureMap.Testing.Acceptance
namespace StructureMap.DynamicInterception.Testing
{
public class DynamicProxyInterceptorAcceptanceTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StructureMap.DynamicInterception.Testing")]
[assembly: AssemblyTrademark("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e799a9c9-48b8-45fd-b23a-439e9653049c")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>e799a9c9-48b8-45fd-b23a-439e9653049c</ProjectGuid>
<RootNamespace>StructureMap.DynamicInterception.Testing</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
28 changes: 28 additions & 0 deletions src/StructureMap.DynamicInterception.Testing/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable"
},
"dependencies": {
"System.Runtime.Serialization.Primitives": "4.1.1",
"xunit": "2.2.0-beta2-build3300",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Shouldly": "2.8.1",
"StructureMap.DynamicInterception": { "target": "project" }
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
},
"imports": [
"dotnet5.4",
"portable-net451+win8"
]
}
}
}
33 changes: 33 additions & 0 deletions src/StructureMap.DynamicInterception.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "StructureMap.DynamicInterception", "StructureMap.DynamicInterception\StructureMap.DynamicInterception.xproj", "{71072204-985A-45E5-A7ED-7EB970EF4515}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "StructureMap.DynamicInterception.Testing", "StructureMap.DynamicInterception.Testing\StructureMap.DynamicInterception.Testing.xproj", "{E799A9C9-48B8-45FD-B23A-439E9653049C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{13872EEB-8842-4315-A97F-9D7760ADC655}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{71072204-985A-45E5-A7ED-7EB970EF4515}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71072204-985A-45E5-A7ED-7EB970EF4515}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71072204-985A-45E5-A7ED-7EB970EF4515}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71072204-985A-45E5-A7ED-7EB970EF4515}.Release|Any CPU.Build.0 = Release|Any CPU
{E799A9C9-48B8-45FD-B23A-439E9653049C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E799A9C9-48B8-45FD-B23A-439E9653049C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E799A9C9-48B8-45FD-B23A-439E9653049C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E799A9C9-48B8-45FD-B23A-439E9653049C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/StructureMap.DynamicInterception/ReflectionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static bool IsNonGenericTask(Type type)

public static bool IsGenericTask(Type type)
{
return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Task<>);
return type.GetTypeInfo().IsGenericType && type.GetGenericTypeDefinition() == typeof(Task<>);
}

public static async Task ConvertInvocationResultToTask(IMethodInvocationResult methodInvocationResult)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>71072204-985a-45e5-a7ed-7eb970ef4515</ProjectGuid>
<RootNamespace>StructureMap.DynamicInterception</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
1 change: 0 additions & 1 deletion src/StructureMap.DynamicInterception/paket.references

This file was deleted.

21 changes: 21 additions & 0 deletions src/StructureMap.DynamicInterception/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "1.0.0-*",
"title": "StructureMap.DynamicInterception",
"dependencies": {
"Castle.Core": "4.0.0-beta001",
"StructureMap": "4.3.0"
},
"frameworks": {
"net45": {
"dependencies": {
}
},
"netstandard1.3": {
"dependencies": {
"System.Collections.Concurrent": "4.0.12",
"System.Reflection.TypeExtensions": "4.1.0",
"NETStandard.Library": "1.6.0"
}
}
}
}
6 changes: 6 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"projects": [
"StructureMap.DynamicInterception",
"StructureMap.DynamicInterception.Testing"
]
}