Closed ricaun closed 4 years ago
Hey @ricaun thanks for the heads up on this.. I have created a sort of all in one nuget https://www.nuget.org/packages/Onbox.Revit.References/ with all files that we need for referencing Revit 2019 to Revit2021, I have not added it as a reference directly so we can be more flexible to what version we need to reference. The VS templates will then need to be updated to reflect this change. I'm focusing on better versioning the other nuget packages now and will do that next. The files included on the packages are the following (for each version of Revit)
That's perfect! Exactly what I imagine one package with all the Revit versions references.
<ItemGroup Condition="'$(Configuration)' == 'D2019' OR '$(Configuration)' == 'R2019'">
<Reference Include="AdWindows">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\AdWindows.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NewtonSoft.Json">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\NewtonSoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\RevitAPIIFC.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UIFramework">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2019\UIFramework.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' == 'D2020' OR '$(Configuration)' == 'R2020'">
<Reference Include="AdWindows">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\AdWindows.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NewtonSoft.Json">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\NewtonSoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\RevitAPIIFC.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UIFramework">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2020\UIFramework.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' == 'D2021' OR '$(Configuration)' == 'R2021'">
<Reference Include="AdWindows">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\AdWindows.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NewtonSoft.Json">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\NewtonSoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\RevitAPIIFC.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UIFramework">
<HintPath>..\packages\Onbox.Revit.References.2021.0.0\lib\Revit 2021\UIFramework.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
This on the template and remove the NewtonSoft
package.
👍
Hello @engthiago
Should be nice to have an external package for the RevitAPI.dll, so the user does not need to have all the version installed on the computer.
This Revit_All_Main_Versions_API_x64 package has the following dlls:
I don't know if this package fit the
Onboxframework
, or a new package likeOnbox.Revit.Api
should be great.See yaa!