Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task<AppBundle> Handle(CreateForgeApplicationCommand request, Cance


// check if ZIP with bundle is here
string packageZipPath = @$"C:\Users\smoreau\Github\RevitToIFCApp\src\RevitToIFCBundle\bin\{request.RevitVersion}\RevitToIFCBundle{request.RevitVersion}.zip";
string packageZipPath = @$"C:\Users\smoreau\Github\BIM42\RevitToIFCApp\src\RevitToIFCBundle\bin\Debug\RevitToIFCBundle{request.RevitVersion}.zip";
if (!System.IO.File.Exists(packageZipPath))
{
throw new Exception("Appbundle not found at " + packageZipPath);
Expand Down
13 changes: 9 additions & 4 deletions src/RevitToIFCBundle/RevitToIFCBundle.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<OutputType>Library</OutputType>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<!-- Create the configuration to buid various versions of Revit -->
<Configurations>Debug;2025;2024;2023;2022</Configurations>
<Configurations>Debug;2027;2026;2025;2024;2023;2022</Configurations>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Platforms>x64</Platforms>
<NuGetAudit>false</NuGetAudit>
Expand All @@ -27,14 +27,19 @@
Instead of building all versions above,
we just put ONE version below and switch to 'Debug' configuration
-->
<RevitVersion>2025</RevitVersion>
<RevitVersion>2027</RevitVersion>
<StartAction>Program</StartAction>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2025\Revit.exe</StartProgram>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2027\Revit.exe</StartProgram>
<RevitNugetVersion>$(RevitVersion).*</RevitNugetVersion>
</PropertyGroup>

<Choose>
<When Condition=" '$(RevitVersion)'=='2025' ">
<When Condition="'$(RevitVersion)' == '2027'">
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
</PropertyGroup>
</When>
<When Condition="'$(RevitVersion)' == '2025' Or '$(RevitVersion)' == '2026'">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/WebApp/Controllers/ForgeApplicationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task<ActionResult<AppBundle>> CreateApplication()
{
AppBundle appBundleId = await Mediator.Send(new CreateForgeApplicationCommand()
{
RevitVersion = "2024"
RevitVersion = "2027"
});

if (appBundleId == null)
Expand All @@ -71,7 +71,7 @@ public async Task<ActionResult<List<string>>> CreateFullApplication()
{
try
{
string[] revitVersions = ["2022", "2023", "2024", "2025"];
string[] revitVersions = ["2026", "2027"];

List<string> creationIds = new List<string>();
foreach (string version in revitVersions)
Expand Down
Loading