diff --git a/xUnitRevit/ViewModel/MainViewModel.cs b/xUnitRevit/ViewModel/MainViewModel.cs deleted file mode 100644 index 8b899ea..0000000 --- a/xUnitRevit/ViewModel/MainViewModel.cs +++ /dev/null @@ -1,34 +0,0 @@ -using GalaSoft.MvvmLight; - -namespace xUnitRevit.ViewModel -{ - /// - /// This class contains properties that the main View can data bind to. - /// - /// Use the mvvminpc snippet to add bindable properties to this ViewModel. - /// - /// - /// You can also use Blend to data bind with the tool's support. - /// - /// - /// See http://www.galasoft.ch/mvvm - /// - /// - public class MainViewModel : ViewModelBase - { - /// - /// Initializes a new instance of the MainViewModel class. - /// - public MainViewModel() - { - ////if (IsInDesignMode) - ////{ - //// // Code runs in Blend --> create design time data. - ////} - ////else - ////{ - //// // Code runs "for real" - ////} - } - } -} \ No newline at end of file diff --git a/xUnitRevit/ViewModel/ViewModelLocator.cs b/xUnitRevit/ViewModel/ViewModelLocator.cs deleted file mode 100644 index 2409d0c..0000000 --- a/xUnitRevit/ViewModel/ViewModelLocator.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - In App.xaml: - - - - - In the View: - DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}" - - You can also use Blend to do all this with the tool's support. - See http://www.galasoft.ch/mvvm -*/ - -using GalaSoft.MvvmLight; -using GalaSoft.MvvmLight.Ioc; -using Microsoft.Practices.ServiceLocation; - -namespace xUnitRevit.ViewModel -{ - /// - /// This class contains static references to all the view models in the - /// application and provides an entry point for the bindings. - /// - public class ViewModelLocator - { - /// - /// Initializes a new instance of the ViewModelLocator class. - /// - public ViewModelLocator() - { - ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); - - ////if (ViewModelBase.IsInDesignModeStatic) - ////{ - //// // Create design time view services and models - //// SimpleIoc.Default.Register(); - ////} - ////else - ////{ - //// // Create run time view services and models - //// SimpleIoc.Default.Register(); - ////} - - SimpleIoc.Default.Register(); - } - - public MainViewModel Main - { - get - { - return ServiceLocator.Current.GetInstance(); - } - } - - public static void Cleanup() - { - // TODO Clear the ViewModels - } - } -} \ No newline at end of file diff --git a/xUnitRevit/packages.config b/xUnitRevit/packages.config index aab9a42..ace22ff 100644 --- a/xUnitRevit/packages.config +++ b/xUnitRevit/packages.config @@ -1,6 +1,7 @@  + diff --git a/xUnitRevit/xUnitRevit.csproj b/xUnitRevit/xUnitRevit.csproj index dc91a6d..ffb38d4 100644 --- a/xUnitRevit/xUnitRevit.csproj +++ b/xUnitRevit/xUnitRevit.csproj @@ -45,6 +45,9 @@ 2021 + + ..\packages\ModPlus.Revit.API.2021.1.0.0\lib\AdWindows.dll + ..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll @@ -65,13 +68,11 @@ - - $(ProgramW6432)\Autodesk\Revit 2021\RevitAPI.dll - False + + ..\packages\ModPlus.Revit.API.2021.1.0.0\lib\RevitAPI.dll - - $(ProgramW6432)\Autodesk\Revit 2021\RevitAPIUI.dll - False + + ..\packages\ModPlus.Revit.API.2021.1.0.0\lib\RevitAPIUI.dll ..\packages\speckle.xunit.runner.wpf.1.0.3\lib\net48\speckle.xunit.runner.wpf.dll @@ -122,8 +123,6 @@ - -