Skip to content

Commit

Permalink
Solution changes for multi-release building (#58)
Browse files Browse the repository at this point in the history
* Solution changes for multi-release building

* Add MSI installer, AIP file for Advanced Installer

* Sign the MSI file

* Update solution

Use Visual Studio 2015
Remove extraneous configurations

Co-authored-by: Harry Mattison <[email protected]>
  • Loading branch information
harrymattison and boostyourbim authored Apr 14, 2020
1 parent 6885dda commit 67395aa
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 79 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ Generated_Code #added for RIA/Silverlight projects
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
installer/Revit Lookup-cache/part1/output-info.ini
installer/Revit Lookup-cache/part1/disk1.cab
installer/Revit Lookup-cache/cacheIndex.txt
installer/Revit Lookup.back.aip
86 changes: 17 additions & 69 deletions CS/RevitLookup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,93 +50,39 @@
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG;ADSK_INTERNAL</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '2021|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
<OutputPath>bin\2021\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '2020|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\2020\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug %28For Release build of Revit%29|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '2019|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
<OutputPath>bin\2019\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="AdWindows">
<HintPath>C:\Program Files\Autodesk\Revit 2021\AdWindows.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\AdWindows.dll</HintPath>
</Reference>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="RevitAPI">
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\RevitAPI.dll</HintPath>
</Reference>
<Reference Include="RevitAPIIFC">
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIIFC.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\RevitAPIIFC.dll</HintPath>
</Reference>
<Reference Include="RevitAPIMacros">
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIMacros.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\RevitAPIMacros.dll</HintPath>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUI.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\RevitAPIUI.dll</HintPath>
</Reference>
<Reference Include="RevitAPIUIMacros">
<HintPath>C:\Program Files\Autodesk\Revit 2021\RevitAPIUIMacros.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\Revit $(Configuration)\RevitAPIUIMacros.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>
Expand Down Expand Up @@ -433,9 +379,11 @@
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>copy "$(ProjectDir)RevitLookup.addin" "$(AppData)\Autodesk\REVIT\Addins\2021"
<PostBuildEvent>REM "C:\Program Files (x86)\Windows Kits\8.0\bin\x64\signtool.exe" sign /f "C:\Users\harry_000\Documents\Boost Your BIM\BoostYourBIM.pfx" /p $(CodeSignPassword) /v $(TargetPath)

copy "$(ProjectDir)RevitLookup.addin" "$(AppData)\Autodesk\REVIT\Addins\$(Configuration)"

copy "$(ProjectDir)bin\Debug\RevitLookup.dll" "$(AppData)\Autodesk\REVIT\Addins\2021"
copy $(TargetPath) "$(AppData)\Autodesk\REVIT\Addins\$(Configuration)"
</PostBuildEvent>
</PropertyGroup>
</Project>
23 changes: 13 additions & 10 deletions CS/RevitLookup.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RevitLookup", "RevitLookup.csproj", "{05C77115-2277-4DFC-8F95-BE37E5F1130F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug (For Release build of Revit)|Any CPU = Debug (For Release build of Revit)|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
2019|Any CPU = 2019|Any CPU
2020|Any CPU = 2020|Any CPU
2021|Any CPU = 2021|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Debug (For Release build of Revit)|Any CPU.ActiveCfg = Debug (For Release build of Revit)|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Debug (For Release build of Revit)|Any CPU.Build.0 = Debug (For Release build of Revit)|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.Release|Any CPU.Build.0 = Release|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2019|Any CPU.ActiveCfg = 2019|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2019|Any CPU.Build.0 = 2019|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2020|Any CPU.ActiveCfg = 2020|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2020|Any CPU.Build.0 = 2020|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2021|Any CPU.ActiveCfg = 2021|Any CPU
{05C77115-2277-4DFC-8F95-BE37E5F1130F}.2021|Any CPU.Build.0 = 2021|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CDC9D108-9880-46A7-B5BE-86ED4F593005}
EndGlobalSection
EndGlobal
Binary file not shown.
2 changes: 2 additions & 0 deletions installer/Revit Lookup-SetupFiles/sign.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"C:\Program Files (x86)\Windows Kits\8.0\bin\x64\signtool.exe" sign /f "C:\Users\harry_000\Documents\Boost Your BIM\BoostYourBIM.pfx" /t "http://timestamp.comodoca.com/authenticode" /p %CodeSignPassword% /v *.msi
pause
Loading

0 comments on commit 67395aa

Please sign in to comment.