Skip to content

Commit

Permalink
Merge pull request #296 from jeremytammik/dev_environment
Browse files Browse the repository at this point in the history
Component Isolation from Revit
  • Loading branch information
Nice3point authored Jan 28, 2025
2 parents 3022f7d + f0fa652 commit 7a454c1
Show file tree
Hide file tree
Showing 1,028 changed files with 50,488 additions and 8,061 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/Compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Compile

on:
push:
branches:
- '*'
pull_request:

jobs:
windows:
name: windows-2022
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache packages
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: Run Nuke Build
run: ./.nuke/build.cmd
16 changes: 0 additions & 16 deletions .github/workflows/Nuke.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/Publish Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Release

on:
push:
tags:
- '*'

jobs:
windows:
name: windows-2022
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: Run Nuke Build
run: ./.nuke/build.cmd PublishGitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
6 changes: 6 additions & 0 deletions .github/workflows/Tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v4
with:
path: |
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: Run Nuke Build
working-directory: ./tools
run: ./.nuke/build.cmd CreateInstaller Publish
Expand Down
5 changes: 3 additions & 2 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,13 @@ To execute NUKE build on GitHub, you can follow these steps:

| Folder | Description |
|----------|----------------------------------------------------------------------------|
| branding | Source files for logo, banner, installer background |
| history | Museum, storage of original RevitLookup documentation |
| build | Nuke build system. Used to automate project builds |
| install | Add-in installer, called implicitly by the Nuke build |
| source | Project source code folder. Contains all solution projects |
| tools | Extra tools for RevitLookup development |
| output | Folder of generated files by the build system, such as bundles, installers |
| branding | Source files for logo, banner, installer background |
| doc | Museum, storage of original RevitLookup documentation |

## Project structure

Expand Down
36 changes: 36 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<Project>

<!-- Global build configuration -->
<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<PlatformTarget>x64</PlatformTarget>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration.Contains('R21'))">
<RevitVersion>2021</RevitVersion>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R22'))">
<RevitVersion>2022</RevitVersion>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R23'))">
<RevitVersion>2023</RevitVersion>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R24'))">
<RevitVersion>2024</RevitVersion>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R25'))">
<RevitVersion>2025</RevitVersion>
<TargetFramework>net8.0-windows</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R26'))">
<RevitVersion>2026</RevitVersion>
<TargetFramework>net8.0-windows</TargetFramework>
</PropertyGroup>

</Project>
74 changes: 74 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<Project>

<!-- Global NuGet configuration -->
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageFloatingVersionsEnabled>true</CentralPackageFloatingVersionsEnabled>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>

<ItemGroup>
<!-- Revit References -->
<PackageVersion Include="Nice3point.Revit.Build.Tasks" Version="3.0.0-preview.1.5"/>
<PackageVersion Include="Nice3point.Revit.Toolkit" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Extensions" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.RevitAPI" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.AdWindows" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.RevitAPIUI" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.RevitAPIMacros" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.UIFramework" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>
<PackageVersion Include="Nice3point.Revit.Api.UIFrameworkServices" Version="$(RevitVersion).*-*" Condition="$(RevitVersion) != ''"/>

<!-- MVVM -->
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
<PackageVersion Include="Riok.Mapperly" Version="4.1.1"/>

<!-- IOC -->
<PackageVersion Include="Scrutor" Version="5.0.2"/>
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.0"/>
<PackageVersion Include="Microsoft.Extensions.Options" Version="9.0.0"/>
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0"/>
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0"/>

<!-- Logging -->
<PackageVersion Include="Serilog.Sinks.Debug" Version="3.0.0"/>
<PackageVersion Include="Serilog.Sinks.Console" Version="6.0.0"/>
<PackageVersion Include="Serilog.Extensions.Hosting" Version="9.0.0"/>
<PackageVersion Include="Serilog.Sinks.Autodesk.Revit" Version="2.0.1"/>

<!-- Data Generation -->
<PackageVersion Include="Bogus" Version="35.6.1"/>

<!-- Automation Tools -->
<PackageVersion Include="Nuke.Common" Version="9.0.3"/>
<PackageVersion Include="WixSharp.bin" Version="1.26.0"/>
<PackageVersion Include="WixSharp.wix.bin" Version="3.14.1"/>

<!-- Testing -->
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0"/>
<PackageVersion Include="TUnit" Version="0.4.105"/>

<!-- Compability -->
<PackageVersion Include="JetBrains.Annotations" Version="2024.3.0"/>
</ItemGroup>

<ItemGroup Condition="$(DefineConstants.Contains('NETFRAMEWORK'))">
<PackageVersion Include="System.Text.Json" Version="9.0.0"/>
</ItemGroup>

<!-- Revit 2025 fixed references -->
<ItemGroup Condition="$(DefineConstants.Contains('NET8_0'))">
<PackageVersion Update="Microsoft.Extensions.Hosting" Version="8.0.1"/>
<PackageVersion Update="Microsoft.Extensions.Options" Version="8.0.2"/>
<PackageVersion Update="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2"/>
<PackageVersion Update="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2"/>

<PackageVersion Update="Serilog.Extensions.Hosting" Version="8.0.0"/>
</ItemGroup>

<!-- Development References -->
<ItemGroup>
<GlobalPackageReference Include="PolySharp" Version="1.15.0"/>
</ItemGroup>

</Project>
Loading

0 comments on commit 7a454c1

Please sign in to comment.