Visual Studio 并非所有引用的特权或组都分配给调用方

t1qtbnec  于 2023-10-23  发布在  其他
关注(0)|答案(1)|浏览(122)

我正在尝试使用管理扩展在我的Visual Studio Enterprise 2022中安装Microsoft Visual Studio扩展项目。我得到了下面的错误。

22-12-2022 19:56:44 - Microsoft VSIX Installer
22-12-2022 19:56:44 - -------------------------------------------
22-12-2022 19:56:44 - vsixinstaller.exe version:
22-12-2022 19:56:44 - 17.4.2119
22-12-2022 19:56:44 - -------------------------------------------
22-12-2022 19:56:44 - Command line parameters:
22-12-2022 19:56:44 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\vsixinstaller.exe,/appidinstallpath:C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.exe,/skuName:Enterprise,/skuVersion:17.4.33122.133,/appidname:Microsoft Visual Studio Enterprise 2022,/culture:en-US,/noep,C:\Users\kkabh\AppData\Local\Temp\VSIXzfphzvnr.vsix,/callingprocessid:19328,/installas:2568
22-12-2022 19:56:44 - -------------------------------------------
22-12-2022 19:56:44 - Microsoft VSIX Installer
22-12-2022 19:56:44 - -------------------------------------------
22-12-2022 19:56:44 - System.ComponentModel.Win32Exception (0x80004005): Not all privileges or groups referenced are assigned to the caller
   at System.Diagnostics.Process.SetPrivilege(String privilegeName, Int32 attrib)
   at System.Diagnostics.Process.EnterDebugMode()
   at VSIXInstaller.UserImpersonationHelper.DuplicateSuppliedToken(IntPtr token, UInt32 callingProcessId)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

我试着从Marketplace下载扩展,现在得到了一个不同的错误,如下所示。

22-12-2022 19:48:47 - Microsoft VSIX Installer
22-12-2022 19:48:47 - -------------------------------------------
22-12-2022 19:48:47 - vsixinstaller.exe version:
22-12-2022 19:48:47 - 17.4.2119
22-12-2022 19:48:47 - -------------------------------------------
22-12-2022 19:48:47 - Command line parameters:
22-12-2022 19:48:47 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\kkabh\Downloads\InstallerProjects.vsix
22-12-2022 19:48:47 - -------------------------------------------
22-12-2022 19:48:47 - Microsoft VSIX Installer
22-12-2022 19:48:47 - -------------------------------------------
22-12-2022 19:48:47 - Initializing Install...
22-12-2022 19:48:48 - Extension Details...
22-12-2022 19:48:48 -   Identifier         : VSInstallerProjects
22-12-2022 19:48:48 -   Name               : Microsoft Visual Studio Installer Projects
22-12-2022 19:48:48 -   Author             : Microsoft
22-12-2022 19:48:48 -   Version            : 1.0.2
22-12-2022 19:48:48 -   Description        : This official Microsoft extension provides support for Visual Studio Installer Projects in Visual Studio.
22-12-2022 19:48:48 -   Locale             : en-US
22-12-2022 19:48:48 -   MoreInfoURL        : 
22-12-2022 19:48:48 -   InstalledByMSI     : False
22-12-2022 19:48:48 -   SupportedFrameworkVersionRange : [4.6.1,)
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 -   SignatureState     : ValidSignature
22-12-2022 19:48:48 -   SignedBy           : Microsoft Corporation
22-12-2022 19:48:48 -   Certificate Info   : 
22-12-2022 19:48:48 -       -------------------------------------------------------
22-12-2022 19:48:48 -       [Subject]       : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
22-12-2022 19:48:48 -       [Issuer]        : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
22-12-2022 19:48:48 -       [Serial Number] : 3300000463CA7009C09247FA42000000000463
22-12-2022 19:48:48 -       [Not Before]    : 02-09-2021 23:56:31
22-12-2022 19:48:48 -       [Not After]     : 01-09-2022 23:56:31
22-12-2022 19:48:48 -       [Thumbprint]    : 909438EC2298CCB370EEAF0453E440A8DCBBC166
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 -   Supported Products : 
22-12-2022 19:48:48 -       Microsoft.VisualStudio.Community
22-12-2022 19:48:48 -           Version : [15.0,17.0)
22-12-2022 19:48:48 -           ProductArchitecture : x86
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 -   References         : 
22-12-2022 19:48:48 -   Prerequisites      : 
22-12-2022 19:48:48 -       -------------------------------------------------------
22-12-2022 19:48:48 -       Identifier   : Microsoft.VisualStudio.MinShell
22-12-2022 19:48:48 -       Name         : Visual Studio Min Shell
22-12-2022 19:48:48 -       Version      : [15.0.26205,17.0)
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 -       -------------------------------------------------------
22-12-2022 19:48:48 -       Identifier   : Microsoft.Component.ClickOnce
22-12-2022 19:48:48 -       Name         : ClickOnce Publishing
22-12-2022 19:48:48 -       Version      : [15.0,17.0)
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 - Signature Details...
22-12-2022 19:48:48 -   Extension is signed with a valid signature.
22-12-2022 19:48:48 - 
22-12-2022 19:48:48 - Searching for applicable products...
22-12-2022 19:48:48 - Found installed product - Global Location
22-12-2022 19:48:48 - Found installed product - Visual Studio Enterprise 2022
22-12-2022 19:48:48 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

实际上我需要生成一个安装包。为此,我尝试了这个。如果有生成安装包的任何选项,请让我知道。
但仍然,它可能需要下载一些其他的扩展似乎.我实际上尝试了一些其他的扩展,使用管理扩展下载,但结果是否定的。请帮我离开这里!!!

kr98yfug

kr98yfug1#

我也遇到了你报告的相同问题,但这个不同的问题有相同的解决方案:https://stackoverflow.com/a/72980594/241161
建议在Powershell中启动一个提升的会话,并从一个提升的(管理员)用户开始运行,而不是在运行后提升。这招奏效了

相关问题