Visual studio 2019 is getting 'access denied' on restoring packages on mac - visual-studio-mac

Im trying to restore solution packages in visual studio 2019 on my mac and i get 'access denied' on some folders. This error doesn't seem to have any pattern as some packages are actually restored in the same folder!
I have tried to run the app as sudo through the terminal and i still get the same error
Installing Microsoft.EntityFrameworkCore.InMemory 3.1.6.
Acquiring lock for the installation of System.Text.Encodings.Web 4.7.0
Acquired lock for the installation of System.Text.Encodings.Web 4.7.0
Installing System.Text.Encodings.Web 4.7.0.
Access to the path '/Users/georgemukwewa/.nuget/packages/system.runtime.compilerservices.unsafe/4.3.0' is denied.
Can someone help me with this please!!

Related

EntityFramework.Core.Tools nuget package installation error: "The process cannot access the file ef.exe because it is being used by another process"

While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the below error. Notice I didn't get any error while installing other related packages used for EF core
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Relational
Microsoft.EntityFrameworkCore.SqlServer
Here is the location of the file ef.exe
Basically the intention behind installing this package is to use EF command-line tools. I'm currently on Windows 10 and the .NET SDK installed on my machine is 3.1. I had previously 2 SDK's installed on my system(3.1 & 5.0). As per microsoft's documentaion, "The .NET CLI must choose an SDK version for every dotnet command. It uses the latest SDK installed on the machine by default." Therefore I went ahead and uninstalled .NET 5.0 SDK
Here are some of the solutions that I tried:
Deleting the package folder from '.nuget/packages/microsoft.entityframeworkcore.tools' & thereby the executable i.e. 'ef.exe' and reinstalling the same.
Installing the same package using dotnet cli.
Running Visual Studio 2019 as admin.
Deleted the folder "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions"
I have also tried some of the steps mentioned here on github: https://github.com/NuGet/Home/issues/1138
. Any kind of help would be really appreciated.
I have answered the detailed description of the solution here on microsoft's .NET Q&A platform.
'EntityFramework.Core.Tools' nuget package installation error

Visual Studio 2019 for Windows 7 - 64bit

After installing Visual Studio 2019 into my desktop, I'm getting error while opening as
Package Management Initialization Failed.
You can get more information by examining the file.
c:\users<username>\Appdate\Roaming\Microsoft\VisualStudio\16.0_7adceb78/Activitylog.XML.
Below is the content of the activitylog.xml file.
Failed to process PkgDef file
c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\dsltexttemplatingregistry_x86.pkgdef 8007001f VisualStudio 2021/02/21 04:49:45.445
34 ERROR PkgDef loading aborted 8007001f VisualStudio 2021/02/21 04:49:45.445
35 ERROR CPkgDefCacheNonVolatileBase: PkgDef cache creation failed. Going volatile and trying again
I already have dotnet framework 4.7.2 installed. Also I uninstalled and tried to install it again and even after reinstallation the same error is coming.
Please help me in resolving this issue.
Thanks in advance!

Cake.AppCenter: Could not locate executable

Using iOS operating system.
While trying to publish the APK in MAC machine via Jenkins I am facing the below error,
Error: One or more errors occurred. (AppCenter: Could not locate
executable.)
AppCenter: Could not locate executable.
I am facing this issue after upgrading my Visual Studio 2017 to Visual Studio 2019 with mono version 5.10.1 to 5.18.1. Its working fine in previously with Visual Studio 2017 and 5.10.1 mono version. The issue is reproduced only after upgrading the Visual Studio and mono version.
Note: While I have to publish the APK manually from my machine its working fine. But when I try to publish via Jenkins, facing this error. The issue can be reproduced only by calling the publish task (in cake file) from Jenkins.
Could you please suggest a solution for this?
AppCenterDistributeRelease(new AppCenterDistributeReleaseSettings
{
File =$"../Myapp.UWP/AppPackages/AppPackages_{revisionName}.app.zip",
Token = apiToken,
Group = "Collaborators",
ReleaseNotesFile = "../cireports/releasenotes/releasenotes.txt",
App = "My-Team/Myapp-Windows"
});
You need the AppCenter CLI installed which is what the Cake.AppCenter addin orchestrates.
It's a node tool installable using npm
npm install -g appcenter-cli
Once installed, the appcenter command will be globally available.

Delphi 6 General Update 2 - Error 115

I run D6_upd2_ent.exe after installing Borland Delphi 6.0 Enterprise.
This error has occurred during installation:
The dclnet60.bpl file does not exist in C:\Program Files (x86)\Borland\Delphi6\Bin.
I downloaded dclnet60.bpl from the Internet, copied it to that directory, then run D6_upd2_ent.exe again. But the same error occurred with another file.
(I installed Borland Delphi 6.0 Enterprise and D6_upd2_ent.exe on another computer, and no error occurred)
I need a solution to this problem.

NuGet: jQuery Mobile install error

I created an empty MVC 2 Empty Web Application, then use NuGet to upgrade my project to MVC 4. After that I use NuGet to install jQuery Mobile, but get errors. Here is the whole error messages
Attempting to resolve dependency 'jquery (≥ 1.6.4)'.
Installing 'jQuery 1.6.4'.
Successfully installed 'jQuery 1.6.4'.
Installing 'jquery.mobile 1.3.2'.
Successfully installed 'jquery.mobile 1.3.2'.
Adding 'jQuery 1.6.4' to MvcApplication1.
Successfully added 'jQuery 1.6.4' to MvcApplication1.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\install.ps1'.
Executing script file 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MSCExpress\MvcApplication1\packages\jQuery.1.6.4\Tools\uninstall.ps1'.
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
Uninstalling 'jQuery 1.6.4'.
Successfully uninstalled 'jQuery 1.6.4'.
Install failed. Rolling back...
Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
I am using Visual Studio 2010. I have found this link closed to my situation and tried it but still get the error messages. Any help will be appreciated.
Adding jQuery mobile yourself is extremely easy
just follow the instructions on http://jquerymobile.com/download/

Resources