-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Get three warnings when you add an incompatible project reference from a legacy project system -> new project system #266
Comments
This is done. |
Does "This is done" mean the problem is fixed? Because its happening in the RTW for VS2017. Adding a HintPath for the project reference helps it sometimes. |
yep same here. I'm just getting one warning though. "cannot be referenced. The referenced project is targeted to a different framework family (.NETCoreApp)" The library appears to be working though. |
@srivatsn - "Done" means "still not working" or "wont fix"? I cant project reference a POCO library thats multi targeted from a framework app. I have to assembly reference its compiled location to make this work, but that's not going to work again once I change the solution configuration. |
What frameworks does your library target? From the screenshot it sounds like atleast one of the targets is netcore which cannot be referenced by a framework app. You need to target netstandard to be able to reference the library from a framework project. |
you could also target net itself rather than netstandard |
I had it targeting netcoreapp1.1 (because it does that out-of-the-box). I changed it to this and had to restart VS a few times to get it to load properly. I still have to restart VS periodically when this gets "stuck" like the above image..
|
Needing to reload the project (I don't think you need a full VS reload) is a race condition in MSBuild\CPS that are tracking down. If you close and reopen the solution and if it still fails then it's a bug that we should investigate. |
Also as for the default TFM in VS there are two templates a .NET Core one and a .NET Standard one - see the discussion here for reasons - dotnet/project-system#1909 |
Installing only 1.1 cli for linux
Add a reference from a legacy csproj targeting .NET Framework 4.5.2 -> .NET Core project, and you get the following warnings:
The text was updated successfully, but these errors were encountered: