diff --git a/appveyor.yml b/appveyor.yml index 214ffca..d71a5ad 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -59,19 +59,19 @@ install: # Run scripts below before before_build: - where msbuild - - cmd: msbuild /t:Clean + - cmd: msbuild /t:Clean # To run your custom scripts instead of automatic MSBuild build_script: - - cmd: msbuild /t:Rebuild + - cmd: msbuild /t:Rebuild - ps: .\build.ps1 after_build: - - cmd: 7z a RevitAddin_2014-2019.zip %APPVEYOR_BUILD_FOLDER%\dist\*.* - - cmd: 7z a RevitAddin_2014-2019.zip %APPVEYOR_BUILD_FOLDER%\dist\**\*.* + - cmd: 7z a RevitAddin_2014-2020.zip %APPVEYOR_BUILD_FOLDER%\dist\*.* + - cmd: 7z a RevitAddin_2014-2020.zip %APPVEYOR_BUILD_FOLDER%\dist\**\*.* artifacts: - - path: RevitAddin_2014-2019.zip + - path: RevitAddin_2014-2020.zip name: RevitAddin after_deploy: @@ -83,7 +83,7 @@ after_deploy: "Content-type" = "application/json" } Invoke-RestMethod -Method Put "$apiUrl/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/settings/build-number" -Body '{"nextBuildNumber": 1 }' -Headers $headers - + ## Update the version in case of ragged build $env:APPVEYOR_REPO_TAG_NAME = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v") if ($env:APPVEYOR_REPO_TAG_NAME -match '^([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?)$') { $tag_ver = [version]$env:APPVEYOR_REPO_TAG_NAME @@ -94,16 +94,16 @@ after_deploy: } # Deploy to GitHub releases -deploy: - - +deploy: + - provider: GitHub - auth_token: + auth_token: secure: 2+d0KgCbWQpUR8TZfzvUEzbi4NQP6F/Tt0PUwLn6jXZCyO8FnrFVFJPsFa0QBQFl artifact: RevitAddin draft: false force_update: true prerelease: false - release: "Revit 2014-2019 C# Addin Template fro Visual Studio v$(APPVEYOR_REPO_TAG_NAME)" + release: "Revit 2014-2020 C# Addin Template fro Visual Studio v$(APPVEYOR_REPO_TAG_NAME)" tag: $(APPVEYOR_REPO_TAG_NAME) - on: + on: appveyor_repo_tag: true \ No newline at end of file diff --git a/src/Properties/launchSettings.json b/src/Properties/launchSettings.json index ecae105..5cab1f7 100644 --- a/src/Properties/launchSettings.json +++ b/src/Properties/launchSettings.json @@ -1,5 +1,11 @@ { "profiles": { + "Revit 2020": { + "commandName": "Executable", + "executablePath": "%ProgramW6432%\\Autodesk\\Revit 2020\\Revit.exe", + "commandLineArgs": "", + "use64Bit": true + }, "Revit 2019": { "commandName": "Executable", "executablePath": "%ProgramW6432%\\Autodesk\\Revit 2019\\Revit.exe", diff --git a/src/RevitAddin.csproj b/src/RevitAddin.csproj index 8de03ba..626898b 100644 --- a/src/RevitAddin.csproj +++ b/src/RevitAddin.csproj @@ -1,4 +1,4 @@ - + Debug;Debug One;Release @@ -14,8 +14,10 @@ 2017 | net452 2018 | net46 2019 | net47 + 2020 | net471 + For example you can exclude Revit 2014, by simply removing net40 target belows --> - net45;net451;net452;net46;net47 + net45;net451;net452;net46;net47;net471 win @@ -26,7 +28,7 @@ e.g. if you want to debug ONLY Revit 2019, put net47 below and switch to 'Debug One' configuration --> - net47 + net471 @@ -47,6 +49,9 @@ 2019 + + 2020 + @@ -91,23 +96,19 @@ - - - - - - - - - - - + + + + + + + - +