Skip to content
Permalink
Browse files

[Assets] Fixed templates to have proper assembly names and namespaces

  • Loading branch information
xen2 committed Nov 11, 2018
1 parent b7fc19e commit 63b14a1635b44b5a98c686e4522b1a1160025b26
Showing with 113 additions and 72 deletions.
  1. +3 −2 sources/core/Xenko.Core/Xenko.Core.csproj
  2. +36 −0 sources/core/Xenko.Core/build/Xenko.Core.props
  3. +2 −2 ...ojectExecutable.Android/{$PackageNameShort$Activity.cs.t4 → $PackageGameNameShort$Activity.cs.t4}
  4. +2 −3 ...editor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.Android/$ProjectName$.csproj.t4
  5. +3 −3 ...nko.Assets.Presentation/Templates/Core/ProjectExecutable.Android/ProjectExecutable.Android.ttproj
  6. +4 −4 ...ko.Assets.Presentation/Templates/Core/ProjectExecutable.Android/Properties/AndroidManifest.xml.t4
  7. +3 −3 .../Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.Android/Properties/AssemblyInfo.cs.t4
  8. +2 −2 ...le.Windows/$PackageNameShort$App.cs.t4 → ProjectExecutable.Linux/$PackageGameNameShort$App.cs.t4}
  9. +1 −1 ...r/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.Linux/ProjectExecutable.Linux.ttproj
  10. +1 −2 ...Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/CoreWindow/$ProjectName$.csproj.t4
  11. +5 −5 ...tor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/Package.appxmanifest.common.t4
  12. +3 −3 ...itor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/Properties/AssemblyInfo.cs.t4
  13. +3 −3 ...able.UWP/Xaml/{$PackageNameShort$MainPage.xaml.cs.t4 → $PackageGameNameShort$MainPage.xaml.cs.t4}
  14. +2 −2 ...Executable.UWP/Xaml/{$PackageNameShort$MainPage.xaml.t4 → $PackageGameNameShort$MainPage.xaml.t4}
  15. +4 −5 ...ditor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/Xaml/$ProjectName$.csproj.t4
  16. +3 −3 sources/editor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/Xaml/App.xaml.cs.t4
  17. +2 −2 .../Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.UWP/Xaml/ProjectExecutable.UWP.ttproj
  18. +2 −2 ...le.Linux/$PackageNameShort$App.cs.t4 → ProjectExecutable.Windows/$PackageGameNameShort$App.cs.t4}
  19. +1 −1 ...nko.Assets.Presentation/Templates/Core/ProjectExecutable.Windows/ProjectExecutable.Windows.ttproj
  20. +4 −4 ...ectExecutable.iOS/{$PackageNameShort$AppDelegate.cs.t4 → $PackageGameNameShort$AppDelegate.cs.t4}
  21. +2 −3 ...ces/editor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.iOS/$ProjectName$.csproj.t4
  22. +2 −2 sources/editor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.iOS/Info.plist.t4
  23. +3 −3 ...ditor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.iOS/ProjectExecutable.iOS.ttproj
  24. +3 −3 ...itor/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.iOS/Properties/AssemblyInfo.cs.t4
  25. +2 −2 ...ates/Core/ProjectExecutable.macOS/{$PackageNameShort$App.cs.t4 → $PackageGameNameShort$App.cs.t4}
  26. +1 −1 ...r/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.macOS/ProjectExecutable.macOS.ttproj
  27. +3 −3 ...or/Xenko.Assets.Presentation/Templates/Core/ProjectExecutable.macOS/Properties/AssemblyInfo.cs.t4
  28. +8 −0 sources/engine/Xenko.Assets/Templates/ProjectTemplateGeneratorHelper.cs
  29. +1 −1 sources/engine/Xenko.Audio/Xenko.Audio.csproj
  30. +1 −1 sources/engine/Xenko.Native/Xenko.Native.csproj
  31. +1 −1 sources/engine/Xenko.VirtualReality/Xenko.VirtualReality.csproj
@@ -1,4 +1,4 @@
<Project>
<Project>
<PropertyGroup>
<XenkoRuntime>true</XenkoRuntime>
</PropertyGroup>
@@ -56,6 +56,7 @@
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<None Include="build\**\*.targets" PackagePath="build\" Pack="true" />
<None Include="build\**\*.props" PackagePath="build\" Pack="true" />
<None Include="..\..\..\deps\AssemblyProcessor\*.*" PackagePath="tools\AssemblyProcessor\" Pack="true" />
</ItemGroup>

@@ -109,7 +110,7 @@
</ItemGroup>

<ItemGroup>
<XenkoContent Include="Xenko.Core.dll.config" />
<XenkoContent Condition="'$(XenkoPlatform)' == 'Linux'" Include="Xenko.Core.dll.config" />
</ItemGroup>

