{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/9046","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/9046/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/9046/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/9046/events","html_url":"https://github.com/aspnet/EntityFramework/issues/9046","id":240030100,"number":9046,"title":"[2.0 provider] Unable to run EF Core specifications tests in .NET 4.6.1 class library","user":{"login":"ErikEJ","id":4169187,"avatar_url":"https://avatars0.githubusercontent.com/u/4169187?v=3","gravatar_id":"","url":"https://api.github.com/users/ErikEJ","html_url":"https://github.com/ErikEJ","followers_url":"https://api.github.com/users/ErikEJ/followers","following_url":"https://api.github.com/users/ErikEJ/following{/other_user}","gists_url":"https://api.github.com/users/ErikEJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikEJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikEJ/subscriptions","organizations_url":"https://api.github.com/users/ErikEJ/orgs","repos_url":"https://api.github.com/users/ErikEJ/repos","events_url":"https://api.github.com/users/ErikEJ/events{/privacy}","received_events_url":"https://api.github.com/users/ErikEJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-02T19:39:03Z","updated_at":"2017-07-03T17:07:02Z","closed_at":null,"body":"Trying to run functional tests with preview2 from a .NET 4.6.1 class library (SQLCE functional tests)\r\n```\r\nException message:\r\n     System.IO.FileLoadException : Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n      Stack Trace:\r\n           at Microsoft.EntityFrameworkCore.Metadata.Internal.TableMapping.GetTableMappings(IModel model)\r\n```\r\nThis is blocking me from updating the SQLCE EF Core provider to EF Core 2.0\r\n\r\n### Steps to reproduce\r\nRun the functional tests:\r\n ..\\..\\packages\\xunit.runner.console.2.2.0\\tools\\xunit.console.exe bin\\Debug\\EntityFramework.SqlServerCompact.Legacy.FunctionalTests.dll\r\n\r\n### Further technical details\r\nEF Core version: 2.0 preview2 (from Nuget.org feed)\r\nDatabase Provider: SQL CE\r\nOperating system: Win 10 1703\r\nIDE: VS 2017 15.3 preview 3\r\n\r\nBranch: https://github.com/ErikEJ/EntityFramework.SqlServerCompact/tree/prev2-prep "},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/312695743","html_url":"https://github.com/aspnet/EntityFramework/issues/9046#issuecomment-312695743","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/9046","id":312695743,"user":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars1.githubusercontent.com/u/1226749?v=3","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T17:07:02Z","updated_at":"2017-07-03T17:07:02Z","body":"That's more than necessary. You can use \"old\" csproj just with `PackageReference` items instead of `Reference` items.\r\n\r\nFor example, instead of this...\r\n```XML\r\n<ItemGroup>\r\n    <Reference Include=\"Microsoft.EntityFrameworkCore.Relational.Specification.Tests, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL\">\r\n      <HintPath>..\\..\\packages\\Microsoft.EntityFrameworkCore.Relational.Specification.Tests.2.0.0-preview2-25099\\lib\\net46\\Microsoft.EntityFrameworkCore.Relational.Specification.Tests.dll</HintPath>\r\n    </Reference>\r\n    <!-- (and it's dozens of dependencies) -->\r\n</ItemGroup>\r\n```\r\n...you can delete the `packages.config` file and change to this:\r\n```XML\r\n<ItemGroup>\r\n    <PackageReference Include=\"Microsoft.EntityFrameworkCore.Relational.Specification.Tests\">\r\n      <Version>2.0.0-preview2-25099</Version>\r\n    </Reference>\r\n```"}}
{"actor":{"display_login":"bricelam"}}