Autodesk.Revit.Sdk.Refs.2025 1.1.1

dotnet add package Autodesk.Revit.Sdk.Refs.2025 --version 1.1.1                
NuGet\Install-Package Autodesk.Revit.Sdk.Refs.2025 -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Autodesk.Revit.Sdk.Refs.2025" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autodesk.Revit.Sdk.Refs.2025 --version 1.1.1                
#r "nuget: Autodesk.Revit.Sdk.Refs.2025, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Autodesk.Revit.Sdk.Refs.2025 as a Cake Addin
#addin nuget:?package=Autodesk.Revit.Sdk.Refs.2025&version=1.1.1

// Install Autodesk.Revit.Sdk.Refs.2025 as a Cake Tool
#tool nuget:?package=Autodesk.Revit.Sdk.Refs.2025&version=1.1.1                

Autodesk.Revit.SDK.Refs

JetBrains Rider License MIT Revit 2016-2025

Revit SDK refs assemblies.
Only metadata from assemblies by Refasmer.

Usage

Add project configurations with revit versions in name

<PropertyGroup>
    <RevitVersion Condition="'$(RevitVersion)' == ''">2016</RevitVersion> 
    <TargetFramework Condition="'$(TargetFramework)' == ''">net45</TargetFramework> 
    <Configurations>Debug;Release;D2016;D2017;D2018;D2019;D2020;D2021;D2022;D2023;D2024;D2025</Configurations>
</PropertyGroup>

Add package reference

<ItemGroup>
    
    <PackageReference Include="Autodesk.Revit.Sdk.Refs" Version="*" />
    <PackageReference Include="Autodesk.Revit.Sdk.Refs.$(RevitVersion)" Version="*" />
</ItemGroup>

Build Revit Project

See sample project in this folder.
You should compile the Debug configuration.
Other configurations needs to help write code with constants.

dotnet cli
dotnet build -c <Configuration> -p:RevitVersion=<RevitVersion>
nuke build
DotNetBuild(s => s
    .DisableNoRestore()
    .SetProjectFile(<ProjectName>)
    .SetConfiguration(<Configuration>)
    .SetProperty("RevitVersion", (int) <RevitVersion>));

Defined constants

This constants defined to all supports revit version.

REVIT<RevitVersion>
REVIT<RevitVersion>_OR_GREATER

Usage defined constants

#if REVIT<RevitVersion>
    // This code will be available for the specified version
#endif

#if REVIT<RevitVersion>_OR_GREATER
     // This code will be available for all versions greater than specified
#endif
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 382 4/12/2024
1.1.0 159 4/12/2024