Here is a workaround via editing the existing NuGet package:
1. Choose a directory we will store our NuGet package. If necessary, create it.
For example, let it be C:\NuGet.
2. Add this directory to the list of NuGet sources for Visual Studio.
2.1 To do this, go to the Tools menu -> NuGet Package Manager -> Package Manager Settings.
2.2 In the window that opens, go to the item below with the name "Package Sources".
2.3 Add a new source using the [+] button using any name.
2.4 Set the path to the folder as Source (in our example, it is C:\NuGet).
2.5 Click [Update].
2.6 We close the dialogue.
3. Go to nuget.org to the NuGet package page
https://www.nuget.org/packages/Devart.D ... le.EFCore/ and download it by clicking "Download package", place it in the desired directory (in our example, it's C:\NuGet).
4. The current version of the package is 9.14.1180, so we will edit the devart.data.oracle.efcore.9.14.1180.nupkg file.
We will describe how to unpack and pack the package with the built-in Windows 10 tools, although you can do that with another more convenient tool (e.g.: 7-zip).
4.1 Rename the file, changing the extension to zip and, for example, increasing the build by one from 1180 to 1181 (such an increase is safe and will not lead to conflicts in the future, since we never release public NuGet packages that differ in the build number only by one, but always by a larger value; well, you can also, for example, not increment by one, but change to some specific build number, for example, to 9999) => then we get devart.data.oracle.efcore.9.14.1181.zip.
4.2 Call the context menu on the file, the Extract All item. It will be unpacked into the C:\NuGet\devart.data.oracle.efcore.9.14.1181 subfolder.
4.3 Go to this folder and open the text file Devart.Data.Oracle.EFCore.nuspec for editing.
4.4 Change the version value. If it was <version>9.14.1180</version>, change to <version>9.14.1181</version>.
4.5 Delete lines
Code: Select all
<group targetFramework=".NETStandard2.1">
<dependency id="Microsoft.EntityFrameworkCore.Relational" version="[5.0.2, 6.0.0)" />
<dependency id="Devart.Data.Oracle" version="9.14.1180" />
</group>
4.6 Save the Devart.Data.Oracle.EFCore.nuspec file.
4.7 Go to the lib subdirectory and delete the netstandard2.1 subdirectory in it, i.e. you need to delete the folder C:\NuGet\devart.data.oracle.efcore.9.14.1181\lib\netstandard2.1\.
4.8 Navigate to the C:\NuGet\devart.data.oracle.efcore.9.14.1181\ folder, select all files including subdirectories, call the context menu: "Send to" -> "Compressed (zipped) folder".
4.9 Rename the resulting archive to devart.data.oracle.efcore.9.14.1181.nupkg
4.10 We move this file from this directory one level up, i.e. in C:\NuGet\.
4.11 In the C:\NuGet\ directory, delete the already unnecessary file devart.data.oracle.efcore.9.14.1181.zip and the subdirectory devart.data.oracle.efcore.9.14.1181
5. Open Visual Studio project and install devart.data.oracle.efcore package with version 9.14.1181 to the project. Do not forget that if we do this through the NuGet Package Manager, then the Package source for it must be set not to nuget.org, but to All (or local source).
Note that if at some stage something was done incorrectly, this wrong package was connected to a project in Visual Studio at least once, then before fixing it, you need to delete it from the NuGet package cache (delete directory C:\Users\%Your_User_Name%\.nuget\packages\devart.data.oracle.efcore\9.14.1181) or just clear the cache completely, for example in VS via Tools menu -> NuGet Package Manager -> Package Manager Settings, "Clear All NuGet cache (s)" button.