Autodesk.Revit.Sdk.Refs.2017
1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Autodesk.Revit.Sdk.Refs.2017 --version 1.1.0
NuGet\Install-Package Autodesk.Revit.Sdk.Refs.2017 -Version 1.1.0
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.2017" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autodesk.Revit.Sdk.Refs.2017 --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Autodesk.Revit.Sdk.Refs.2017, 1.1.0"
#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.2017 as a Cake Addin #addin nuget:?package=Autodesk.Revit.Sdk.Refs.2017&version=1.1.0 // Install Autodesk.Revit.Sdk.Refs.2017 as a Cake Tool #tool nuget:?package=Autodesk.Revit.Sdk.Refs.2017&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Autodesk.Revit.SDK.Refs
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5.2
- 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.