Autodesk.Revit.Sdk.Refs 1.1.1

dotnet add package Autodesk.Revit.Sdk.Refs --version 1.1.1                
NuGet\Install-Package Autodesk.Revit.Sdk.Refs -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" Version="1.1.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autodesk.Revit.Sdk.Refs --version 1.1.1                
#r "nuget: Autodesk.Revit.Sdk.Refs, 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 as a Cake Addin
#addin nuget:?package=Autodesk.Revit.Sdk.Refs&version=1.1.1

// Install Autodesk.Revit.Sdk.Refs as a Cake Tool
#tool nuget:?package=Autodesk.Revit.Sdk.Refs&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
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.8

    • 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 349 4/12/2024