Good morning,
I am trying to use a library compiled in Netstandard 2.0 with PyRevit.
The library has been copied into the bin folder and a bundle.yaml has been also created
title: Test C# Script (Custom Title)
tooltip: Test C# Script Tooltip
author: "{{author}}"
highlight: new
modules:
- GShark.dll
The script is very simple
using System;
using Autodesk.Revit.UI;
using Autodesk.Revit.DB;
using GShark.Geometry;
//using pyRevitLabs.NLog;
namespace HelloWorld
{
public class MyCSharpCommand : IExternalCommand
{
// define the logger field
//private Logger logger = LogManager.GetCurrentClassLogger();
public Result Execute(ExternalCommandData revit, ref string message, ElementSet elements)
{
Console.WriteLine(string.Format("Point: {0}", new Point3(0,0,0)));
return Result.Succeeded;
}
}
}
and this is the error message
It would be very helpful to get this to work properly.
Thanks!