您好我在本地創建應用程序包時遇到錯誤。 發現錯誤:試圖解決受支持的API測試檢測到的錯誤:
支持的API的測試檢測出以下錯誤: ◦System.UnauthorizedAccessException:訪問路徑「C:\ PROGRAM 文件(x86)\的Windows套件\ 10 \應用程序認證 套件\ SupportedAPIs-x64.xml「被拒絕。在 System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare share,Int32 bufferSize,FileOptions選項,SECURITY_ATTRIBUTES secAttrs,字符串 MSGPATH,布爾bFromProxy,布爾useLongPath,布爾checkHost) 在System.IO.FileStream..ctor(字符串路徑,的FileMode模式,FileAccess的 訪問,文件共享份額,的Int32 BUFFERSIZE)在 的System.Xml .XmlDownloadManager.GetStream(Uri uri,ICredentials 憑證,IWebProxy代理,RequestCachePolicy cachePolicy)位於 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri,字符串角色,類型 ofObjectToReturn)在 System.Xml.XmlTextReaderImpl.OpenUrlDelegate(對象的XmlResolver)在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode 代碼,CleanupCode backoutCode,對象的UserData)在 System.Threading.CompressedStack.Run(CompressedStack compressedStack , ContextCallback回調,在 System.Xml.XmlLoader.Load(XmlDocument的文檔,讀取器的XmlReader處 System.Xml.XmlTextReaderImpl.Read() System.Xml.XmlTextReaderImpl.OpenUrl()對象的狀態),布爾 preserveWhitespace) System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename)at Microsoft.Windows.SoftwareLogo .Tests.SupportedApis.SupportedApis.GetNativeAllowList() 在 Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.ExecuteSharedTests(EnumApplicationType APPTYPE,字符串packageFullName)在 Microsoft.Windows.SoftwareLogo.Tests.SupportedApis.SupportedApis.Test( UapApp uapApp)at Microsoft.Windows.SoftwareLogo.TestBase.TestBase.ExecuteTest() ◦[HRESULT 0x80131604]測試操作失敗:'ExecuteTest'。
。關於如何改善它的任何想法。