Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 正在从Windows 8应用商店应用程序项目文件夹中移动App.xaml_C#_.net_Wpf_Xaml_Windows 8 - Fatal编程技术网

C# 正在从Windows 8应用商店应用程序项目文件夹中移动App.xaml

C# 正在从Windows 8应用商店应用程序项目文件夹中移动App.xaml,c#,.net,wpf,xaml,windows-8,C#,.net,Wpf,Xaml,Windows 8,我正在做一个Windows8商店应用程序项目(C#) 应用程序项目文件位于根文件夹中,每个受支持平台的特定文件位于其自己的文件夹中: ROOT |-- Application.Windows8.csproj |-- Application.OtherPlatform.csproj |-- |-- Windows8 |-- App.xaml |-- Other Win8 related files 我的Windows8项目包括Wi

我正在做一个Windows8商店应用程序项目(C#)

应用程序项目文件位于根文件夹中,每个受支持平台的特定文件位于其自己的文件夹中:

 ROOT  
  |-- Application.Windows8.csproj  
  |-- Application.OtherPlatform.csproj
  |--
  |-- Windows8
          |-- App.xaml
          |-- Other Win8 related files
我的Windows8项目包括Windows8文件夹下的所有文件,包括App.xaml

尝试使用此结构时,我在构建项目时出错:

应用程序主文件必须命名为App.xaml

是否可以将App.xaml保存在与csproj文件不同的文件夹中?

更新:


我已在MS Connect上打开了一个票证,因为文档中从未指定此文件必须位于根文件夹中:

由于Windows应用商店应用程序的限制,不可能

注意:应用程序主文件必须命名为App.xaml


对普通WPF应用程序没有这样的限制

该文件名为app.xaml。在开发windows应用商店应用程序时,我注意到另一件事,如果您试图将windows应用商店应用程序项目的入口点从app.xaml更改为新的xaml文件,比如Package.appxmanifest文件中的“MainApp.xaml”,即使出现同样的错误“应用程序主文件必须命名为App.xaml”。我将“MainApp.xaml”属性窗口中的“build action”属性更改为“applicationdefition”,即使这样也无济于事。App.xaml是无法更改的windows应用商店应用程序的硬编码入口点。虽然几乎不需要这样做,但这是一个众所周知的事实。