是否可以从Visual Studio 2013创建Windows 8 Store App? [英] Is it possible to create a Windows 8 Store App from Visual Studio 2013?
问题描述
因此,我有一台装有Visual Studio 2013的Windows 8.1计算机.每当我创建一个新的Windows Store项目时,都看不到创建Windows 8 Store应用程序而不是Windows 8.1 Store应用程序的任何选项.但是,打开现有的Windows 8 Store App项目没有问题.
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="Assets\Logo.png"
- Square30x30Logo="Assets\SmallLogo.png"
+ Logo="Assets\Logo.png"
+ SmallLogo="Assets\SmallLogo.png"
- <m2:SplashScreen Image="Assets\SplashScreen.png" />
+ <SplashScreen Image="Assets\SplashScreen.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 App?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!