From 063293f6c89e0e81d42730728bcd13de57c5b765 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Wed, 27 Mar 2024 12:02:45 -0300 Subject: [PATCH] Add project files. --- .github/workflows/Build.yml | 26 +++++ Build/.editorconfig | 11 ++ Build/.nuke/parameters.json | 4 + Build/Build.cs | 9 ++ Build/Build.csproj | 21 ++++ Build/build.cmd | 7 ++ Build/build.ps1 | 69 ++++++++++++ Build/build.sh | 62 +++++++++++ CHANGELOG.md | 11 ++ LICENSE | 21 ++++ README.md | 15 +++ RevitVersion.DefineConstants.Sample/Revit.cs | 90 +++++++++++++++ ...RevitVersion.DefineConstants.Sample.csproj | 12 ++ RevitVersion.DefineConstants.sln | 43 +++++++ .../Resources/icon.png | Bin 0 -> 1507 bytes .../RevitVersion.DefineConstants.csproj | 105 ++++++++++++++++++ .../RevitVersion.DefineConstants.props | 3 + .../RevitVersion.DefineConstants.targets | 6 + .../RevitVersionConstants.2017.targets | 15 +++ .../RevitVersionConstants.2018.targets | 15 +++ .../RevitVersionConstants.2019.targets | 15 +++ .../RevitVersionConstants.2020.targets | 15 +++ .../RevitVersionConstants.2021.targets | 15 +++ .../RevitVersionConstants.2022.targets | 15 +++ .../RevitVersionConstants.2023.targets | 15 +++ .../RevitVersionConstants.2024.targets | 15 +++ .../RevitVersionConstants.2025.targets | 15 +++ .../RevitVersionConstants.targets | 16 +++ build.cmd | 3 + nuget.config | 6 + 30 files changed, 675 insertions(+) create mode 100644 .github/workflows/Build.yml create mode 100644 Build/.editorconfig create mode 100644 Build/.nuke/parameters.json create mode 100644 Build/Build.cs create mode 100644 Build/Build.csproj create mode 100644 Build/build.cmd create mode 100644 Build/build.ps1 create mode 100644 Build/build.sh create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 RevitVersion.DefineConstants.Sample/Revit.cs create mode 100644 RevitVersion.DefineConstants.Sample/RevitVersion.DefineConstants.Sample.csproj create mode 100644 RevitVersion.DefineConstants.sln create mode 100644 RevitVersion.DefineConstants/Resources/icon.png create mode 100644 RevitVersion.DefineConstants/RevitVersion.DefineConstants.csproj create mode 100644 RevitVersion.DefineConstants/RevitVersion.DefineConstants.props create mode 100644 RevitVersion.DefineConstants/RevitVersion.DefineConstants.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2017.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2018.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2019.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2020.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2021.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2022.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2023.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2024.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2025.targets create mode 100644 RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.targets create mode 100644 build.cmd create mode 100644 nuget.config diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..5d2b3fd --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,26 @@ +# ------------------------------------------------------------------------------ +# Build.yml +# ------------------------------------------------------------------------------ + +name: Build + +on: + push: + pull_request: + branches-ignore: + - master + - main + workflow_dispatch: + +jobs: + Build: + name: Build + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Run './build/build.cmd' + run: ./build/build.cmd --root ./build + env: + GitHubToken: ${{ secrets.GITHUB_TOKEN }} + SignFile: ${{ secrets.SIGN_FILE }} + SignPassword: ${{ secrets.SIGN_PASSWORD }} \ No newline at end of file diff --git a/Build/.editorconfig b/Build/.editorconfig new file mode 100644 index 0000000..31e43dc --- /dev/null +++ b/Build/.editorconfig @@ -0,0 +1,11 @@ +[*.cs] +dotnet_style_qualification_for_field = false:warning +dotnet_style_qualification_for_property = false:warning +dotnet_style_qualification_for_method = false:warning +dotnet_style_qualification_for_event = false:warning +dotnet_style_require_accessibility_modifiers = never:warning + +csharp_style_expression_bodied_methods = true:silent +csharp_style_expression_bodied_properties = true:warning +csharp_style_expression_bodied_indexers = true:warning +csharp_style_expression_bodied_accessors = true:warning diff --git a/Build/.nuke/parameters.json b/Build/.nuke/parameters.json new file mode 100644 index 0000000..769d80b --- /dev/null +++ b/Build/.nuke/parameters.json @@ -0,0 +1,4 @@ +{ + "$schema": "./build.schema.json", + "Solution": "../RevitVersion.DefineConstants.sln" +} \ No newline at end of file diff --git a/Build/Build.cs b/Build/Build.cs new file mode 100644 index 0000000..1714276 --- /dev/null +++ b/Build/Build.cs @@ -0,0 +1,9 @@ +using Nuke.Common; +using Nuke.Common.Execution; +using ricaun.Nuke; +using ricaun.Nuke.Components; + +class Build : NukeBuild, IPublishPack, IPrePack +{ + public static int Main() => Execute(x => x.From().Build); +} \ No newline at end of file diff --git a/Build/Build.csproj b/Build/Build.csproj new file mode 100644 index 0000000..eacf6c2 --- /dev/null +++ b/Build/Build.csproj @@ -0,0 +1,21 @@ + + + Exe + net7.0 + + CS0649;CS0169 + . + . + 1 + + + + + + + + + + + + diff --git a/Build/build.cmd b/Build/build.cmd new file mode 100644 index 0000000..b08cc59 --- /dev/null +++ b/Build/build.cmd @@ -0,0 +1,7 @@ +:; set -eo pipefail +:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) +:; ${SCRIPT_DIR}/build.sh "$@" +:; exit $? + +@ECHO OFF +powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %* diff --git a/Build/build.ps1 b/Build/build.ps1 new file mode 100644 index 0000000..9583582 --- /dev/null +++ b/Build/build.ps1 @@ -0,0 +1,69 @@ +[CmdletBinding()] +Param( + [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] + [string[]]$BuildArguments +) + +Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.PSVersion)" + +Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 } +$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent + +########################################################################### +# CONFIGURATION +########################################################################### + +$BuildProjectFile = "$PSScriptRoot\Build.csproj" +$TempDirectory = "$PSScriptRoot\\.nuke\temp" + +$DotNetGlobalFile = "$PSScriptRoot\\global.json" +$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" +$DotNetChannel = "Current" + +$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 +$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 +$env:DOTNET_MULTILEVEL_LOOKUP = 0 + +########################################################################### +# EXECUTION +########################################################################### + +function ExecSafe([scriptblock] $cmd) { + & $cmd + if ($LASTEXITCODE) { exit $LASTEXITCODE } +} + +# If dotnet CLI is installed globally and it matches requested version, use for execution +if ($null -ne (Get-Command "dotnet" -ErrorAction SilentlyContinue) -and ` + $(dotnet --version) -and $LASTEXITCODE -eq 0) { + $env:DOTNET_EXE = (Get-Command "dotnet").Path +} +else { + # Download install script + $DotNetInstallFile = "$TempDirectory\dotnet-install.ps1" + New-Item -ItemType Directory -Path $TempDirectory -Force | Out-Null + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + (New-Object System.Net.WebClient).DownloadFile($DotNetInstallUrl, $DotNetInstallFile) + + # If global.json exists, load expected version + if (Test-Path $DotNetGlobalFile) { + $DotNetGlobal = $(Get-Content $DotNetGlobalFile | Out-String | ConvertFrom-Json) + if ($DotNetGlobal.PSObject.Properties["sdk"] -and $DotNetGlobal.sdk.PSObject.Properties["version"]) { + $DotNetVersion = $DotNetGlobal.sdk.version + } + } + + # Install by channel or version + $DotNetDirectory = "$TempDirectory\dotnet-win" + if (!(Test-Path variable:DotNetVersion)) { + ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Channel $DotNetChannel -NoPath } + } else { + ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath } + } + $env:DOTNET_EXE = "$DotNetDirectory\dotnet.exe" +} + +Write-Output "Microsoft (R) .NET Core SDK version $(& $env:DOTNET_EXE --version)" + +ExecSafe { & $env:DOTNET_EXE build $BuildProjectFile /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet } +ExecSafe { & $env:DOTNET_EXE run --project $BuildProjectFile --no-build -- $BuildArguments } diff --git a/Build/build.sh b/Build/build.sh new file mode 100644 index 0000000..c6d1be3 --- /dev/null +++ b/Build/build.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash + +bash --version 2>&1 | head -n 1 + +set -eo pipefail +SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) + +########################################################################### +# CONFIGURATION +########################################################################### + +BUILD_PROJECT_FILE="$SCRIPT_DIR/Build.csproj" +TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp" + +DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json" +DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" +DOTNET_CHANNEL="Current" + +export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +export DOTNET_MULTILEVEL_LOOKUP=0 + +########################################################################### +# EXECUTION +########################################################################### + +function FirstJsonValue { + perl -nle 'print $1 if m{"'"$1"'": "([^"]+)",?}' <<< "${@:2}" +} + +# If dotnet CLI is installed globally and it matches requested version, use for execution +if [ -x "$(command -v dotnet)" ] && dotnet --version &>/dev/null; then + export DOTNET_EXE="$(command -v dotnet)" +else + # Download install script + DOTNET_INSTALL_FILE="$TEMP_DIRECTORY/dotnet-install.sh" + mkdir -p "$TEMP_DIRECTORY" + curl -Lsfo "$DOTNET_INSTALL_FILE" "$DOTNET_INSTALL_URL" + chmod +x "$DOTNET_INSTALL_FILE" + + # If global.json exists, load expected version + if [[ -f "$DOTNET_GLOBAL_FILE" ]]; then + DOTNET_VERSION=$(FirstJsonValue "version" "$(cat "$DOTNET_GLOBAL_FILE")") + if [[ "$DOTNET_VERSION" == "" ]]; then + unset DOTNET_VERSION + fi + fi + + # Install by channel or version + DOTNET_DIRECTORY="$TEMP_DIRECTORY/dotnet-unix" + if [[ -z ${DOTNET_VERSION+x} ]]; then + "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --channel "$DOTNET_CHANNEL" --no-path + else + "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "$DOTNET_VERSION" --no-path + fi + export DOTNET_EXE="$DOTNET_DIRECTORY/dotnet" +fi + +echo "Microsoft (R) .NET Core SDK version $("$DOTNET_EXE" --version)" + +"$DOTNET_EXE" build "$BUILD_PROJECT_FILE" /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet +"$DOTNET_EXE" run --project "$BUILD_PROJECT_FILE" --no-build -- "$@" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4835fa4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## [1.0.0] / YYYY-MM-DD +- First Release + +[vNext]: ../../compare/1.0.0...HEAD +[1.0.0]: ../../compare/1.0.0 \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d0d880b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 ricaun + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb30221 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# RevitVersion.DefineConstants + +[![Revit 2017](https://img.shields.io/badge/Revit-2017...2025-blue.svg)](../..) +[![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) +[![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) +[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) +[![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) + +## License + +This project is [licensed](LICENSE) under the [MIT Licence](https://en.wikipedia.org/wiki/MIT_License). + +--- + +Do you like this project? Please [star this project on GitHub](../../stargazers)! \ No newline at end of file diff --git a/RevitVersion.DefineConstants.Sample/Revit.cs b/RevitVersion.DefineConstants.Sample/Revit.cs new file mode 100644 index 0000000..19ef0f9 --- /dev/null +++ b/RevitVersion.DefineConstants.Sample/Revit.cs @@ -0,0 +1,90 @@ +namespace RevitVersion.DefineConstants.Sample +{ + public class Revit + { +#if REVIT2025 + public class Revit2025 { } +#endif +#if REVIT2024 + public class Revit2024 { } +#endif +#if REVIT2023 + public class Revit2023 { } +#endif +#if REVIT2022 + public class Revit2022 { } +#endif +#if REVIT2021 + public class Revit2021 { } +#endif +#if REVIT2020 + public class Revit2020 { } +#endif +#if REVIT2019 + public class Revit2019 { } +#endif +#if REVIT2018 + public class Revit2018 { } +#endif +#if REVIT2017 + public class Revit2017 { } +#endif + + +#if REVIT2025_OR_LESS + public class Revit2025OrLess { } +#endif +#if REVIT2024_OR_LESS + public class Revit2024OrLess { } +#endif +#if REVIT2023_OR_LESS + public class Revit2023OrLess { } +#endif +#if REVIT2022_OR_LESS + public class Revit2022OrLess { } +#endif +#if REVIT2021_OR_LESS + public class Revit2021OrLess { } +#endif +#if REVIT2020_OR_LESS + public class Revit2020OrLess { } +#endif +#if REVIT2019_OR_LESS + public class Revit2019OrLess { } +#endif +#if REVIT2018_OR_LESS + public class Revit2018OrLess { } +#endif +#if REVIT2017_OR_LESS + public class Revit2017OrLess { } +#endif + +#if REVIT2025_OR_GREATER + public class Revit2025OrGreater { } +#endif +#if REVIT2024_OR_GREATER + public class Revit2024OrGreater { } +#endif +#if REVIT2023_OR_GREATER + public class Revit2023OrGreater { } +#endif +#if REVIT2022_OR_GREATER + public class Revit2022OrGreater { } +#endif +#if REVIT2021_OR_GREATER + public class Revit2021OrGreater { } +#endif +#if REVIT2020_OR_GREATER + public class Revit2020OrGreater { } +#endif +#if REVIT2019_OR_GREATER + public class Revit2019OrGreater { } +#endif +#if REVIT2018_OR_GREATER + public class Revit2018OrGreater { } +#endif +#if REVIT2017_OR_GREATER + public class Revit2017OrGreater { } +#endif + } +} diff --git a/RevitVersion.DefineConstants.Sample/RevitVersion.DefineConstants.Sample.csproj b/RevitVersion.DefineConstants.Sample/RevitVersion.DefineConstants.Sample.csproj new file mode 100644 index 0000000..f682a7f --- /dev/null +++ b/RevitVersion.DefineConstants.Sample/RevitVersion.DefineConstants.Sample.csproj @@ -0,0 +1,12 @@ + + + + net45 + 2023 + + + + + + + diff --git a/RevitVersion.DefineConstants.sln b/RevitVersion.DefineConstants.sln new file mode 100644 index 0000000..6d93266 --- /dev/null +++ b/RevitVersion.DefineConstants.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34525.116 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RevitVersion.DefineConstants", "RevitVersion.DefineConstants\RevitVersion.DefineConstants.csproj", "{92328A76-ABD3-4197-AB06-19741F2F4566}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build", "Build\Build.csproj", "{0B30860B-8D9D-4138-9655-5823A9ADCFB3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{762FAA33-5139-481F-A53F-1F260985DCB9}" + ProjectSection(SolutionItems) = preProject + CHANGELOG.md = CHANGELOG.md + LICENSE = LICENSE + nuget.config = nuget.config + README.md = README.md + EndProjectSection +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RevitVersion.DefineConstants.Sample", "RevitVersion.DefineConstants.Sample\RevitVersion.DefineConstants.Sample.csproj", "{A6A89BCB-55F2-4918-AED1-8E47373740AB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {92328A76-ABD3-4197-AB06-19741F2F4566}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {92328A76-ABD3-4197-AB06-19741F2F4566}.Debug|Any CPU.Build.0 = Debug|Any CPU + {92328A76-ABD3-4197-AB06-19741F2F4566}.Release|Any CPU.ActiveCfg = Release|Any CPU + {92328A76-ABD3-4197-AB06-19741F2F4566}.Release|Any CPU.Build.0 = Release|Any CPU + {0B30860B-8D9D-4138-9655-5823A9ADCFB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0B30860B-8D9D-4138-9655-5823A9ADCFB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A6A89BCB-55F2-4918-AED1-8E47373740AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A6A89BCB-55F2-4918-AED1-8E47373740AB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A6A89BCB-55F2-4918-AED1-8E47373740AB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A6A89BCB-55F2-4918-AED1-8E47373740AB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {28E9858A-A611-41EA-8898-E8921DBA8668} + EndGlobalSection +EndGlobal diff --git a/RevitVersion.DefineConstants/Resources/icon.png b/RevitVersion.DefineConstants/Resources/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0d0721651ac89d11cfc3f367e5e0ffff64c2a8c6 GIT binary patch literal 1507 zcmV<91swW`P)EX>4Tx04R}tkv&MmKpe$iQ;Q-k3U&~2$WUFhAS&W0RV;#q(pG5I!Q|2}Xws0R zxHt-~1qVMCs}3&Cx;nTDg5U>;i>s5Oibq^n3@1i`*``n)+q~uKo_(bA4rW+RV2Jy_M zrE}gV4zrS^5T6r|8+1Y9N3P2*zi}=)Ebz>*kx9)Hhl#~v2g@DIN`^{2O&n2Fjq-)8 z%L?Z$&T6H`TKD8H4Cb|!G}mbkBaS5`kc0>sHIz|-g($5WDJD|1AM@}JIsPQMWO9|k z$gzMbR7j2={11M2YZj&^-K1a)2)x+##|Y593pDGt{e5iP%@e@?3|wh#f3*S3ev)2q zYmpO2rVU|00006VoOIv0RI600RN!9r;`8x010qNS#tmY z4#WTe4#WYKD-Ig~000McNliru;{^~7E+vj&>jD4(1K>$SK~z}7y_aujTU8jwfA=PB z+L@+-6>C|jA=zfJRcGhc+cZHOqZ7Kx2Ih;prIxxW{$T@y)_xeM;6Kz(#t@WE{V>#q zf>p*?3$x5N`(WB`I2_hCwOfmrrYx*o)^zFh%e^JWoA%zc?12mSp7WmfdCvQu_uO*? zjNu-@3v2=I2i7a?abO%62Ks?H))+n@1l$JX6`tEbC(y7K#8treI!JRpJ;1~HlD`0? z0+J**OOh-KLcSsvfLDwVn}Or1gEtx*W%Pk_lSU(22b2P5mlMzeyqnpe3Q)1RyqtqxFSep0E=HrI z(rF_iB;ao#q9vdj_$gadwg7+vlL@ce%>hXwK0C|hsVO5O8kLHg1`snk-UkYdcyie7 zd>sf74hE@nI`s}K1m06W#Ed%Moo~6+Ih_mygM1SRP;Rs78M0U1C)99%0z9Z?sg(jP z2!g;P4hJv#d|1q8!qF({#l_`@Sb>nJyyTqyKR0h0iiXu<;b>D6m)hHDs;ODd^eJGS z33vi%&Sf=x{W@o_T;ZV&8*td|x`mWktvs`B8@`Pj8N7B)Ya(W#&jdUT>|D;-O6L0|7x{@OqxHLJ*=NB%pkWN$Y za$y!lT_Qw5U~6S1tsW2ackb}(#00V|1B{t~XMq~MGfJh?{5&$kcaaG9*=$r-ROpUI zabY1(R#)S%t>w>HjL}$ZL}V2xE+}BNFarrA1MJ1cyt!)^hj;A2Vm2Eho0*&A?K5XM z-q)v=Xu=Fc_2%)p?c4cq-#)#Y%@P*UX-Q#<}Lj0!vzZe#jb6yp8i9e_r|hxVM+rySj39CxP{%a)A6Xm({%` zC3!Ef*nh*Fjcy>RRzU}M7wQRV>2KH%{BRcqbOGV)^FSMrGU8=C9%norH%dMayp_2R zsQ4W?1e{vQ!>v?`k9vCe;M_UVvdl|9AMfnhLrGDQ9s#cce`pB+_zI|1jQ*cEStc|z zM6j!izh-8Z+K-(-Pv_tuN1K{xZD>Fggk0pG0$*hBgxNTvERxqU8zU1F9PaGom(fv8 z&r^v6hfbg7%l>{k{C+$xSGGw95HymjR$xA#i-{-*a;<~A?pAS@F?KaxSkIJ1BwV;_!nF)ct5bWucH6}002ov JPDHLkV1n&nu?heH literal 0 HcmV?d00001 diff --git a/RevitVersion.DefineConstants/RevitVersion.DefineConstants.csproj b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.csproj new file mode 100644 index 0000000..c85f9b9 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.csproj @@ -0,0 +1,105 @@ + + + + + netstandard1.0 + Library + AnyCPU + latest + false + None + Debug; Release + + + + + true + bin\Release\ + + MSB3052 + None + + + + + true + bin\Debug\ + DEBUG;TRACE + Full + + + + RevitVersion.DefineConstants + 1.0.0-alpha + {92328A76-ABD3-4197-AB06-19741F2F4566} + + + + ricaun + Luiz Henrique Cassettari + DefineConstants for RevitVersion. + $([System.DateTime]::Now.ToString('yyyy')) + + + + $(PackageId) + Copyright © $(CopyrightYears) $(Company) + + + + ricaun-io + true + https://github.com/$(GitHubRepositoryOwner)/$(PackageId) + https://github.com/$(GitHubRepositoryOwner)/$(PackageId) + github + icon.png + README.md + + + + + + True + + false + + + + + + True + + false + + + + + + True + + + + + + + + + + + $(NoWarn);NU5128;NU5111 + false + true + false + true + true + + + + + + + + + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion.DefineConstants.props b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.props new file mode 100644 index 0000000..4de98b5 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion.DefineConstants.targets b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.targets new file mode 100644 index 0000000..e34a49c --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion.DefineConstants.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2017.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2017.targets new file mode 100644 index 0000000..30b4e70 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2017.targets @@ -0,0 +1,15 @@ + + + + 2017 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2018.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2018.targets new file mode 100644 index 0000000..6ee67d6 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2018.targets @@ -0,0 +1,15 @@ + + + + 2018 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2019.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2019.targets new file mode 100644 index 0000000..1934f2b --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2019.targets @@ -0,0 +1,15 @@ + + + + 2019 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2020.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2020.targets new file mode 100644 index 0000000..0426fbc --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2020.targets @@ -0,0 +1,15 @@ + + + + 2020 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2021.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2021.targets new file mode 100644 index 0000000..eab19a0 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2021.targets @@ -0,0 +1,15 @@ + + + + 2021 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2022.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2022.targets new file mode 100644 index 0000000..f9b35df --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2022.targets @@ -0,0 +1,15 @@ + + + + 2022 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2023.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2023.targets new file mode 100644 index 0000000..77265a1 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2023.targets @@ -0,0 +1,15 @@ + + + + 2023 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2024.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2024.targets new file mode 100644 index 0000000..ae9abc2 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2024.targets @@ -0,0 +1,15 @@ + + + + 2024 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2025.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2025.targets new file mode 100644 index 0000000..15770b3 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.2025.targets @@ -0,0 +1,15 @@ + + + + 2025 + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_LESS + + + + $(DefineConstants);REVIT$(RevitDefineConstants)_OR_GREATER + + + \ No newline at end of file diff --git a/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.targets b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.targets new file mode 100644 index 0000000..e961d06 --- /dev/null +++ b/RevitVersion.DefineConstants/RevitVersion/RevitVersionConstants.targets @@ -0,0 +1,16 @@ + + + + + $(DefineConstants);REVIT$(RevitVersion) + + + + + + + + + + + \ No newline at end of file diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..07d4307 --- /dev/null +++ b/build.cmd @@ -0,0 +1,3 @@ +cd .\Build\ +call build.cmd %* +timeout 15 \ No newline at end of file diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..8980bb0 --- /dev/null +++ b/nuget.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file