Skip to main content
1-Visitor
November 19, 2021
Question

VB Api program convert from .NET framework to .NET 5.0

  • November 19, 2021
  • 1 reply
  • 2757 views

Hello,

I wanted to upgrade my VB.NET program from framework to .NET 5.0

 

After upgrading with the converter from Microsoft I have the problem, that some classes are not casted correct.

For example I get error: Public member 'CurrentModel' on type 'IDpfcSession' not found

for line: ...asyncConnection.Session.CurrentModel

 

Does anybody has a solution?

 

Thank you!

1 reply

17-Peridot
November 23, 2021

Did you mean that you want to update the program from VB.NET to C# .NET 5.0 ?

Or just update version .NET libraries?

1-Visitor
November 23, 2021

i want to upgrade from VB .NET framework 4.X to VB .NET 5.0(6.0) if it works.

A switch to C# is planned on the long run, but not at the moment

1-Visitor
November 24, 2021

i switched to Creo 8 before and the code was working. But i now realized this kind of problem with also classes also, lige excel.workbook.cells is casted to range and not excel.range. It seems, like its not creo specific. But i don't know from where it comes.