-
Notifications
You must be signed in to change notification settings - Fork 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
net48 requires explicit references to framework assemblies #15480
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
What is your goal, are you referencing these assemblies in your code? If so, you probably want to use nuget packages instead of direct references to the dlls |
My goal is to port an application from net48 to net5 while at the same time keeping the net48 targeting until net5 is done and the net48 generation is phased out. I have a theory the problem can be thirdparty assembly references that not yet has not moved to net core. This problem only occurs on WPF targeting assemblies. I would have expected this to be problematic for net5 but it is the net48 that complains... I will validate my claims on monday when I can study the sources. |
also these explicitly refered net48 assemblies are part of net48 and as such should not have to be specified.. |
basically symmetry is expected and this have a "arbitrary" touch to it until explained. |
@wli3 is this expected for net framework or is something off here? |
This is expected. Some API will not be available in core dotnet/core#838. The goal of net5 is not 100% compatible with net48. If you need to maintain both net48, and net5.0, you need to use the common set of APIs (like netstandard2.0) with help of nuget package (some API available in net48 are shipped separately as nuget packages). Or you need to compile conditionally. |
But the apis are available in both net5 and net48... It is only 48 requiring tinkering. |
@JensNordenbro could you give me an API example |
I will try; huge project though... all i have is the dll:s mentioned. Also I will try to upgrade to net6-preview1. I wil get back to you! |
We will go with the NuGet route for now regarding the extra references. |
When building a project for net48 target we had to explicitly add assemblies that we did not have to do for net5.
It expect that symmetry applies or that this is documented (maybe it is?!)
This subset of a csproj comes from a multitargeting application:
The text was updated successfully, but these errors were encountered: