是否可以从 Visual Studio 2013 创建 Windows 8 Store 应用程序? [英] Is it possible to create a Windows 8 Store App from Visual Studio 2013?

查看:22
本文介绍了是否可以从 Visual Studio 2013 创建 Windows 8 Store 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有一台安装了 Visual Studio 2013 的 Windows 8.1 机器.每当我去创建一个新的 Windows 应用商店项目时,我看不到任何创建新的 Windows 8 应用商店应用程序的选项,而不是 Windows 8.1 应用商店应用程序.但是,我可以打开现有的 Windows 8 Store App Projects.

So, I have a Windows 8.1 machine with Visual Studio 2013 installed. Whenever I go to create a new Windows Store project I do not see any options to create a new Windows 8 Store app, rather than Windows 8.1 Store App. However, I have no problem opening existing Windows 8 Store App Projects.

在 Windows 8.1 上运行时,是否可以从 Visual Studio 2013 创建 Windows 8 Store App 项目?

Is it possible to create a Windows 8 Store App project from Visual Studio 2013 when running on Windows 8.1?

推荐答案

很简单 - 创建一个新的 8.1 项目并从 .csproj 文件中删除以下几行:

It's easy - create a new 8.1 project and remove the following lines from the .csproj file:

<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>

重新打开文件,瞧——这是一个 Windows 8 项目!

Reopen the file and voila - it's a Windows 8 project!

此外,您可能还想更改以下内容:
在 MainPage.xaml 中:

Additionally, you might want to change the following as well:
In MainPage.xaml:

-    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

在 Package.appxmanifest 中:

In Package.appxmanifest:

- <m2:VisualElements
+ <VisualElements
- Square150x150Logo="AssetsLogo.png"
- Square30x30Logo="AssetsSmallLogo.png"
+ Logo="AssetsLogo.png"
+ SmallLogo="AssetsSmallLogo.png"
- <m2:SplashScreen Image="AssetsSplashScreen.png" />
+ <SplashScreen Image="AssetsSplashScreen.png" />
- </m2:VisualElements>
+ </VisualElements>        

如果这不起作用 - 这可能意味着项目文件在当前版本的 VS 中进一步更改,您可能需要安装 VS 2012(Express 应该这样做)并在其中创建一个项目.然后,您可以在新版本的 VS 中进行处理.

If this doesn't work - it might mean that the project files have further changed in current versions of VS and you might need to install VS 2012 (Express should do) and create a project in that. You can then work on it in the new version of VS.

这篇关于是否可以从 Visual Studio 2013 创建 Windows 8 Store 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