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

Warning BC40057 in FakeItEasy.IntegrationTests.VB when TargetFramework is netcoreapp1.0 #1197

Closed
thomaslevesque opened this issue Sep 13, 2017 · 1 comment

Comments

@thomaslevesque
Copy link
Member

The full error message is:

Namespace or type specified in the project-level Imports 'System.Data' doesn't contain any public member or cannot be found

This project-level import comes from Microsoft.NET.Sdk.VisualBasic.targets in %ProgramFiles%\dotnet\sdk\1.0.4\Sdks\Microsoft.NET.Sdk\build, which unconditionally imports System.Data. But in .NET Core 1.0, there's no System.Data... This problem appears to be fixed in the 2.0.0 SDK (we should probably consider switching to that version, btw).

I tried to add <Import Remove="System.Data" /> in an <ItemGroup>, but it has no effect.

@thomaslevesque
Copy link
Member Author

We're in a rather uncomfortable position right now with regard to VB projects; VS2017 15.3 supports SDK-style VB projects, but the .NET Core SDK we're using (1.0.3) doesn't. Which means msbuild (the one that ships with VS) can build the project, but dotnet build cannot, because it can't find vbc.exe...

I think this problem is fixed in the 2.0.0 SDK.

@blairconrad blairconrad added the P3 label Oct 19, 2017
@blairconrad blairconrad added this to the vNext milestone Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants