Build error for a revit plugin

Build error for a revit plugin

balachandar_vVF4MG
Participant Participant
367 Views
2 Replies
Message 1 of 3

Build error for a revit plugin

balachandar_vVF4MG
Participant
Participant

a revit plugin build for revit 2020 version which is migrated to 2025 , getting this error while building the solution. Someone kindly help me to sort out this error 


Unknown build error, 'Could not load type 'System.Security.SecurityRulesAttribute' from assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.' SWS_MODRENUI
 
Screenshot 2025-04-18 102755.png

 

 
 

 

 
0 Likes
Accepted solutions (1)
368 Views
2 Replies
Replies (2)
Message 2 of 3

Mohamed_Arshad
Advisor
Advisor

Hi @balachandar_vVF4MG 

Please share your project, or compare your csproj with attached project.

 

RibbonBimStarter/RibbonBimStarter/RibbonBimStarter.csproj at palette2 · Tereami/RibbonBimStarter · G...

Hope this will Help 🙂


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 3 of 3

TripleM-Dev.net
Advisor
Advisor
Accepted solution

Try removing the reference and adding it from .NET Core 8 available assemblies.

Maybe wrong version (references 4.1.2.0 for System.Runtime, thats I think the .NET Framework version)

0 Likes