WPF and AdWindows.dll Revit 2025

WPF and AdWindows.dll Revit 2025

sonicer
Collaborator Collaborator
500 Views
4 Replies
Message 1 of 5

WPF and AdWindows.dll Revit 2025

sonicer
Collaborator
Collaborator

I have in project wpf form and added reference Adwindows.dll (ver : 5.1.2.1)from Revit 2025.

It make error :

Error (active) CS0103 The name 'InitializeComponent' does not exist in the current context :
If I use Adwindows.dll(ver : 5.0.3.1) from Revit 2024 ...work.

 

Any solution?

 

thx.

 

0 Likes
501 Views
4 Replies
Replies (4)
Message 2 of 5

moturi.magati.george
Autodesk
Autodesk

Hi @sonicer,

I think the problem might come up on which .NET framework you are using. Make sure for Revit 2025 it is .NET 8.0

  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes
Message 3 of 5

XARMA
Advocate
Advocate

Hi, Sir!
In the VisualStudio .Net 4.8, I could add WPF at just SolutionExproler but, How Can I add WPF in .net8.0??? 

0 Likes
Message 4 of 5

Mohamed_Arshad
Advisor
Advisor

Hi @XARMA 

We have already resolved this issue, Kindly check the below link for additional reference.

Solved: Create UI for Revit 2025 based .Net 8 - Autodesk Community


Mohamed Arshad K
Software Developer (CAD & BIM)

Message 5 of 5

XARMA
Advocate
Advocate

Thank you~!!!!