5 Commits

Author SHA1 Message Date
Connor Ivy c2ac300f78 remove unnecessary dependencies 2023-03-02 15:27:08 -06:00
Connor Ivy 9461782428 split xunitRevit into multiple years to mirror how the connector works 2023-03-02 15:13:50 -06:00
Connor Ivy 983499f4a0 added shared project for 2021 2023-02-23 17:15:02 -06:00
Connor Ivy 182e22166a fix config of 2022 and 2023 to match previous 2023-02-22 11:58:23 -06:00
Connor Ivy 2ee7e26524 run in 2022 and 2023 2023-02-21 15:31:56 -06:00
34 changed files with 642 additions and 526 deletions
+142 -21
View File
@@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevit", "xUnitRevit\xUnitRevit.csproj", "{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitUtils2021", "xUnitRevitUtils2021\xUnitRevitUtils2021.csproj", "{977E0B63-5706-4C2B-9C01-3C02D9EBE377}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitUtils2020", "xUnitRevitUtils2020\xUnitRevitUtils2020.csproj", "{0DEF0F23-8AE2-461B-B014-8A0DA7494088}"
@@ -17,6 +15,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitUtils2023", "xUni
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitUtils2022", "xUnitRevitUtils2022\xUnitRevitUtils2022.csproj", "{78770414-4F6B-4429-BD8F-F0F64A349551}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "xUnitRevitShared", "xUnitRevitShared\xUnitRevitShared.shproj", "{48829151-F9BE-4237-B506-B29F71A361E7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevit2021", "xUnitRevit2021\xUnitRevit2021.csproj", "{CBC76044-BB09-4C2A-9392-89343F4DAE6A}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "xUnitRevitUtilsShared", "xUnitRevitUtilsShared\xUnitRevitUtilsShared.shproj", "{AB8A5ECF-F8E1-4D5C-A488-2A38AB6B4B44}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevit2023", "xUnitRevit2023\xUnitRevit2023.csproj", "{C887776C-F153-4093-8837-35D72422B846}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevit2022", "xUnitRevit2022\xUnitRevit2022.csproj", "{F7CE564D-E468-44E1-AF57-3B8F37629E25}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevit2020", "xUnitRevit2020\xUnitRevit2020.csproj", "{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -29,27 +39,10 @@ Global
Release2019|Any CPU = Release2019|Any CPU
Release2020|Any CPU = Release2020|Any CPU
Release2021|Any CPU = Release2021|Any CPU
Release2022|Any CPU = Release2022|Any CPU
Release2023|Any CPU = Release2023|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug|Any CPU.ActiveCfg = Debug2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug|Any CPU.Build.0 = Debug2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2019|Any CPU.ActiveCfg = Debug2019|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2019|Any CPU.Build.0 = Debug2019|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2020|Any CPU.ActiveCfg = Debug2020|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2020|Any CPU.Build.0 = Debug2020|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2021|Any CPU.ActiveCfg = Debug2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2021|Any CPU.Build.0 = Debug2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2022|Any CPU.ActiveCfg = Debug2022|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2022|Any CPU.Build.0 = Debug2022|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2023|Any CPU.ActiveCfg = Debug2023|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Debug2023|Any CPU.Build.0 = Debug2023|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release|Any CPU.ActiveCfg = Release2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2019|Any CPU.ActiveCfg = Release2019|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2019|Any CPU.Build.0 = Release2019|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2020|Any CPU.ActiveCfg = Release2020|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2020|Any CPU.Build.0 = Release2020|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2021|Any CPU.ActiveCfg = Release2021|Any CPU
{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}.Release2021|Any CPU.Build.0 = Release2021|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug|Any CPU.Build.0 = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -58,12 +51,17 @@ Global
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug2021|Any CPU.Build.0 = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release|Any CPU.ActiveCfg = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release|Any CPU.Build.0 = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2021|Any CPU.Build.0 = Release|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2022|Any CPU.Build.0 = Release2022|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{977E0B63-5706-4C2B-9C01-3C02D9EBE377}.Release2023|Any CPU.Build.0 = Release2023|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -72,12 +70,15 @@ Global
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug2021|Any CPU.ActiveCfg = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release|Any CPU.Build.0 = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2020|Any CPU.Build.0 = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{0DEF0F23-8AE2-461B-B014-8A0DA7494088}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -94,6 +95,8 @@ Global
{02399359-9CA0-4B47-B467-541E290E700F}.Release2019|Any CPU.Build.0 = Release|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{02399359-9CA0-4B47-B467-541E290E700F}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -114,6 +117,10 @@ Global
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2020|Any CPU.Build.0 = Release|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2021|Any CPU.Build.0 = Release|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2022|Any CPU.Build.0 = Release2022|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{C3A8684E-15BB-4B8B-B46C-35ACE3729C35}.Release2023|Any CPU.Build.0 = Release2023|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -127,6 +134,8 @@ Global
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug|Any CPU.Build.0 = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
@@ -135,11 +144,110 @@ Global
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug2022|Any CPU.Build.0 = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release|Any CPU.Build.0 = Release|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release2022|Any CPU.ActiveCfg = Release2022|Any CPU
{78770414-4F6B-4429-BD8F-F0F64A349551}.Release2023|Any CPU.ActiveCfg = Release2023|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2019|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2020|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2020|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2021|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2021|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2022|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release|Any CPU.Build.0 = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2019|Any CPU.Build.0 = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2020|Any CPU.Build.0 = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2021|Any CPU.Build.0 = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2022|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2022|Any CPU.Build.0 = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2023|Any CPU.ActiveCfg = Release|Any CPU
{CBC76044-BB09-4C2A-9392-89343F4DAE6A}.Release2023|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2019|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2020|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2020|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2021|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2021|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2022|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2019|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2020|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2021|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2022|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2022|Any CPU.Build.0 = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2023|Any CPU.ActiveCfg = Release|Any CPU
{C887776C-F153-4093-8837-35D72422B846}.Release2023|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2019|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2020|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2020|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2021|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2021|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2022|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2019|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2020|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2021|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2022|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2022|Any CPU.Build.0 = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2023|Any CPU.ActiveCfg = Release|Any CPU
{F7CE564D-E468-44E1-AF57-3B8F37629E25}.Release2023|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2019|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2019|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2020|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2020|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2021|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2021|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2022|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2022|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2023|Any CPU.ActiveCfg = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Debug2023|Any CPU.Build.0 = Debug|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2019|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2019|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2020|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2020|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2021|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2021|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2022|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2022|Any CPU.Build.0 = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2023|Any CPU.ActiveCfg = Release|Any CPU
{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}.Release2023|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -147,4 +255,17 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1CD726E4-6BBA-4FC3-9C57-0981EF1A9475}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{02399359-9ca0-4b47-b467-541e290e700f}*SharedItemsImports = 5
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{0def0f23-8ae2-461b-b014-8a0da7494088}*SharedItemsImports = 5
xUnitRevitShared\xUnitRevitShared.projitems*{48829151-f9be-4237-b506-b29f71a361e7}*SharedItemsImports = 13
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{78770414-4f6b-4429-bd8f-f0f64a349551}*SharedItemsImports = 5
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{977e0b63-5706-4c2b-9c01-3c02d9ebe377}*SharedItemsImports = 5
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{ab8a5ecf-f8e1-4d5c-a488-2a38ab6b4b44}*SharedItemsImports = 13
xUnitRevitShared\xUnitRevitShared.projitems*{c3be785a-1ec0-4ebd-89cf-387ecec152eb}*SharedItemsImports = 4
xUnitRevitShared\xUnitRevitShared.projitems*{c887776c-f153-4093-8837-35d72422b846}*SharedItemsImports = 4
xUnitRevitShared\xUnitRevitShared.projitems*{cbc76044-bb09-4c2a-9392-89343f4dae6a}*SharedItemsImports = 4
xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems*{e0bf38c2-13bc-4acc-b0f2-4dfe82965db4}*SharedItemsImports = 5
xUnitRevitShared\xUnitRevitShared.projitems*{f7ce564d-e468-44e1-af57-3b8f37629e25}*SharedItemsImports = 4
EndGlobalSection
EndGlobal
-23
View File
@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
-263
View File
@@ -1,263 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
None
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{27A79ACA-7EA8-4406-8BB8-216578CC3AB7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevit</RootNamespace>
<AssemblyName>xUnitRevit</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<!-- MULTI VERSION CONFIGURATION START -->
<!--2021-->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2021|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2021\Revit.exe</StartProgram>
<RevitVersion>2021</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release2021|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2021\Revit.exe</StartProgram>
<RevitVersion>2021</RevitVersion>
</PropertyGroup>
<!--2020-->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2020|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2020\Revit.exe</StartProgram>
<RevitVersion>2020</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release2020|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2020\Revit.exe</StartProgram>
<RevitVersion>2020</RevitVersion>
</PropertyGroup>
<!--2019-->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2019|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2019\Revit.exe</StartProgram>
<RevitVersion>2019</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release2019|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2019\Revit.exe</StartProgram>
<RevitVersion>2019</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2022|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2022\Revit.exe</StartProgram>
<RevitVersion>2022</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2023|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2023\Revit.exe</StartProgram>
<RevitVersion>2023</RevitVersion>
</PropertyGroup>
<!--END-->
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Numerics" />
<Reference Include="System.Web.Extensions" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.cs" />
<Compile Include="CmdAvailabilityViews.cs" />
<Compile Include="Command.cs" />
<Compile Include="Configuration.cs" />
<Compile Include="ExternalEventHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Runner.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="config_sample.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<!--
<None Include="config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
-->
<None Include="xUnitRevit.addin" />
</ItemGroup>
<!-- SWITCH REVIT NUGETS -->
<Choose>
<When Condition="'$(Configuration)' == 'Debug2019' Or '$(Configuration)' == 'Release2019'">
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2019">
<Version>1.0.0</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2019\xUnitRevitUtils2019.csproj">
<Project>{02399359-9CA0-4B47-B467-541E290E700F}</Project>
<Name>xUnitRevitUtils2019</Name>
</ProjectReference>
</ItemGroup>
</When>
<When Condition="'$(Configuration)' == 'Debug2020' Or '$(Configuration)' == 'Release2020'">
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2020">
<Version>1.0.0</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2020\xUnitRevitUtils2020.csproj">
<Project>{0DEF0F23-8AE2-461B-B014-8A0DA7494088}</Project>
<Name>xUnitRevitUtils2020</Name>
</ProjectReference>
</ItemGroup>
</When>
<When Condition="'$(Configuration)' == 'Debug2021' Or '$(Configuration)' == 'Release2021'">
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2021">
<Version>1.0.0</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2021\xUnitRevitUtils2021.csproj">
<Project>{977e0b63-5706-4c2b-9c01-3c02d9ebe377}</Project>
<Name>xUnitRevitUtils2021</Name>
</ProjectReference>
</ItemGroup>
</When>
<When Condition="'$(Configuration)' == 'Debug2022' Or '$(Configuration)' == 'Release2022'">
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2022">
<Version>1.0.0</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2022\xUnitRevitUtils2022.csproj">
<Project>{78770414-4F6B-4429-BD8F-F0F64A349551}</Project>
<Name>xUnitRevitUtils2022</Name>
</ProjectReference>
</ItemGroup>
</When>
<When Condition="'$(Configuration)' == 'Debug2023' Or '$(Configuration)' == 'Release2023'">
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2023">
<Version>1.0.0</Version>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2023\xUnitRevitUtils2023.csproj">
<Project>{E0BF38C2-13BC-4ACC-B0F2-4DFE82965DB4}</Project>
<Name>xUnitRevitUtils2023</Name>
</ProjectReference>
</ItemGroup>
</When>
</Choose>
<!--END-->
<ItemGroup>
<PackageReference Include="MvvmLight">
<Version>5.4.1.1</Version>
</PackageReference>
<PackageReference Include="speckle.xunit.runner.wpf">
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- MULTIVERSION POST BUILD EVENTS START -->
<Target Name="AfterBuild">
<CallTarget Condition="'$(Configuration)' == 'Debug2021' Or '$(Configuration)' == 'Debug2020' Or '$(Configuration)' == 'Debug2019'" Targets="AfterBuildDebug" />
<CallTarget Condition="'$(Configuration)' == 'Release2021' Or '$(Configuration)' == 'Release2020' Or '$(Configuration)' == 'Release2019'" Targets="AfterBuildRelease" />
</Target>
<Target Name="AfterBuildDebug">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(ProjectDir)*.addin" />
</ItemGroup>
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(ProjectName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
</Target>
<Target Name="AfterBuildRelease">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(ProjectDir)*.addin" />
</ItemGroup>
<Message Importance="High" Text="RELEASE copy from $(TargetDir) to $(SolutionDir)\Release\Release$(RevitVersion)\$(ProjectName)\" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\$(ProjectName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
</Target>
<!--END-->
</Project>
@@ -1,16 +1,16 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("xUnitRevit")]
[assembly: AssemblyDescription("xUnit runner for Revit")]
[assembly: AssemblyTitle("xUnitRevit2021")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Speckle")]
[assembly: AssemblyProduct("xUnitRevit")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("xUnitRevit2021")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("321044f7-b0b2-4b1c-af18-e71a19252be0")]
[assembly: Guid("cbc76044-bb09-4c2a-9392-89343f4dae6a")]
// Version information for an assembly consists of the following four values:
//
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C3BE785A-1EC0-4EBD-89CF-387ECEC152EB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevit</RootNamespace>
<AssemblyName>xUnitRevit</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<RevitFolderName>xUnitRevit</RevitFolderName>
<RevitVersion>2020</RevitVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;REVIT2020</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;REVIT2020</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Numerics" />
<Reference Include="System.Web.Extensions" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2020">
<Version>4.0.0</Version>
</PackageReference>
<PackageReference Include="speckle.xunit.runner.wpf">
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2020\xUnitRevitUtils2020.csproj">
<Project>{977e0b63-5706-4c2b-9c01-3c02d9ebe377}</Project>
<Name>xUnitRevitUtils2020</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\xUnitRevitShared\xUnitRevitShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if EXIST "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" (
xcopy "$(TargetDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" /Y /I /E
xcopy "$(TargetDir)*.*" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(RevitFolderName)" /Y /I /E
)</PostBuildEvent>
</PropertyGroup>
</Project>
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("xUnitRevit2021")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("xUnitRevit2021")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("cbc76044-bb09-4c2a-9392-89343f4dae6a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CBC76044-BB09-4C2A-9392-89343F4DAE6A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevit</RootNamespace>
<AssemblyName>xUnitRevit</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<RevitFolderName>xUnitRevit</RevitFolderName>
<RevitVersion>2021</RevitVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;REVIT2021</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;REVIT2021</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Numerics" />
<Reference Include="System.Web.Extensions" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2021">
<Version>4.0.0</Version>
</PackageReference>
<PackageReference Include="speckle.xunit.runner.wpf">
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2021\xUnitRevitUtils2021.csproj">
<Project>{977e0b63-5706-4c2b-9c01-3c02d9ebe377}</Project>
<Name>xUnitRevitUtils2021</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\xUnitRevitShared\xUnitRevitShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if EXIST "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" (
xcopy "$(TargetDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" /Y /I /E
xcopy "$(TargetDir)*.*" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(RevitFolderName)" /Y /I /E
)</PostBuildEvent>
</PropertyGroup>
</Project>
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("xUnitRevit2021")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("xUnitRevit2021")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("cbc76044-bb09-4c2a-9392-89343f4dae6a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F7CE564D-E468-44E1-AF57-3B8F37629E25}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevit</RootNamespace>
<AssemblyName>xUnitRevit</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<RevitFolderName>xUnitRevit</RevitFolderName>
<RevitVersion>2022</RevitVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;REVIT2022</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;REVIT2022</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Numerics" />
<Reference Include="System.Web.Extensions" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2022">
<Version>4.0.0</Version>
</PackageReference>
<PackageReference Include="speckle.xunit.runner.wpf">
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2022\xUnitRevitUtils2022.csproj">
<Project>{977e0b63-5706-4c2b-9c01-3c02d9ebe377}</Project>
<Name>xUnitRevitUtils2022</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\xUnitRevitShared\xUnitRevitShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if EXIST "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" (
xcopy "$(TargetDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" /Y /I /E
xcopy "$(TargetDir)*.*" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(RevitFolderName)" /Y /I /E
)</PostBuildEvent>
</PropertyGroup>
</Project>
+36
View File
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("xUnitRevit2023")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("xUnitRevit2023")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c887776c-f153-4093-8837-35d72422b846")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+60
View File
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C887776C-F153-4093-8837-35D72422B846}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevit2023</RootNamespace>
<AssemblyName>xUnitRevit2023</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<RevitFolderName>xUnitRevit</RevitFolderName>
<RevitVersion>2023</RevitVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;REVIT2023</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System.Web.Extensions" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\xUnitRevitUtils2023\xUnitRevitUtils2023.csproj">
<Project>{e0bf38c2-13bc-4acc-b0f2-4dfe82965db4}</Project>
<Name>xUnitRevitUtils2023</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\xUnitRevitShared\xUnitRevitShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if EXIST "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" (
xcopy "$(TargetDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)" /Y /I /E
xcopy "$(TargetDir)*.*" "$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(RevitFolderName)" /Y /I /E
)</PostBuildEvent>
</PropertyGroup>
</Project>
+11 -3
View File
@@ -13,8 +13,8 @@ namespace xUnitRevit
{
public Result OnStartup(UIControlledApplication a)
{
a.ControlledApplication.ApplicationInitialized += ControlledApplication_ApplicationInitialized; ;
a.ControlledApplication.ApplicationInitialized += ControlledApplication_ApplicationInitialized;
a.DialogBoxShowing += new EventHandler<Autodesk.Revit.UI.Events.DialogBoxShowingEventArgs>(AppDialogShowing);
return Result.Succeeded;
}
@@ -26,13 +26,21 @@ namespace xUnitRevit
Runner.ReadConfig();
if(Runner.Config.autoStart)
if (Runner.Config.autoStart)
Runner.Launch(uiapp);
}
private void AppDialogShowing(object sender, Autodesk.Revit.UI.Events.DialogBoxShowingEventArgs e)
{
// don't show the dialog, just move on with life and testing
e.OverrideResult(1);
}
public Result OnShutdown(UIControlledApplication a)
{
a.ControlledApplication.ApplicationInitialized -= ControlledApplication_ApplicationInitialized;
a.DialogBoxShowing -= new EventHandler<Autodesk.Revit.UI.Events.DialogBoxShowingEventArgs>(AppDialogShowing);
return Result.Succeeded;
}
}
@@ -8,9 +8,9 @@ using System.Threading;
using System.Threading.Tasks;
using Xunit.Runner.Wpf;
using Xunit.Runner.Wpf.ViewModel;
using xUnitRevitUtils;
using System.Web.Script.Serialization;
using System.IO;
using xUnitRevitUtils;
namespace xUnitRevit
{
@@ -36,8 +36,6 @@ namespace xUnitRevit
//pre-load asssemblies, if you're a lazy developer
(main.DataContext as MainViewModel).StartupAssemblies = Config.startupAssemblies;
main.Show();
}
catch (Exception e)
{
+9
View File
@@ -0,0 +1,9 @@
{
"startupAssemblies": [
"C:\\Users\\conno\\Documents\\GitHub\\speckle-sharp\\Objects\\Converters\\ConverterRevit\\ConverterRevitTests\\ConverterRevitTests2020\\bin\\Debug\\ConverterRevitTests.dll",
"C:\\Users\\conno\\Documents\\GitHub\\speckle-sharp\\Objects\\Converters\\ConverterRevit\\ConverterRevitTests\\ConverterRevitTests2021\\bin\\Debug\\ConverterRevitTests.dll",
"C:\\Users\\conno\\Documents\\GitHub\\speckle-sharp\\Objects\\Converters\\ConverterRevit\\ConverterRevitTests\\ConverterRevitTests2022\\bin\\Debug\\ConverterRevitTests.dll",
"C:\\Users\\conno\\Documents\\GitHub\\speckle-sharp\\Objects\\Converters\\ConverterRevit\\ConverterRevitTests\\ConverterRevitTests2023\\bin\\Debug\\ConverterRevitTests.dll"
],
"autoStart": true
}
@@ -10,7 +10,7 @@
<VendorDescription>Speckle</VendorDescription>
</AddIn>
<AddIn Type="Application">
<Name>Application xUnitRevit</Name>
<Name>Speckle xUnitRevit</Name>
<Assembly>xUnitRevit\xUnitRevit.dll</Assembly>
<FullClassName>xUnitRevit.App</FullClassName>
<ClientId>d9c9ed6f-7b2a-4c47-8f87-a6f33a553d50</ClientId>
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>48829151-f9be-4237-b506-b29f71a361e7</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>xUnitRevitShared</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)App.cs" />
<Compile Include="$(MSBuildThisFileDirectory)CmdAvailabilityViews.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Command.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Configuration.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExternalEventHandler.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Runner.cs" />
</ItemGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="$(MSBuildThisFileDirectory)config_sample.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="$(MSBuildThisFileDirectory)xUnitRevit.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>48829151-f9be-4237-b506-b29f71a361e7</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
<Import Project="xUnitRevitShared.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
+7
View File
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
@@ -19,13 +19,11 @@
<AssemblyVersion>1.0.5.0</AssemblyVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\xUnitRevitUtils2021\xru.cs" Link="xru.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2019" Version="1.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<Import Project="..\xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems" Label="Shared" />
</Project>
@@ -19,13 +19,11 @@
<AssemblyVersion>1.0.5.0</AssemblyVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\xUnitRevitUtils2021\xru.cs" Link="xru.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2020" Version="1.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<Import Project="..\xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems" Label="Shared" />
</Project>
@@ -24,4 +24,6 @@
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<Import Project="..\xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems" Label="Shared" />
</Project>
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@@ -14,7 +14,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyName>xUnitRevitUtils</AssemblyName>
<RootNamespace>xUnitRevitUtils</RootNamespace>
<PackageId>xUnitRevitUtils.2021</PackageId>
<PackageId>xUnitRevitUtils.2022</PackageId>
<Version>1.0.5</Version>
<AssemblyVersion>1.0.5.0</AssemblyVersion>
</PropertyGroup>
@@ -24,4 +24,6 @@
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<Import Project="..\xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems" Label="Shared" />
</Project>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<package >
<metadata>
<id>xUnitRevitUtils.2023</id>
<id>xUnitRevitUtils.2022</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
@@ -15,7 +15,7 @@
<copyright>Copyright 2022</copyright>
<tags>xunit revit</tags>
<dependencies>
<dependency id="ModPlus.Revit.API.2023" version="1.0.0" />
<dependency id="ModPlus.Revit.API.2022" version="1.0.0" />
<dependency id="xunit" version="2.4.1" />
</dependencies>
</metadata>
@@ -24,4 +24,6 @@
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<Import Project="..\xUnitRevitUtilsShared\xUnitRevitUtilsShared.projitems" Label="Shared" />
</Project>
-191
View File
@@ -1,191 +0,0 @@
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace xUnitRevitUtils
{
/// <summary>
/// Utility class with methods and properties used by the xUnit Revit plugin
/// </summary>
public static class xru
{
public static UIApplication Uiapp { get; set; }
private static List<Action> Queue { get; set; }
private static ExternalEvent EventHandler { get; set; }
public static SynchronizationContext UiContext { get; set; }
public static void Initialize(UIApplication uiapp, SynchronizationContext uiContext, ExternalEvent eventHandler, List<Action> queue)
{
Uiapp = uiapp;
UiContext = uiContext;
EventHandler = eventHandler;
Queue = queue;
}
#region utility methods
/// <summary>
/// Returns the selected elements in the active document
/// </summary>
/// <returns></returns>
public static List<Element> GetActiveSelection()
{
Assert.NotNull(Uiapp);
if (Uiapp.ActiveUIDocument != null)
return Uiapp.ActiveUIDocument.Selection.GetElementIds().Select(x => Uiapp.ActiveUIDocument.Document.GetElement(x)).ToList();
return new List<Element>();
}
/// <summary>
/// Opens and activates a document if not open already
/// </summary>
/// <param name="filePath">Path to the file to open</param>
public static Document OpenDoc(string filePath)
{
Assert.NotNull(Uiapp);
Document doc = null;
//OpenAndActivateDocument only works if run from the current context
UiContext.Send(x => { doc = Uiapp.OpenAndActivateDocument(filePath).Document; }, null);
Assert.NotNull(doc);
return doc;
}
/// <summary>
/// Creates a new empty document
/// </summary>
/// <param name="templatePath">Path to the project template</param>
/// <param name="filePath">Path where to save the new doc</param>
/// <param name="overwrite">If true overwrites existing files with same name</param>
/// <returns></returns>
public static Document CreateNewDoc(string templatePath, string filePath, bool overwrite = true)
{
Assert.NotNull(Uiapp);
Document doc = null;
try
{
if (overwrite && File.Exists(filePath))
File.Delete(filePath);
}
catch { }
//OpenAndActivateDocument only works if run from the current context
UiContext.Send(x =>
{
//if already open, just use it
if (!File.Exists(filePath))
{
doc = Uiapp.Application.NewProjectDocument(templatePath);
doc.SaveAs(filePath);
doc.Close();
}
doc = Uiapp.OpenAndActivateDocument(filePath).Document;
}
, null);
Assert.NotNull(doc);
return doc;
}
/// <summary>
/// Runs an Action in a Revit transaction, uses TaskCompletionSource to communicate when done
/// </summary>
/// <param name="action">Action to run</param>
/// <param name="doc">Revit Document</param>
/// <param name="transactionName">Transaction Name</param>
/// <param name="ignoreWarnings">Enable to swallow all warnings generated by the transaction and prevent them from being raised within Revit</param>
/// <returns></returns>
public static Task RunInTransaction(Action action, Document doc, string transactionName = "transaction", bool ignoreWarnings = false)
{
var tcs = new TaskCompletionSource<string>();
Queue.Add(new Action(() =>
{
try
{
using (Transaction transaction = new Transaction(doc, transactionName))
{
transaction.Start();
if (ignoreWarnings)
{
var options = transaction.GetFailureHandlingOptions();
options.SetFailuresPreprocessor(new IgnoreAllWarnings());
transaction.SetFailureHandlingOptions(options);
}
action.Invoke();
transaction.Commit();
}
}
catch (Exception e)
{
tcs.TrySetException(e);
}
tcs.TrySetResult("");
}));
EventHandler.Raise();
return tcs.Task;
}
/// <summary>
/// Runs an Action, uses TaskCompletionSource to communicate when done
/// </summary>
/// <param name="action">Action to run</param>
/// <param name="doc">Revit Document</param>
/// <returns></returns>
public static Task Run(Action action, Document doc)
{
var tcs = new TaskCompletionSource<string>();
Queue.Add(new Action(() =>
{
try
{
action.Invoke();
}
catch (Exception e)
{
tcs.TrySetException(e);
}
tcs.TrySetResult("");
}));
EventHandler.Raise();
return tcs.Task;
}
/// <summary>
/// A failures preprocesser that clears any failures that occur within a transaction
/// </summary>
internal class IgnoreAllWarnings : IFailuresPreprocessor
{
public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
{
var failList = failuresAccessor.GetFailureMessages();
foreach (FailureMessageAccessor failure in failList)
{
failuresAccessor.DeleteWarning(failure);
}
return FailureProcessingResult.Continue;
}
}
#endregion
}
}
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>ab8a5ecf-f8e1-4d5c-a488-2a38ab6b4b44</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>xUnitRevitUtilsShared</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)xru.cs" />
</ItemGroup>
</Project>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>ab8a5ecf-f8e1-4d5c-a488-2a38ab6b4b44</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
<Import Project="xUnitRevitUtilsShared.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>