Made a few more changes since we have new tooling

- Remove runtime interface declarations and use
  Microsoft.Net.Runtime.Interfaces package
- Made tests compile for net45 and made default
  intellisense view net45 for unit tests since Moq
  doesn't work
This commit is contained in:
David Fowler 2014-04-09 01:10:07 -07:00
parent a970fa04ab
commit b1fd5cc689
17 changed files with 7 additions and 127 deletions

View File

@ -162,12 +162,6 @@
<Compile Include="RouteConstraintAttribute.cs" />
<Compile Include="RouteDataActionConstraint.cs" />
<Compile Include="RouteKeyHandling.cs" />
<Compile Include="Services\AssemblyNeutralAttribute.cs" />
<Compile Include="Services\ILibraryExport.cs" />
<Compile Include="Services\ILibraryInformation.cs" />
<Compile Include="Services\ILibraryManager.cs" />
<Compile Include="Services\IMetadataReference.cs" />
<Compile Include="Services\ISourceReference.cs" />
<Compile Include="TemplateInfo.cs" />
<Compile Include="UrlHelper.cs" />
<Compile Include="UrlHelperExtensions.cs" />

View File

@ -1,11 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public class AssemblyNeutralAttribute : Attribute { }
}

View File

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface ILibraryExport
{
IList<IMetadataReference> MetadataReferences { get; }
IList<ISourceReference> SourceReferences { get; }
}
}

View File

@ -1,12 +0,0 @@
using System.Collections.Generic;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface ILibraryInformation
{
string Name { get; }
IEnumerable<string> Dependencies { get; }
}
}

View File

@ -1,16 +0,0 @@
using System.Collections.Generic;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface ILibraryManager
{
ILibraryExport GetLibraryExport(string name);
IEnumerable<ILibraryInformation> GetReferencingLibraries(string name);
ILibraryInformation GetLibraryInformation(string name);
IEnumerable<ILibraryInformation> GetLibraries();
}
}

View File

@ -1,9 +0,0 @@

namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface IMetadataReference
{
string Name { get; }
}
}

View File

@ -1,7 +0,0 @@
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface ISourceReference
{
}
}

View File

@ -6,7 +6,8 @@
"Microsoft.AspNet.Abstractions": "0.1-alpha-*",
"Microsoft.AspNet.Routing": "0.1-alpha-*",
"Common": "",
"Microsoft.AspNet.Mvc.ModelBinding": ""
"Microsoft.AspNet.Mvc.ModelBinding": "",
"Microsoft.Net.Runtime.Interfaces": "0.1-alpha-*"
},
"configurations": {
"net45": {},

View File

@ -40,9 +40,6 @@
<Compile Include="RazorViewOfT.cs" />
<Compile Include="Razor\IRazorCompilationService.cs" />
<Compile Include="Razor\RazorCompilationService.cs" />
<Compile Include="Services\IApplicationEnvironment.cs" />
<Compile Include="Services\IAssemblyLoaderEngine.cs" />
<Compile Include="Services\IMetadataFileReference.cs" />
<Compile Include="Services\IRoslynMetadataReference.cs" />
<Compile Include="ViewEngine\IVirtualPathViewFactory.cs" />
<Compile Include="ViewEngine\RazorViewEngine.cs" />

View File

@ -1,14 +0,0 @@
using System;
using System.Runtime.Versioning;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface IApplicationEnvironment
{
string ApplicationName { get; }
string Version { get; }
string ApplicationBasePath { get; }
FrameworkName TargetFramework { get; }
}
}

View File

@ -1,11 +0,0 @@
using System.Reflection;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface IAssemblyLoaderEngine
{
Assembly LoadFile(string path);
Assembly LoadBytes(byte[] assemblyBytes, byte[] pdbBytes);
}
}

View File

@ -1,9 +0,0 @@

namespace Microsoft.Net.Runtime
{
[AssemblyNeutral]
public interface IMetadataFileReference : IMetadataReference
{
string Path { get; }
}
}

View File

@ -11,7 +11,8 @@
"Microsoft.CodeAnalysis.Common" : "0.7-beta-*",
"Microsoft.CodeAnalysis.CSharp" : "0.7-beta-*",
"System.Reflection.Metadata.Ecma335": "0.7-beta-*",
"Microsoft.Bcl.Immutable": "1.1.18-beta-*"
"Microsoft.Bcl.Immutable": "1.1.18-beta-*",
"Microsoft.Net.Runtime.Interfaces": "0.1-alpha-*"
},
"configurations": {
"net45": {

View File

@ -8,6 +8,7 @@
<PropertyGroup Label="Globals">
<ProjectGuid>a8aa326e-8ee8-4f11-b750-23028e0949d7</ProjectGuid>
<OutputType>Library</OutputType>
<ActiveTargetFramework>net45</ActiveTargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
</PropertyGroup>

View File

@ -8,6 +8,7 @@
<PropertyGroup Label="Globals">
<ProjectGuid>3b8dc0c0-6c55-4034-ad96-de1000928e6b</ProjectGuid>
<OutputType>Library</OutputType>
<ActiveTargetFramework>net45</ActiveTargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
</PropertyGroup>

View File

@ -25,21 +25,6 @@
"System.Reflection": "",
"System.Runtime.Serialization": ""
}
},
"k10" : {
dependencies: {
"System.Collections": "4.0.0.0",
"System.ComponentModel": "4.0.0.0",
"System.Globalization": "4.0.10.0",
"System.Linq": "4.0.0.0",
"System.Reflection": "4.0.10.0",
"System.Runtime": "4.0.20.0",
"System.Runtime.Extensions": "4.0.10.0",
"System.Runtime.Serialization.Primitives": "4.0.0.0",
"System.Threading": "4.0.0.0",
"System.Threading.Tasks": "4.0.10.0",
"System.Threading.Thread": "4.0.0.0"
}
}
}
}

View File

@ -8,6 +8,7 @@
<PropertyGroup Label="Globals">
<ProjectGuid>3f6e355e-4869-41d9-943b-d54771221a7f</ProjectGuid>
<OutputType>Library</OutputType>
<ActiveTargetFramework>net45</ActiveTargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
</PropertyGroup>