UploadPackage 2.0.0
dotnet add package UploadPackage --version 2.0.0
NuGet\Install-Package UploadPackage -Version 2.0.0
<PackageReference Include="UploadPackage" Version="2.0.0" />
paket add UploadPackage --version 2.0.0
#r "nuget: UploadPackage, 2.0.0"
// Install UploadPackage as a Cake Addin #addin nuget:?package=UploadPackage&version=2.0.0 // Install UploadPackage as a Cake Tool #tool nuget:?package=UploadPackage&version=2.0.0
The steps need to be followed to integrate this package into the .net core project.
Step 1: Download this package from nuget package manager 'UploadPackage'
Step 2: Register a sevice in program.cs as,
builder.Services.AddSingleton<IUPLOADING, UPLOADING>();
Step 3: Solve the dependency injection in controller by,
private readonly IUPLOADING _G;
public HomeController(IUPLOADING G) { _G = G; }
Step 4: Add this line in program.cs,
app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider("{physical file path}"), RequestPath = "{virtual file path}", });
eg: {physical file path} : "../../.."
{virtual file path} : "/../.."
Note:
- This package is build from .Net 6
- Always use the latest version
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
- Microsoft.Extensions.Configuration.UserSecrets (>= 6.0.1)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 120 | 9/22/2023 |