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

TargetFramework issue with other packages #40

Open
MSelmanSavas opened this issue Sep 10, 2022 · 1 comment
Open

TargetFramework issue with other packages #40

MSelmanSavas opened this issue Sep 10, 2022 · 1 comment

Comments

@MSelmanSavas
Copy link

When installed with given instructions, opening c# project of a unity project with vscode, it gives primary referenced version of framework is 4.8 but package target framework is 4.7.1, it could not be resolved error. While the project and omnisharp works fine after loading, it gives some projects have trouble loading error.

Would this type of error affect builds or is there any way to make UnityEngineInternals with target framework 4.7.1 for all other packages to work with it?

@franciscunha
Copy link

I'm having the same problem. For reference, this is the Omnisharp log

C:\Program Files\dotnet\sdk\7.0.201\Microsoft.Common.CurrentVersion.targets(2352,5): Error: The primary reference "TypeReferences" could not be resolved because it has an indirect dependency on the assembly "UnityEditorInternals, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.8" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.7.1".
C:\Program Files\dotnet\sdk\7.0.201\Microsoft.Common.CurrentVersion.targets(2352,5): Error: The primary reference "TypeReferences.Editor" could not be resolved because it has an indirect dependency on the assembly "UnityEditorInternals, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.8" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.7.1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants