Milti version config
Nice3point opened this issue · 15 comments
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
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
move this line below like here
https://github.com/Nice3point/RevitTemplates/blob/main/Templates/Nice3point.Revit.AddIn/Nice3point.Revit.AddIn.csproj#L38
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 😉
Example Solution Configurations
https://github.com/Nice3point/RevitTemplates/blob/main/Templates/Nice3point.Revit.Solution/Nice3point.Revit.Solution.sln#L23
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 !