Skip to content

Commit

Permalink
added dotnet48 assembly references and 2021 build target
Browse files Browse the repository at this point in the history
  • Loading branch information
Gertjan Van den Broek committed Feb 8, 2021
1 parent 59c1392 commit 0509137
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 18 deletions.
9 changes: 7 additions & 2 deletions PythonConsoleControl/PythonConsoleControl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
2018 | net46
2019 | net47
2020 | net471
2021 | net48
For example you can exclude Revit 2014, by simply removing net40 target belows
-->
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471</TargetFrameworks>
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471;net472</TargetFrameworks>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
Expand All @@ -29,7 +30,7 @@
e.g. if you want to debug ONLY Revit 2019,
put net47 below and switch to 'Debug One' configuration
-->
<TargetFrameworks>net40</TargetFrameworks>
<TargetFrameworks>net48</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
Expand All @@ -53,6 +54,9 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'net471' ">
<RevitVersion>2020</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net48' ">
<RevitVersion>2021</RevitVersion>
</PropertyGroup>

<PropertyGroup>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
Expand Down Expand Up @@ -99,6 +103,7 @@
<PackageReference Include="Autodesk.Revit.SDK" Version="2018.*" Condition=" '$(RevitVersion)' == '2018' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2019.*" Condition=" '$(RevitVersion)' == '2019' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2020.1.0" Condition=" '$(RevitVersion)' == '2020' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2021.*" Condition=" '$(RevitVersion)' == '2021' " PrivateAssets="All" />
<PackageReference Include="AvalonEdit" Version="6.0.1"/>

</ItemGroup>
Expand Down
12 changes: 4 additions & 8 deletions RevitPythonShell/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,46 @@
"Revit 2020": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2020\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2020 W Drive": {
"commandName": "Executable",
"executablePath": "W:\\Program Files\\Autodesk\\Revit 2020\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2019": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2019\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2018": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2018\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2017": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2017\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2016": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2016\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2015": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2015\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2014": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2014\\Revit.exe",
"commandLineArgs": "",
"use64Bit": true
},
"Revit 2021": {
"commandName": "Executable",
"executablePath": "%ProgramW6432%\\Autodesk\\Revit 2021\\Revit.exe"
}
}
}
14 changes: 9 additions & 5 deletions RevitPythonShell/RevitPythonShell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
2018 | net46
2019 | net47
2020 | net471
2021 | net48
For example you can exclude Revit 2014, by simply removing net40 target belows
-->
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471</TargetFrameworks>
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net48</TargetFrameworks>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
Expand All @@ -30,7 +31,7 @@
e.g. if you want to debug ONLY Revit 2019,
put net47 below and switch to 'Debug One' configuration
-->
<TargetFrameworks>net471</TargetFrameworks>
<TargetFrameworks>net48</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
Expand All @@ -51,10 +52,12 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'net47' ">
<RevitVersion>2019</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net471' ">
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
<RevitVersion>2020</RevitVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net48' ">
<RevitVersion>2021</RevitVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
<PlatformTarget>x64</PlatformTarget>
Expand Down Expand Up @@ -91,7 +94,7 @@
<OutputPath>.\bin\$(Configuration)\$(RevitVersion)</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug One|net471|x64'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug One|net472|x64'">
<Optimize>false</Optimize>
</PropertyGroup>

Expand All @@ -108,6 +111,7 @@
<PackageReference Include="Autodesk.Revit.SDK" Version="2018.*" Condition=" '$(RevitVersion)' == '2018' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2019.*" Condition=" '$(RevitVersion)' == '2019' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2020.*" Condition=" '$(RevitVersion)' == '2020' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2021.*" Condition=" '$(RevitVersion)' == '2021' " PrivateAssets="All" />
<PackageReference Include="AvalonEdit" Version="6.0.1"/>
</ItemGroup>

Expand Down
5 changes: 4 additions & 1 deletion RevitPythonShell/RevitPythonShell.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup>
<ActiveDebugProfile>Revit 2020 W Drive</ActiveDebugProfile>
<ActiveDebugProfile>Revit 2021</ActiveDebugProfile>
<ShowAllFiles>false</ShowAllFiles>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug One|net472|x64'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<ItemGroup>
<None Update="Manifests\AddinTemplate.addin">
<SubType>Designer</SubType>
Expand Down
9 changes: 7 additions & 2 deletions RpsRuntime/RpsRuntime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
2018 | net46
2019 | net47
2020 | net471
2021 | net472
For example you can exclude Revit 2014, by simply removing net40 target belows
-->
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471</TargetFrameworks>
<TargetFrameworks>net40;net45;net451;net452;net46;net47;net471;net48</TargetFrameworks>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
</PropertyGroup>

Expand All @@ -28,7 +29,7 @@
e.g. if you want to debug ONLY Revit 2019,
put net47 below and switch to 'Debug One' configuration
-->
<TargetFrameworks>net471</TargetFrameworks>
<TargetFrameworks>net48</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
Expand All @@ -52,6 +53,9 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'net471' ">
<RevitVersion>2020</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net48' ">
<RevitVersion>2021</RevitVersion>
</PropertyGroup>

<PropertyGroup>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
Expand Down Expand Up @@ -103,6 +107,7 @@
<PackageReference Include="Autodesk.Revit.SDK" Version="2018.*" Condition=" '$(RevitVersion)' == '2018' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2019.*" Condition=" '$(RevitVersion)' == '2019' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2020.1.0" Condition=" '$(RevitVersion)' == '2020' " PrivateAssets="All" />
<PackageReference Include="Autodesk.Revit.SDK" Version="2021.*" Condition=" '$(RevitVersion)' == '2021' " PrivateAssets="All" />
<PackageReference Include="AvalonEdit" Version="6.0.1"/>
</ItemGroup>

Expand Down

0 comments on commit 0509137

Please sign in to comment.