Hi Developer,
Aa you know is Revit 2025 Released, I just want to share the way to setup Zero Touch Node
project to match with .NET 8
and Dynamo Revit .
Configuration & new SDK Style
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RevitVersion>2025</RevitVersion>
<DynVersion>3.0</DynVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Chuongmep.Revit.Api.RevitAPI" Version="$(RevitVersion).*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Chuongmep.Revit.Api.RevitAPIUI" Version="$(RevitVersion).*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="DynamoVisualProgramming.Revit" Version="$(DynVersion).*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="DynamoVisualProgramming.Core" Version="$(DynVersion).*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="DynamoVisualProgramming.DynamoCoreNodes" Version="$(DynVersion).*">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Function Example :
public static class Hello
{
public static string SayHello(string name)
{
return $"Hello, {name}!";
}
public static double Add(double a, double b)
{
return a + b;
}
public static Document GetDBDocument()
{
var doc = DocumentManager.Instance.CurrentDBDocument;
return doc;
}
}
Open Source : GitHub - chuongmep/DynamoRevit2025PackageDemo: demo how to update your package to dynamo revit 2025
I hope you guys keep upgrade for your package.
Hot Link :
- Upgrade Assistant | .NET
- Download .NET 8.0 (Linux, macOS, and Windows)
- Become a Dynamo Zero Touch C# Node Developer in 75 Minutes
- Going Further with Zero-Touch · GitBook
Regard !