Hi! I wanted to contribute to RPS by creating the installer for Revit2020, but my OCD didn't let me stop there, so I did a few additions to make it easier for Revit 2021 and those to come.
Migrated csproj to the new sdk format
Referenced Revit API dlls from nuget (removed them from RequiredLibraries)
Addin file generated from a template at compile time, making it easier to debug. This makes it easier to modify the addin properties if required from the Projects>Properties>Package panel.
ISS files are generated when compiling in Release mode, also generated from a template.
Modified installation and appdata folders to be RevitPythonShell\{REVIT_VERSION}, just to match the addin's folder structure (this one can be reverted if needed).
I wanted to reference as many libraries from nuget instead of RequiredLibraries, but the majority are not valid for .Net 4.0 so started to get too many errors and runtime exceptions. If support for Revit2014 can be dropped, this could be done I think.
I also think there might be legacy files and folders that are not needed anymore, but didn't want to intrude too much 😅
Hi! I wanted to contribute to RPS by creating the installer for Revit2020, but my OCD didn't let me stop there, so I did a few additions to make it easier for Revit 2021 and those to come.
RequiredLibraries
)Projects>Properties>Package
panel.Release
mode, also generated from a template.RevitPythonShell\{REVIT_VERSION}
, just to match the addin's folder structure (this one can be reverted if needed).I wanted to reference as many libraries from nuget instead of
RequiredLibraries
, but the majority are not valid for .Net 4.0 so started to get too many errors and runtime exceptions. If support for Revit2014 can be dropped, this could be done I think.I also think there might be legacy files and folders that are not needed anymore, but didn't want to intrude too much 😅