<ItemGroup>
@@ -0,0 +1,36 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Support for TargetFramework xamarinios10 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'xamarinios10' ">
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
<TargetFrameworkIdentifier>Xamarin.iOS</TargetFrameworkIdentifier>
<XenkoPlatformDefines>XENKO_PLATFORM_MONO_MOBILE;XENKO_PLATFORM_IOS;NET45</XenkoPlatformDefines>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<LanguageTargets>$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets</LanguageTargets>
</PropertyGroup>
<!-- Support for TargetFramework monoandroid50 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'monoandroid50' ">
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<TargetFramework>monoandroid50</TargetFramework>
<TargetFrameworkIdentifier>MonoAndroid</TargetFrameworkIdentifier>
<XenkoPlatformDefines>XENKO_PLATFORM_MONO_MOBILE;XENKO_PLATFORM_ANDROID;NET45</XenkoPlatformDefines>
<AndroidSupportedAbis>armeabi-v7a%3barmeabi%3bx86</AndroidSupportedAbis>
<AndroidStoreUncompressedFileExtensions />
<MandroidI18n />
<LanguageTargets>$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets</LanguageTargets>
</PropertyGroup>
<!-- Support for TargetFramework uap10.0 -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'uap10.0' ">
<TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<TargetFrameworkMoniker>.NETCore,Version=v5.0</TargetFrameworkMoniker>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.17134.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<NugetTargetMoniker>UAP,Version=v10.0</NugetTargetMoniker>
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
<LanguageTargets>$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets</LanguageTargets>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
</PropertyGroup>

