Skip to content

Commit

Permalink
Upgrade nuget packages to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
adamenagy committed Feb 17, 2023
1 parent a6721a8 commit 5422ef3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions forgesample/Controllers/DesignAutomationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ public async Task<IActionResult> CreateAppBundle([FromBody]JObject appBundleSpec

// upload the zip with .bundle
RestClient uploadClient = new RestClient(newAppVersion.UploadParameters.EndpointURL);
RestRequest request = new RestRequest(string.Empty, Method.POST);
RestRequest request = new RestRequest(string.Empty, Method.Post);
request.AlwaysMultipartFormData = true;
foreach (KeyValuePair<string, string> x in newAppVersion.UploadParameters.FormData) request.AddParameter(x.Key, x.Value);
request.AddFile("file", packageZipPath);
request.AddHeader("Cache-Control", "no-cache");
await uploadClient.ExecuteTaskAsync(request);
await uploadClient.ExecuteAsync(request);

return Ok(new { AppBundle = QualifiedBundleActivityName, Version = newAppVersion.Version });
}
Expand Down
2 changes: 1 addition & 1 deletion forgesample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void ConfigureServices(IServiceCollection services)
options.EnableEndpointRouting = false;
//options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Stream)));
options.InputFormatters.Insert(0, new RawRequestBodyFormatter());
}).SetCompatibilityVersion(CompatibilityVersion.Version_3_0).AddNewtonsoftJson();
}).AddNewtonsoftJson();
services.AddSignalR();
}

Expand Down
6 changes: 3 additions & 3 deletions forgesample/forgesample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Folder Include="wwwroot\bundles\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autodesk.Forge" Version="1.9.0" />
<PackageReference Include="Autodesk.Forge.DesignAutomation" Version="3.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0" />
<PackageReference Include="Autodesk.Forge" Version="1.9.7" />
<PackageReference Include="Autodesk.Forge.DesignAutomation" Version="5.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.3" />
</ItemGroup>
</Project>

0 comments on commit 5422ef3

Please sign in to comment.