Hi
Firstly I am new to this Forum and to Revit API so sorry if I am not doing it right.
I am using Windows 7 Revit 2016 Visual Studio 2015 VB.Net. I have done the 'My First Revit Plug-in' using 'IExternalCommand' but now I want to try and create an app that uses the 'IExternalApplication' to do startup and shutdown functions.
I have set up a project that does absolutely nothing but trying to get it to load but get the:
System.TypeLoadException
Could not load type 'AppTester' from Assembly 'ApplicationTester, version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Here is the code
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports Autodesk.Revit.DB
Imports Autodesk.Revit.DB.Architecture
Imports Autodesk.Revit.UI
Imports Autodesk.Revit.UI.Selection
Imports Autodesk.Revit.ApplicationServices
Imports Autodesk.Revit.Attributes
Imports System.Reflection
Imports System.IO
Imports Autodesk.Revit.UI.Events
<TransactionAttribute(TransactionMode.Manual), RegenerationAttribute(RegenerationOption.Manual)>
Public Class AppTester
Implements IExternalApplication
Public Function OnShutdown(application As UIControlledApplication) As Result Implements IExternalApplication.OnShutdown
Throw New NotImplementedException()
End Function
Public Function OnStartup(application As UIControlledApplication) As Result Implements IExternalApplication.OnStartup
Throw New NotImplementedException()
End Function
End Class
Here is the Manifest file.
<RevitAddIns>
<AddIn Type="Application">
<Name>Application Tester</Name>
<Assembly>"F:\Development\ApplicationTester\ApplicationTester\bin\x64\Debug\ApplicationTester.dll"</Assembly>
<ClientId>502fe383-2648-4e98-adf8-5e6047f9dc34</ClientId>
<FullClassName>AppTester</FullClassName>
<VendorId>KS</VendorId>
<VendorDescription>Keysource Ltd</VendorDescription>
</AddIn>
</RevitAddIns>
Can anyone help why I the app won't load when I start Revit
Thanks