Visual Studio keeps saying my Autodesk.Revit.Atrributes.Transaction is a duplicate attribute.

Visual Studio keeps saying my Autodesk.Revit.Atrributes.Transaction is a duplicate attribute.

anefzger
Participant Participant
247 Views
2 Replies
Message 1 of 3

Visual Studio keeps saying my Autodesk.Revit.Atrributes.Transaction is a duplicate attribute.

anefzger
Participant
Participant

Hello, 

I am transitioning my team to Revit 2025 and I am running into a problem where the code we use to stop a pop up is not loading properly into the new program. I have had no problem with it since Revit 2020. Now visual studio keeps saying when I terminal build that the two items at the beginning, Autodesk.Revit.Attributes.Transaction and Autodesk.Revit.DB.Macros.AddInId are duplicate attributes and are preventing me from building this code in the new program. I have shared the text file of the code for reference and debugging. I have also attached the warnings I received when building the code. Any help would be appreciated greatly. 

Thanks, 

anefzger_0-1742419474888.png

 

0 Likes
248 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

It says "public partial class ThisApplication".  Where are the other parts?

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

anefzger
Participant
Participant

The AddInId and Transaction items have been removed for safety. I did not think there were other parts other than what I have included in my text document. public partial class is the standard set up information from I have seen from the documents. What other parts would I need? 

0 Likes