build the DLL from a build server

build the DLL from a build server

avpBS7DE
Contributor Contributor
640 Views
3 Replies
Message 1 of 4

build the DLL from a build server

avpBS7DE
Contributor
Contributor

Dear RevitAPI,

I currently build my solution (external application kind of addin) on the same computer where Revit 2021 is installed. Either from VS or dotnet build.

If I delegated this build on a windows server (or windows docker image) .... what .DLLs would I need to do it ? or what should I install over there ? Is there a light version of Revit install - just for build servers ?

Thank you

0 Likes
641 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

All you need are the Revit API .NET assembly DLLs.

  

They all live in the same folder as Revit.exe, and most if not all of them are named *API*.dll.

   

You can simply check your add-in .NET references to see which Revit API .NET assembly DLLs it is using.

   

All you need to do to compile your add-inis to copy those DLLs to the build server.

 

Nothing else is needed.

 

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

perry.swoboda
Advocate
Advocate

We run our addin build in GitLab and created a nuget package with AdWindows.dll, RevitApi.dll, RevitAPIIFC.dll, and RevitAPIUI.dll, locally hosted it with jFrog, and then had our addin reference the nuget package.  A little work to set up, but now we cloud build.

And we have to occasionally update our Revit nuget when Autodesk updates the dlls.  Overall worth the effort.

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

Yes, that makes total sense. I believe several other developers are doing the same, and some such NuGet packages containing the Revit API .NET assembly DLLs are publicly accessible. I am in discussion with the Revit development team, asking them to implement some official access.

 

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