Windows 8 如何使用运行Windows 8.1的PC上的项目在具有Windows 8的平板电脑上进行远程调试?
我想在安装了Windows 8和Visual Studio Remote Debugger 2013的平板电脑上远程调试Windows应用商店应用程序 Windows应用商店应用程序位于安装了Windows 8.1的我的电脑上,当我尝试调试时,出现以下错误:Windows 8 如何使用运行Windows 8.1的PC上的项目在具有Windows 8的平板电脑上进行远程调试?,windows-8,visual-studio-2013,windows-8.1,Windows 8,Visual Studio 2013,Windows 8.1,我想在安装了Windows 8和Visual Studio Remote Debugger 2013的平板电脑上远程调试Windows应用商店应用程序 Windows应用商店应用程序位于安装了Windows 8.1的我的电脑上,当我尝试调试时,出现以下错误: Error : DEP0700 : Registration of the app failed. error 0xC00CE014: App manifest validation error: The app
Error : DEP0700 : Registration of the app failed. error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 25, Column 8, Reason: Element '{http://schemas.microsoft.com/appx/2013/manifest}VisualElements' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/2010/manifest}Application'.
Expecting: {http://schemas.microsoft.com/appx/2010/manifest}VisualElements.
(0x80080204) TabletDemo
如果不将我的平板电脑升级到Windows 8.1,有没有办法解决这个问题?Visual Studio 2013的目标是Windows 8.1。您需要使用Visual Studio 2012以Windows 8为目标 但你也可以看看这篇文章: 通过手动修改.csproj文件,似乎可以使用2013实现8.0的目标。删除以下行:
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
8.1
12
Visual Studio 2013以Windows 8.1为目标。您需要使用Visual Studio 2012以Windows 8为目标
但你也可以看看这篇文章:
通过手动修改.csproj文件,似乎可以使用2013实现8.0的目标。删除以下行:
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
8.1
12
我从前面的问题中找到了解决方案:
以下是步骤:
转到项目文件夹并编辑项目的.csproj文件:
- 取消注释或删除元素:
8.1 和12 - 在Visual Studio中打开项目
- 打开MainPage.xaml文件:
更改
ThemeResourceapplication pagebackgroundthemebrush}> 至 StaticResourceApplicationPageBackgroundThemeBrush}> 和 DeleteStyle=“{StaticResource NavigationBackButtonNormalStyle}” 和 DeleteStyle=“{StaticResource HeaderTextBlockStyle}” - 打开Package.appxmanifest文件的代码定义并更改:
<m2:视觉元素
DisplayName=“App2”
Square150x150Logo=“Assets\Logo.png”
Square30x30Logo=“Assets\SmallLogo.png”
Description=“App2”
ForegroundText=“灯光”
BackgroundColor=“#4646”>
m2:SplashScreen Image=“Assets\SplashScreen.png”/
m2:视觉元素>
至
<视觉元素
DisplayName=“TabletDemo”
Logo=“Assets\Logo.png”
SmallLogo=“Assets\SmallLogo.png”
Description=“TabletDemo”
ForegroundText=“灯光”
BackgroundColor=“#4646”>
- 取消注释或删除元素:
8.1 和12 - 在Visual Studio中打开项目
- 打开MainPage.xaml文件:
更改
ThemeResourceapplication pagebackgroundthemebrush}> 至 StaticResourceApplicationPageBackgroundThemeBrush}> 和 DeleteStyle=“{StaticResource NavigationBackButtonNormalStyle}” 和 DeleteStyle=“{StaticResource HeaderTextBlockStyle}” - 打开Package.appxmanifest文件的代码定义并更改:
<m2:视觉元素
DisplayName=“App2”
Square150x150Logo=“Assets\Logo.png”
Square30x30Logo=“Assets\SmallLogo.png”
Description=“App2”
ForegroundText=“灯光”
BackgroundColor=“#4646”>
m2:SplashScreen Image=“Assets\SplashScreen.png”/
m2:视觉元素>
至
<视觉元素
DisplayName=“TabletDemo”
Logo=“Assets\Logo.png”
SmallLogo=“Assets\SmallLogo.png”
Description=“TabletDemo”
ForegroundText=“灯光”
BackgroundColor=“#4646”>
和
标记
查看一下您必须从.csproj文件中删除
和
标记
看一看变了
8.1
到
项目的.csproj文件中的TargetPlatformVersion中的8.0
及