chuongmep/RevitAddInManager

Milti version config

Nice3point opened this issue · 15 comments

<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="2022.1.0" />

The project only compiles under the 2022 version of Revit, the Readme says support until 2014, you need to add the solution and project configurations for this:
https://github.com/Nice3point/RevitTemplates/blob/main/Templates/Nice3point.Revit.AddIn/Nice3point.Revit.AddIn.csproj
https://github.com/Nice3point/RevitTemplates/wiki/Multiple-Revit-Versions

you added project configs 19 to 22 but solution config is still set to 22

<RevitVersion>2022</RevitVersion>

this property should not be at the beginning, and the libraries version is still 2022)

@Nice3point may be have problem when we use some number after to build version
image

And for the Nuget package, the version number changes to this:
<PackageReference Include="Revit_All_Main_Versions_API_x64" Version="$(RevitVersion).*" />

Nuke will build a dll for each such solution configuration, and then this file will not be needed https://github.com/chuongmep/RevitAddInManager/blob/dev/Installer/BuildVersions.cs

You can still use the Revit_All_Main_Versions_API_x64 library, you don't have to change it at all 😉

hmm. Let me check fist with that,
image

изображение
When you set up the configurations correctly, Nuke for all Release configurations will compile the project and add the assembly to the installer, only you will need to use the code from the templates, the RevitLookup project has a heavily truncated and changed code

Debug configurations can only be created for the 22nd version, I don’t think that this project will have a lot of API dependent code

Only revit api x64 dependent in project, i has remove some library wpf no need yesterday

@chuongmep /p:Configuration=Installer
Turn off building the AddInManager project for this solution configuration

you can leave it as it is for now, in 2 hours I will do everything and send a PR

many thanks @Nice3point , I'm still very new to nuke, hope you can help !