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

RFEMWebServiceLibrary not loading in NET7 / NET8 #50

Open
michaelvantelgen-work opened this issue Jan 3, 2024 · 2 comments
Open

RFEMWebServiceLibrary not loading in NET7 / NET8 #50

michaelvantelgen-work opened this issue Jan 3, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@michaelvantelgen-work
Copy link
Contributor

Hi all,

It looks like RFEMWebServiceLibrary is not loading well in .NET 7 / .NET 8 libraries:

image

The message reads:

Package 'Dlubal.RFEMWebServiceLibrary 6.4.13' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.

I was also unable to get the RFEMWebServiceLibrary to compile in .NET 8 to resolve this issue. See this PR.

Can anyone provide assistance?

Thank you!

@michaelvantelgen-work michaelvantelgen-work added help wanted Extra attention is needed question Further information is requested labels Jan 3, 2024
@NathanMSY
Copy link

I had a similar problem with .NET 6. The defined dependencies of the RFEMWebServiceLibrary seem to be the problem in my case as they are too specific:

2024-01-11 11_54_37-MSYConfigurator - Microsoft Visual Studio

In my case, the target framework of my app was "NET6.0" but the Target-Framework of the RFEM Library is "net6.0-windows10.0.22621". I manually changed the target framework of my app to match the one the RFEM library needs and no issues anymore.
Maybe this helps.

@michaelvantelgen-work
Copy link
Contributor Author

Hi @NathanMSY, thank you for your insights. I used a similar approach where I ended up importing the RFEMWebServiceLibrary as a local reference rather through NuGet.

However, compiling the library directly in .NET 8 failed do to unclear reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants