【问题标题】:The program has exited with code -1073741701 (0xc000007b) for UWP apps该程序已退出 UWP 应用程序,代码为 -1073741701 (0xc000007b)
【发布时间】:2019-11-18 21:24:36
【问题描述】:

我开发 UWP 应用程序已有一段时间了。完全没有问题。将其连接到 git repo 和所有内容。所以这个解决方案和项目在 3 天前运行良好。我完成了一天的工作,提交了回购协议并关闭了我的电脑。当我今天回来时,尝试在 Visual Studio 2019 中启动我的 UWP 以开始在本地机器上进行调试,我收到了以下消息:

目标进程退出而没有引发 CoreCLR 启动事件。确保目标进程配置为使用 .NET Core。如果目标进程未在 .NET Core 上运行,则可能会出现这种情况。 程序“[2812] LaserMeasurementTool.exe”已退出,代码为 -1073741701 (0xc000007b)。 激活 Windows 应用商店应用程序“062a9632-d22f-4d48-991a-d1d51afe77e5_ebvsp9khn4a7w!App”失败,并出现错误“应用程序未启动”。

有时在 0xc000007b 错误代码之后会显示“找不到 dll”,但并非每次都这样。

到目前为止我已经尝试过:

  • 清理并重建解决方案
  • 修复 Visual Studio

我看到有很多人有这个问题。但是没有一个建议的解决方案对我有用。想知道我是否可以做更多的事情来解决这个问题。如果我不能运行我的程序来测试它,我就不能做很多事情。

非常感谢您!

更新

自从第一篇文章以来,我尝试了更多的东西: 我已将 VS 2019 中的调试器更改为仅本机。这提示了一个不同的错误对话框

在此之后,我通过点击“帮助”被带到this site

这个页面让我打开我的事件查看器以获取有关该问题的更多详细信息,这就是事件查看器给我的:

激活 062a9632-d22f-4d48-991a-d1d51afe77e5_ebvsp9khn4a7w!App 失败。错误代码:应用程序未启动.. 激活阶段:COM ActivateExtension

最后,VS 2019 中的输出窗口显示为:

'LaserMeasurementTool.exe' (Win32): 加载'\lav-dc1\Folder Redirection\bwhelan\Documents\Source\Repos\132 Laser Measurement Tool\LaserMeasurementTool\LaserMeasurementToolUWP\bin\x86\Debug\AppX\LaserMeasurementTool.exe '。 “LaserMeasurementTool.exe”(Win32):已加载“C:\WINDOWS\System32\ntdll.dll”。已加载符号。 “LaserMeasurementTool.exe”(Win32):已加载“C:\WINDOWS\System32\kernel32.dll”。已加载符号。 “LaserMeasurementTool.exe”(Win32):已加载“C:\WINDOWS\System32\KernelBase.dll”。已加载符号。 “LaserMeasurementTool.exe”(Win32):已加载“C:\WINDOWS\System32\ucrtbase.dll”。已加载符号。 “LaserMeasurementTool.exe”(Win32):已加载“C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x86__8wekyb3d8bbwe\uwphost.dll”。 'LaserMeasurementTool.exe' (Win32): 卸载'C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x86__8wekyb3d8bbwe\uwphost.dll' 线程 0x3b30 已退出,代码为 -1073741701 (0xc000007b)。 线程 0x1208 已退出,代码为 -1073741701 (0xc000007b)。 程序“[15228] LaserMeasurementTool.exe”已退出,代码为 -1073741701 (0xc000007b)。

总的来说,它仍然不起作用,我想我会添加这些是我现在尝试过的东西,但对于我的情况却失败了。

更新 CSPROJ 文件

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
    <ProjectGuid>Removed for safety</ProjectGuid>
    <OutputType>AppContainerExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>LaserMeasurementTool</RootNamespace>
    <AssemblyName>LaserMeasurementTool</AssemblyName>
    <DefaultLanguage>en-US</DefaultLanguage>
    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
    <TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.18362.0</TargetPlatformVersion>
    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>Removed for safety</ProjectTypeGuids>
    <WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
    <AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
    <GenerateAppInstallerFile>False</GenerateAppInstallerFile>
    <AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
    <AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
    <GenerateTestArtifacts>True</GenerateTestArtifacts>
    <AppxBundle>Always</AppxBundle>
    <AppxBundlePlatforms>x86|x64</AppxBundlePlatforms>
    <HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <EnableGatekeeperAnalysis>false</EnableGatekeeperAnalysis>
    <UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <OutputPath>bin\x86\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\ARM\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
    <OutputPath>bin\ARM\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\ARM64\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>ARM64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
    <OutputPath>bin\ARM64\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>ARM64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\x64\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    <OutputPath>bin\x64\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
  </PropertyGroup>
  <PropertyGroup>
    <RestoreProjectStyle>PackageReference</RestoreProjectStyle>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="App.xaml.cs">
      <DependentUpon>App.xaml</DependentUpon>
    </Compile>
    <Compile Include="MainPage.xaml.cs">
      <DependentUpon>MainPage.xaml</DependentUpon>
    </Compile>
    <Compile Include="Models\DataModel.cs" />
    <Compile Include="Models\ExportModel.cs" />
    <Compile Include="Models\ImportModel.cs" />
    <Compile Include="Models\LoginModel.cs" />
    <Compile Include="Models\ProgramDataModel.cs" />
    <Compile Include="Models\SettingsModel.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Utilities\CollectionConverter.cs" />
    <Compile Include="Utilities\ExcelBuilder.cs" />
    <Compile Include="Utilities\JSON.cs" />
    <Compile Include="Utilities\Messages.cs" />
    <Compile Include="Utilities\DataHelper.cs" />
    <Compile Include="ViewModels\AdminViewModel.cs" />
    <Compile Include="ViewModels\BaseViewModel.cs" />
    <Compile Include="ViewModels\CalibrationViewModel.cs" />
    <Compile Include="ViewModels\DatabaseViewModel.cs" />
    <Compile Include="ViewModels\GeneralViewModel.cs" />
    <Compile Include="ViewModels\LoginChangePasswordViewModel.cs" />
    <Compile Include="ViewModels\LoginViewModel.cs" />
    <Compile Include="ViewModels\MainDisplayViewModel.cs" />
    <Compile Include="ViewModels\MainViewModel.cs" />
    <Compile Include="ViewModels\SettingsViewModel.cs" />
    <Compile Include="Views\AdminAccountView.xaml.cs">
      <DependentUpon>AdminAccountView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\Admin\AddAccount.xaml.cs">
      <DependentUpon>AddAccount.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\Admin\EditAccount.xaml.cs">
      <DependentUpon>EditAccount.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\Admin\MainAccount.xaml.cs">
      <DependentUpon>MainAccount.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\ChangePasswordView.xaml.cs">
      <DependentUpon>ChangePasswordView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\General\Calibration.xaml.cs">
      <DependentUpon>Calibration.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\General\Database.xaml.cs">
      <DependentUpon>Database.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\General\Main.xaml.cs">
      <DependentUpon>Main.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\General\Settings.xaml.cs">
      <DependentUpon>Settings.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\LoginView.xaml.cs">
      <DependentUpon>LoginView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\MainView.xaml.cs">
      <DependentUpon>MainView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\GeneralView.xaml.cs">
      <DependentUpon>GeneralView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\TestView.xaml.cs">
      <DependentUpon>TestView.xaml</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <AppxManifest Include="Package.appxmanifest">
      <SubType>Designer</SubType>
    </AppxManifest>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Assets\img\Add.png" />
    <Content Include="Assets\img\Add_DarkGray.png" />
    <Content Include="Assets\img\Add_White.png" />
    <Content Include="Assets\img\BackBtn.png" />
    <Content Include="Assets\img\BackBtn_White.png" />
    <Content Include="Assets\img\Checkmark.png" />
    <Content Include="Assets\img\Checkmark_White.png" />
    <Content Include="Assets\img\LaveerLogo.png" />
    <Content Include="Assets\img\Load.png" />
    <Content Include="Assets\img\Load_White.png" />
    <Content Include="Assets\img\Lock.png" />
    <Content Include="Assets\img\LogoutBtn.png" />
    <Content Include="Assets\img\LogoutBtn_White.png" />
    <Content Include="Assets\img\Person.png" />
    <Content Include="Assets\img\Plus.png" />
    <Content Include="Assets\img\Plus_White.png" />
    <Content Include="Assets\img\RemoveBtn.png" />
    <Content Include="Assets\img\EditBtn.png" />
    <Content Include="Assets\img\EditBtn_White.png" />
    <Content Include="Assets\img\Lock_White.png" />
    <Content Include="Assets\img\RemoveBtn_White.png" />
    <Content Include="Assets\img\Sync.png" />
    <Content Include="Assets\img\Sync_Shadow.png" />
    <Content Include="Assets\img\Sync_White.png" />
    <Content Include="Assets\img\X.png" />
    <Content Include="Assets\img\X_LightGray.png" />
    <Content Include="Assets\img\X_White.png" />
    <Content Include="Assets\LoginBackground.jpg" />
    <Content Include="Assets\img\Person_White.png" />
    <Content Include="Assets\img\ViewBtn.png" />
    <Content Include="Properties\Default.rd.xml" />
    <Content Include="Assets\LockScreenLogo.scale-200.png" />
    <Content Include="Assets\SplashScreen.scale-200.png" />
    <Content Include="Assets\Square150x150Logo.scale-200.png" />
    <Content Include="Assets\Square44x44Logo.scale-200.png" />
    <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
    <Content Include="Assets\StoreLogo.png" />
    <Content Include="Assets\Wide310x150Logo.scale-200.png" />
  </ItemGroup>
  <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </ApplicationDefinition>
    <Page Include="MainPage.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Styles\Styles.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\AdminAccountView.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\Admin\AddAccount.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\Admin\EditAccount.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\Admin\MainAccount.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\ChangePasswordView.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\General\Calibration.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\General\Database.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\General\Main.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\General\Settings.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\LoginView.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\MainView.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\GeneralView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="Views\TestView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Net.Native.Compiler">
      <Version>2.2.3</Version>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.Runtime.CoreCLR">
      <Version>2.0.8</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.Runtime.Native">
      <Version>1.0.1</Version>
    </PackageReference>
    <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
      <Version>6.2.9</Version>
    </PackageReference>
    <PackageReference Include="MvvmLight">
      <Version>5.4.1.1</Version>
    </PackageReference>
    <PackageReference Include="MvvmLightLibs">
      <Version>5.4.1.1</Version>
    </PackageReference>
    <PackageReference Include="Newtonsoft.Json">
      <Version>12.0.3</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.DataGridExcelExport.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Licensing">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.Pdf.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.SfChart.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.SfGauge.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.SfGrid.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.SfInput.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="Syncfusion.XlsIO.UWP">
      <Version>17.3.0.28</Version>
    </PackageReference>
    <PackageReference Include="System.Dynamic.Runtime">
      <Version>4.3.0</Version>
    </PackageReference>
    <PackageReference Include="System.Runtime.CompilerServices.Unsafe">
      <Version>4.6.0</Version>
    </PackageReference>
  </ItemGroup>
  <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
    <VisualStudioVersion>14.0</VisualStudioVersion>
  </PropertyGroup>
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

【问题讨论】:

  • 如果你从github下载最新的项目并运行它,会不会出现同样的问题?如果遇到同样的问题,除了最新的项目,再试之前的提交版本。
  • 0xc000007b 是存放异常(包装异常)。生成故障转储和analyze the dump

标签: c# .net-core uwp


【解决方案1】:

我以前见过这个问题,有点难以捉摸。尝试关闭 Visual Studio 并删除文件夹中的binobj 文件夹。这应该确保没有剩菜(有时清洁溶液是不够的)。然后通过“开始”菜单从 PC 上卸载已安装的应用程序版本,以便从头开始安装。

如果这没有帮助,我发现有几个报告表明,当项目文件夹中存在无效的 App.config 文件时会出现此问题。检查没有App.config文件,如果有,请尝试删除它。

如果这两种方法都失败了,请尝试将项目克隆到其他位置并重试。确保项目的路径不会太长(这个问题今天不太突出,但它仍然确实发生,只是因为 bin 文件路径太深而没有明确原因而失败)。

【讨论】:

  • 嗨,马丁,非常感谢您的回答。我尝试了两种方法,结果如下:删除 obj 和 bin 并卸载后。我第一次再次运行它(仍然在本机上使用调试器),我得到一个 IO 异常,说它在我的项目中找不到 appxmanifest.xml 文件。我也找不到其中之一。只有一个 Package.appxmanifest。但是在 bin 中再次生成它之后,错误就消失了,我得到了与上面更新部分相同的错误。我在我的解决方案文件夹中找不到任何 App.config。
  • 另外,将我的项目移动到桌面并再次尝试,但没有成功
  • 能否用您项目的csproj 的内容更新您的问题?当然,请在发布前隐藏所有敏感信息。我对Package.appxmanifest 是如何包含在其中的特别感兴趣
  • 更新包含 csproj 文件
  • 所以有了发展。今天,我决定按照您的建议在另一台计算机上尝试。所以我再次从我的仓库中获取并尝试在另一台机器上运行。与此同时,我又在问题计算机上使用新的 repo pull 尝试了一次。它刚刚奏效。我不知道这是如何发生或为什么发生的,因为上次 repo 提交和我一直使用的项目之间的唯一区别是一个控件的更改。不管怎样我都不会抱怨。非常感谢您的帮助。我希望对这个难以捉摸的问题有更好的解释
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-07-20
  • 2023-02-02
  • 1970-01-01
  • 1970-01-01
  • 2015-12-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多