</Project>
@@ -1,4 +1,4 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#
var androidOrientation = "Landscape";
switch ((Xenko.Graphics.DisplayOrientation)Properties.Orientation)
@@ -28,7 +28,7 @@ namespace <#= Properties.Namespace #>
Icon = "@drawable/icon",
ScreenOrientation = ScreenOrientation.<#= androidOrientation #>,
ConfigurationChanges = ConfigChanges.UiMode | ConfigChanges.Orientation | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
public class <#= Properties.PackageNameShort #>Activity : AndroidXenkoActivity
public class <#= Properties.PackageGameNameShort #>Activity : AndroidXenkoActivity
{
protected override void OnCreate(Bundle bundle)
{
@@ -25,7 +25,6 @@
<JavaMaximumHeapSize />
<JavaOptions />
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<XenkoPackageGuid>{<#= Properties.Package.Id #>}</XenkoPackageGuid>
<!-- Force msbuild to check to rebuild this assembly instead of letting VS IDE guess -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
@@ -38,11 +37,11 @@
<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>">
<Project>{<#= Properties.ProjectGameGuid #>}</Project>
<Name><#= Properties.PackageName #></Name>
<Name><#= Properties.PackageGameName #></Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="<#= Properties.PackageNameShort #>Activity.cs" />
<Compile Include="<#= Properties.PackageGameNameShort #>Activity.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Content Include="Properties\AndroidManifest.xml" />
<AndroidResource Include="Resources\Drawable\Icon.png" />
@@ -1,7 +1,7 @@
!ProjectTemplate
!ProjectTemplate
Files:
- {Source: $ProjectName$.csproj.t4, Target: $ProjectName$.csproj, IsTemplate: true}
- {Source: $PackageNameShort$Activity.cs.t4, Target: $PackageNameShort$Activity.cs, IsTemplate: true}
- {Source: $PackageGameNameShort$Activity.cs.t4, Target: $PackageGameNameShort$Activity.cs, IsTemplate: true}
- {Source: Properties\AssemblyInfo.cs.t4, Target: Properties\AssemblyInfo.cs, IsTemplate: true}
- {Source: Properties\AndroidManifest.xml.t4, Target: Properties\AndroidManifest.xml, IsTemplate: true}
- {Source: Resources\drawable\XenkoIcon.png, Target: Resources\drawable\Icon.png }
- {Source: Resources\drawable\XenkoIcon.png, Target: Resources\drawable\Icon.png }
@@ -1,7 +1,7 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<#= Properties.PackageName #>" android:versionCode="1" android:versionName="1.0">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<#= Properties.PackageGameName #>" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="<#= Properties.PackageDisplayName #>" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></application>
</manifest>
<application android:label="<#= Properties.PackageGameDisplayName #>" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></application>
</manifest>
@@ -1,15 +1,15 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using System.Reflection;
using System.Resources;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("<#= Properties.PackageName #>")]
[assembly: AssemblyTitle("<#= Properties.PackageGameName #>")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("<#= Properties.PackageName #>")]
[assembly: AssemblyProduct("<#= Properties.PackageGameName #>")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -1,9 +1,9 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using Xenko.Engine;

namespace <#= Properties.Namespace #>
{
class <#= Properties.PackageNameShort #>App
class <#= Properties.PackageGameNameShort #>App
{
static void Main(string[] args)
{
@@ -1,5 +1,5 @@
!ProjectTemplate
Files:
- {Source: $ProjectName$.csproj.t4, Target: $ProjectName$.csproj, IsTemplate: true}
- {Source: $PackageNameShort$App.cs.t4, Target: $PackageNameShort$App.cs, IsTemplate: true}
- {Source: $PackageGameNameShort$App.cs.t4, Target: $PackageGameNameShort$App.cs, IsTemplate: true}
- {Source: Resources\XenkoIcon.ico, Target: Resources\Icon.ico}
@@ -21,7 +21,6 @@
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile><#= ProjectName #>.TemporaryKey.pfx</PackageCertificateKeyFile>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<XenkoPackageGuid>{<#= Properties.Package.Id #>}</XenkoPackageGuid>
<!-- Force msbuild to check to rebuild this assembly instead of letting VS IDE guess -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
@@ -35,7 +34,7 @@
<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>">
<Project>{<#= Properties.ProjectGameGuid #>}</Project>
<Name><#= Properties.PackageName #></Name>
<Name><#= Properties.PackageGameName #></Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
@@ -1,4 +1,4 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<# var identityGuid = System.Guid.NewGuid(); #>
<Identity
Name="<#= identityGuid.ToString().ToLowerInvariant() #>"
@@ -8,7 +8,7 @@
<mp:PhoneIdentity PhoneProductId="<#= identityGuid.ToString().ToLowerInvariant() #>" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

<Properties>
<DisplayName><#= Properties.PackageName #></DisplayName>
<DisplayName><#= Properties.PackageGameName #></DisplayName>
<PublisherDisplayName>publisher</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
@@ -22,14 +22,14 @@
</Resources>

<Applications>
<Application Id="<#= Properties.PackageNameShort #>"
<Application Id="<#= Properties.PackageGameNameShort #>"
Executable="$targetnametoken$.exe"
EntryPoint="<#= Properties.Namespace #>.App">
<uap:VisualElements
DisplayName="<#= Properties.PackageDisplayName #>"
DisplayName="<#= Properties.PackageGameDisplayName #>"
Square150x150Logo="Assets\Logo.png"
Square44x44Logo="Assets\SmallLogo.png"
Description="<#= Properties.PackageName #>"
Description="<#= Properties.PackageGameName #>"
BackgroundColor="#464646">
<uap:SplashScreen Image="Assets\SplashScreen.png" />
<#@ include file="..\Common.UWP.targets.t4" #>
@@ -1,15 +1,15 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using System.Reflection;
using System.Resources;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("<#= Properties.PackageName #>")]
[assembly: AssemblyTitle("<#= Properties.PackageGameName #>")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("<#= Properties.PackageName #>")]
[assembly: AssemblyProduct("<#= Properties.PackageGameName #>")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -1,4 +1,4 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using System;
using System.Collections.Generic;
using System.IO;
@@ -25,11 +25,11 @@ namespace <#= Properties.Namespace #>
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class <#= Properties.PackageNameShort #>MainPage : Page
public sealed partial class <#= Properties.PackageGameNameShort #>MainPage : Page
{
Game Game;

public <#= Properties.PackageNameShort #>MainPage()
public <#= Properties.PackageGameNameShort #>MainPage()
{
this.InitializeComponent();

@@ -1,6 +1,6 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<Page
x:Class="<#= Properties.Namespace #>.<#= Properties.PackageNameShort #>MainPage"
x:Class="<#= Properties.Namespace #>.<#= Properties.PackageGameNameShort #>MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:<#= Properties.Namespace #>"
@@ -21,7 +21,6 @@
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile><#= ProjectName #>.TemporaryKey.pfx</PackageCertificateKeyFile>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<XenkoPackageGuid>{<#= Properties.Package.Id #>}</XenkoPackageGuid>
<!-- Force msbuild to check to rebuild this assembly instead of letting VS IDE guess -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
@@ -35,15 +34,15 @@
<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>">
<Project>{<#= Properties.ProjectGameGuid #>}</Project>
<Name><#= Properties.PackageName #></Name>
<Name><#= Properties.PackageGameName #></Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="<#= Properties.PackageNameShort #>MainPage.xaml.cs">
<DependentUpon><#= Properties.PackageNameShort #>MainPage.xaml</DependentUpon>
<Compile Include="<#= Properties.PackageGameNameShort #>MainPage.xaml.cs">
<DependentUpon><#= Properties.PackageGameNameShort #>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
@@ -71,7 +70,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="<#= Properties.PackageNameShort #>MainPage.xaml">
<Page Include="<#= Properties.PackageGameNameShort #>MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
@@ -1,4 +1,4 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using System;
using System.Collections.Generic;
using System.IO;
@@ -75,7 +75,7 @@ namespace <#= Properties.Namespace #>
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
if (!rootFrame.Navigate(typeof(<#= Properties.PackageNameShort #>MainPage), e.Arguments))
if (!rootFrame.Navigate(typeof(<#= Properties.PackageGameNameShort #>MainPage), e.Arguments))
{
throw new Exception("Failed to create initial page");
}
@@ -110,4 +110,4 @@ namespace <#= Properties.Namespace #>
deferral.Complete();
}
}
}
}
@@ -3,8 +3,8 @@ Files:
- {Source: $ProjectName$.csproj.t4, Target: $ProjectName$.csproj, IsTemplate: true}
- {Source: App.xaml.cs.t4, Target: App.xaml.cs, IsTemplate: true}
- {Source: App.xaml.t4, Target: App.xaml, IsTemplate: true}
- {Source: $PackageNameShort$MainPage.xaml.cs.t4, Target: $PackageNameShort$MainPage.xaml.cs, IsTemplate: true}
- {Source: $PackageNameShort$MainPage.xaml.t4, Target: $PackageNameShort$MainPage.xaml, IsTemplate: true}
- {Source: $PackageGameNameShort$MainPage.xaml.cs.t4, Target: $PackageGameNameShort$MainPage.xaml.cs, IsTemplate: true}
- {Source: $PackageGameNameShort$MainPage.xaml.t4, Target: $PackageGameNameShort$MainPage.xaml, IsTemplate: true}
- {Source: Package.appxmanifest.t4, Target: Package.appxmanifest, IsTemplate: true}
- {Source: ..\Properties\AssemblyInfo.cs.t4, Target: Properties\AssemblyInfo.cs, IsTemplate: true}
- {Source: ..\Properties\Default.rd.xml, Target: Properties\Default.rd.xml}
@@ -1,9 +1,9 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using Xenko.Engine;

namespace <#= Properties.Namespace #>
{
class <#= Properties.PackageNameShort #>App
class <#= Properties.PackageGameNameShort #>App
{
static void Main(string[] args)
{
@@ -1,5 +1,5 @@
!ProjectTemplate
Files:
- {Source: $ProjectName$.csproj.t4, Target: $ProjectName$.csproj, IsTemplate: true}
- {Source: $PackageNameShort$App.cs.t4, Target: $PackageNameShort$App.cs, IsTemplate: true}
- {Source: $PackageGameNameShort$App.cs.t4, Target: $PackageGameNameShort$App.cs, IsTemplate: true}
- {Source: Resources\XenkoIcon.ico, Target: Resources\Icon.ico}
@@ -1,4 +1,4 @@
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
<#@ template inherits="ProjectTemplateTransformation" language="C#" #>
using Foundation;
using UIKit;
using Xenko.Engine;
@@ -7,8 +7,8 @@ using Xenko.Starter;

namespace <#= Properties.Namespace #>
{
[Register("<#= Properties.PackageNameShort #>AppDelegate")]
public class <#= Properties.PackageNameShort #>AppDelegate : XenkoApplicationDelegate
[Register("<#= Properties.PackageGameNameShort #>AppDelegate")]
public class <#= Properties.PackageGameNameShort #>AppDelegate : XenkoApplicationDelegate
{
/// This method is invoked when the application has loaded and is ready to run the gane.
// In this method you should instantiate the game and perform additional setup here.
@@ -23,7 +23,7 @@ namespace <#= Properties.Namespace #>

static void Main(string[] args)
{
UIApplication.Main(args, null, "<#= Properties.PackageNameShort #>AppDelegate");
UIApplication.Main(args, null, "<#= Properties.PackageGameNameShort #>AppDelegate");
}

public override void WillTerminate(UIApplication application)
@@ -14,7 +14,6 @@
<RootNamespace><#= Properties.Namespace #></RootNamespace>
<AssemblyName><#= Properties.PackageNameCode #></AssemblyName>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<XenkoPackageGuid>{<#= Properties.Package.Id #>}</XenkoPackageGuid>
<!-- Force msbuild to check to rebuild this assembly instead of letting VS IDE guess -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
@@ -27,11 +26,11 @@
<ItemGroup>
<ProjectReference Include="..\<#= Properties.ProjectGameRelativePath #>">
<Project>{<#= Properties.ProjectGameGuid #>}</Project>
<Name><#= Properties.PackageName #></Name>
<Name><#= Properties.PackageGameName #></Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="<#= Properties.PackageNameShort #>AppDelegate.cs" />
<Compile Include="<#= Properties.PackageGameNameShort #>AppDelegate.cs" />
<None Include="Info.plist" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>

0 comments on commit 63b14a1

Please sign in to comment.
You can’t perform that action at this time.