Use .lg.cs and .oz.cs to determine whether file should be built

This commit is contained in:
Yoshi Askharoun
2022-08-07 19:42:17 -05:00
parent 3b843ae2db
commit 5ea10e7a4d
6 changed files with 27 additions and 17 deletions
+1 -5
View File
@@ -1,6 +1,4 @@
#if OPENZUNE
using System.Net.Http;
using System.Net.Http;
using ZuneUI;
namespace Microsoft.Zune.Service
@@ -46,5 +44,3 @@ namespace Microsoft.Zune.Service
}
}
}
#endif
-2
View File
@@ -2,8 +2,6 @@
using System;
using System.Collections;
using System.Globalization;
using System.Linq;
using System.Text;
using ZuneUI;
namespace Microsoft.Zune.Service
+1 -5
View File
@@ -1,6 +1,4 @@
#if !OPENZUNE
using System.Net;
using System.Net;
namespace Microsoft.Zune.Service
{
@@ -26,5 +24,3 @@ namespace Microsoft.Zune.Service
}
}
}
#endif
+1 -5
View File
@@ -1,6 +1,4 @@
#if OPENZUNE
using System.Linq;
using System.Linq;
using System.Net.Http;
namespace Microsoft.Zune.Service
@@ -36,5 +34,3 @@ namespace Microsoft.Zune.Service
}
}
}
#endif
+12
View File
@@ -29,6 +29,18 @@
<PackageReference Include="Zune.Xml" Version="0.1.0" />
<ProjectReference Include="..\libs\MicrosoftIris\UIX\UIX.csproj" />
<None Include="**\*.lg.cs" Exclude="bin\**\*.lg.cs;obj\**\*.lg.cs" />
<Compile Remove="**\*.lg.cs" />
<Compile Include="**\*.lg.cs"
Exclude="bin\**\*.lg.cs;obj\**\*.lg.cs"
Condition="!$(UseOpenZune)" />
<None Include="**\*.oz.cs" Exclude="bin\**\*.oz.cs;obj\**\*.oz.cs" />
<Compile Remove="**\*.oz.cs" />
<Compile Include="**\*.oz.cs"
Exclude="bin\**\*.oz.cs;obj\**\*.oz.cs"
Condition="$(UseOpenZune)" />
</ItemGroup>
<Choose>