Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revit2022 #113

Open
wants to merge 4 commits into
base: Revit2019
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/Applications/RTFRevit/RTFRevit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -41,7 +42,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="AdWindows">
<HintPath>$(REVITAPI)\AdWindows.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\AdWindows.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Costura, Version=3.1.2.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
Expand All @@ -55,23 +56,23 @@
<HintPath>..\..\..\lib\NUnit\nunit.core.interfaces.dll</HintPath>
</Reference>
<Reference Include="RevitAPI">
<HintPath>$(REVITAPI)\RevitAPI.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>$(REVITAPI)\RevitAPIIFC.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIIFC.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIMacros">
<HintPath>$(REVITAPI)\RevitAPIMacros.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIMacros.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>$(REVITAPI)\RevitAPIUI.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUIMacros">
<HintPath>$(REVITAPI)\RevitAPIUIMacros.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUIMacros.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -61,6 +62,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
3 changes: 3 additions & 0 deletions src/Applications/RevitTestFrameworkApp/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>
16 changes: 8 additions & 8 deletions src/Applications/RevitTestFrameworkGUI/Converters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public object Convert(object value, Type targetType,
case TestStatus.Cancelled:
return new SolidColorBrush(Colors.DarkGray);
case TestStatus.TimedOut:
return new SolidColorBrush(Colors.Orange);
return new SolidColorBrush(Colors.DarkRed);
case TestStatus.Error:
return new SolidColorBrush(Colors.OrangeRed);
return new SolidColorBrush(Colors.DarkRed);
case TestStatus.Failure:
return new SolidColorBrush(Colors.OrangeRed);
return new SolidColorBrush(Colors.DarkRed);
case TestStatus.Ignored:
return Brushes.Transparent;
case TestStatus.Inconclusive:
Expand Down Expand Up @@ -125,11 +125,11 @@ public object Convert(object value, Type targetType,
case FixtureStatus.None:
return Brushes.Transparent;
case FixtureStatus.Mixed:
return new SolidColorBrush(Colors.Orange);
return new SolidColorBrush(Colors.DarkRed);
case FixtureStatus.Failure:
return new SolidColorBrush(Colors.OrangeRed);
return new SolidColorBrush(Colors.DarkRed);
case FixtureStatus.Success:
return new SolidColorBrush(Colors.GreenYellow);
return new SolidColorBrush(Colors.Green);
default:
return Brushes.Transparent;
}
Expand Down Expand Up @@ -177,10 +177,10 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
{
if ((bool) value)
{
return new SolidColorBrush(Colors.LightGreen);
return new SolidColorBrush(Colors.DarkGreen);
}

return new SolidColorBrush(Colors.LightPink);
return new SolidColorBrush(Colors.DarkRed);
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Expand Down
6 changes: 3 additions & 3 deletions src/Applications/RevitTestFrameworkGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:applications="clr-namespace:RTF.Applications"
xmlns:runners="clr-namespace:RTF.Framework;assembly=Runner"
xmlns:System="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d" MinWidth="400" MinHeight="600" Height="800" Width="800" Closing="View_Closing"
mc:Ignorable="d" MinWidth="400" MinHeight="600" Height="480" Width="800" Closing="View_Closing"
d:DataContext="{d:DesignInstance applications:RunnerViewModel}"
Title="Revit Test Runner"
>
Expand Down Expand Up @@ -339,8 +339,8 @@
<TextBlock Text="{Binding PassedTestCount}" FontWeight="DemiBold" Foreground="DarkGreen"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="3">
<TextBlock Text="Skipped: " FontWeight="Bold" Foreground="DarkOrange"/>
<TextBlock Text="{Binding SkippedTestCount}" FontWeight="DemiBold" Foreground="DarkOrange"/>
<TextBlock Text="Skipped: " FontWeight="Bold" Foreground="DarkRed"/>
<TextBlock Text="{Binding SkippedTestCount}" FontWeight="DemiBold" Foreground="DarkRed"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="5">
<TextBlock Text="Failed: " FontWeight="Bold" Foreground="DarkRed"/>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -53,7 +54,7 @@
<HintPath>..\..\..\lib\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
<Reference Include="RevitAddInUtility">
<HintPath>$(REVITAPI)\RevitAddInUtility.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAddInUtility.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Windows.Forms" />
Expand Down Expand Up @@ -104,6 +105,7 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
Expand All @@ -122,6 +124,9 @@
<ItemGroup>
<Resource Include="icon.ico" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Applications/RevitTestFrameworkGUI/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down
3 changes: 2 additions & 1 deletion src/Framework/Runner/Runner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -55,7 +56,7 @@
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="RevitAddInUtility">
<HintPath>$(REVITAPI)\RevitAddInUtility.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAddInUtility.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
11 changes: 8 additions & 3 deletions src/RevitTestFramework.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio Version 17
VisualStudioVersion = 17.5.33627.172
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Applications", "Applications", "{72627E9C-00D7-42F7-B004-2E427B67E4C9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{54065D85-938B-4AAE-B98F-74994F717347}"
Expand Down Expand Up @@ -68,11 +70,14 @@ Global
GlobalSection(NestedProjects) = preSolution
{D21140F7-D29A-4265-A679-BA76770B7257} = {72627E9C-00D7-42F7-B004-2E427B67E4C9}
{D1D93A41-6635-48ED-8220-D372A24EC581} = {72627E9C-00D7-42F7-B004-2E427B67E4C9}
{61EAF84C-49D2-4CDF-A4F9-CEAC6B6F2166} = {72627E9C-00D7-42F7-B004-2E427B67E4C9}
{C379B8FE-C170-442C-8038-206859A023D4} = {54065D85-938B-4AAE-B98F-74994F717347}
{BE4EB3BC-1593-4404-8402-FB831F3FEE42} = {54065D85-938B-4AAE-B98F-74994F717347}
{69DAA31B-32DE-4C70-A959-406A08158B63} = {54065D85-938B-4AAE-B98F-74994F717347}
{745CCA0F-549E-4756-A31E-41BF7F905B8A} = {1D1602E5-004F-4D18-8AB9-90D746921E60}
{4A25BB46-081A-4ACD-9C38-297CD800550F} = {1D1602E5-004F-4D18-8AB9-90D746921E60}
{61EAF84C-49D2-4CDF-A4F9-CEAC6B6F2166} = {72627E9C-00D7-42F7-B004-2E427B67E4C9}
{69DAA31B-32DE-4C70-A959-406A08158B63} = {54065D85-938B-4AAE-B98F-74994F717347}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C95979E3-CB22-44CA-9764-21D2E4EF5D6D}
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions src/TestSetup/SampleTestsSetup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<RootNamespace>SampleTestsSetup</RootNamespace>
<AssemblyName>SampleTestsSetup</AssemblyName>
<FileAlignment>512</FileAlignment>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
6 changes: 5 additions & 1 deletion src/Tests/RunnerTests/RunnerTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<AssemblyName>RunnerTests</AssemblyName>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -35,6 +36,9 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AdWindows">
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\AdWindows.dll</HintPath>
</Reference>
<Reference Include="Moq, Version=4.2.1312.1622, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\lib\Moq\Moq.dll</HintPath>
Expand All @@ -44,7 +48,7 @@
<HintPath>..\..\..\lib\NUnit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="RevitAddInUtility">
<HintPath>$(REVITAPI)\RevitAddInUtility.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAddInUtility.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
13 changes: 7 additions & 6 deletions src/Tests/Samples/SampleTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -37,31 +38,31 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="AdWindows">
<HintPath>$(REVITAPI)\AdWindows.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\AdWindows.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\lib\NUnit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="RevitAPI">
<HintPath>$(REVITAPI)\RevitAPI.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>$(REVITAPI)\RevitAPIIFC.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIIFC.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIMacros">
<HintPath>$(REVITAPI)\RevitAPIMacros.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIMacros.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>$(REVITAPI)\RevitAPIUI.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUIMacros">
<HintPath>$(REVITAPI)\RevitAPIUIMacros.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\..\..\Program Files\Autodesk\Revit 2022\RevitAPIUIMacros.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down