- fixed metro project file generation for samples. Samples are still NOT working in metro. Metro building is still experimental.

This commit is contained in:
Glatzemann 2012-09-19 05:31:17 +00:00 committed by Konstantin Koch
parent eba46e6379
commit 08b945da2e
4 changed files with 12 additions and 6 deletions

View File

@ -40,7 +40,9 @@
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Form1.cs" /> <Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs"> <Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>Form1.cs</DependentUpon>
</Compile> </Compile>

View File

@ -67,7 +67,9 @@
<Reference Include="System.Net" /> <Reference Include="System.Net" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="AddInSelector.cs" /> <Compile Include="AddInSelector.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AddInSelector.Designer.cs"> <Compile Include="AddInSelector.Designer.cs">
<DependentUpon>AddInSelector.cs</DependentUpon> <DependentUpon>AddInSelector.cs</DependentUpon>
</Compile> </Compile>

View File

@ -31,7 +31,7 @@ namespace ProjectConverter.Platforms.Metro
} }
XName contentNodeName = XName.Get("Content", itemGroup.Name.NamespaceName); XName contentNodeName = XName.Get("Content", itemGroup.Name.NamespaceName);
string anxAssetsPath = "../../media/MetroDefaultAssets"; string anxAssetsPath = "../media/MetroDefaultAssets";
foreach (string assetFilepath in Directory.GetFiles(anxAssetsPath)) foreach (string assetFilepath in Directory.GetFiles(anxAssetsPath))
{ {
string filename = Path.GetFileName(assetFilepath); string filename = Path.GetFileName(assetFilepath);

View File

@ -1,4 +1,4 @@
<project name="ANX.Framework Build" default="build"> <project name="ANX.Framework Build" default="build" basedir="./">
<property name="build.platform" value="Any CPU" /> <property name="build.platform" value="Any CPU" />
<property name="build.dir" value="../../bin" /> <property name="build.dir" value="../../bin" />
<property name="build.dir.tools" value="../bin" /> <property name="build.dir.tools" value="../bin" />
@ -650,8 +650,10 @@
<exclude name="**/*_PSVita.csproj" /> <exclude name="**/*_PSVita.csproj" />
<exclude name="**/*_WindowsMetro.csproj" /> <exclude name="**/*_WindowsMetro.csproj" />
<exclude name="Samples/**/*.csproj" if="${project.anx.metro}" /> <!--
</fileset> <exclude name="Samples/**/*.csproj" if="${project.anx.metro}" />
-->
</fileset>
<foreach item="File" property="projectFile"> <foreach item="File" property="projectFile">
<in> <in>