-
Notifications
You must be signed in to change notification settings - Fork 3
End of milestone procedure
Fraser Greenroyd edited this page Mar 31, 2023
·
16 revisions
- Create the project for the new upgrader (as a console application)
- Add reference to the
PostBuildandBHoMUpgraderprojects - Make sure you fill in the assembly info
- Set the build folder to
Build\- ensure this is done for bothdebugandreleaseconfigurations - Copy the
Converter.csfile from a previous version and delete all the private methods. In the constructor, only keep the assignment of the propertyPreviousVersion(make sure you correct it). Also correct the namespace. - Copy the
Upgrades.jsonfile from the previous version and delete any potential versioning it contains. - Copy the
Program.csfile from a previous version. make sure to correct the namespace. - In post build, add those lines (where
XXis the current version number):
- Add reference to the
xcopy /Y /I /E "$(TargetDir)*.dll" C:\ProgramData\BHoM\Upgrades\BHoMUpgraderXX
xcopy /Y /I /E "$(TargetDir)BHoMUpgraderXX.exe" C:\ProgramData\BHoM\Upgrades\BHoMUpgraderXX
call "$(TargetDir)PostBuild.exe" ..\..\..\ "C:\ProgramData\BHoM\Upgrades"
-
Freeze current version
- Copy the
Upgrades.jsonof the current upgrader fromProgramData/BHoM/Upgradesinto the one inside that upgrader project. - Ensure the CopyToOutputDirectory setting is set to
Copy Alwaysfor thisUpgrades.jsonfile. - In post-build: delete the call to PostBuild and replace it with
xcopy /Y /I /E "$(TargetDir)Upgrades.json" C:\ProgramData\BHoM\Upgrades\BHoMUpgraderXXwhereXXis the current version number - Remove the dependency to PostBuild (it's a project dependency)
- Copy the
-
Update AssemblyFileVersion of
- BHoMUpgrader
- PostBuild