Skip to content

Commit

Permalink
Updated templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDaskin committed Oct 23, 2020
1 parent b0e53ec commit 20bed9f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private static void OnAssemblyLoad(object sender, AssemblyLoadEventArgs args)
// The Main method is called before Unity has initialized.
if (args.LoadedAssembly.GetType("UnityEngine.Application") != null)
{
Debug.Log("Hello from $projectname$!");
Debug.Log("Hello from $rootnamespace$!");
}
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
<TemplateData>
<Name>Unity game mod (C#)</Name>
<Description>Unity game mod (C#)</Description>
<Icon>ProjectTemplate.ico</Icon>
<Description>A project for building and deploying a Unity game mod.</Description>
<Icon>UnityModProject.CSharp.ico</Icon>
<ProjectType>CSharp</ProjectType>
<LanguageTag>CSharp</LanguageTag>
<PlatformTag>Windows</PlatformTag>
<PlatformTag>Linux</PlatformTag>
<PlatformTag>macOS</PlatformTag>
<ProjectTypeTag>Library</ProjectTypeTag>
<ProjectTypeTag>Games</ProjectTypeTag>
<ProjectTypeTag>Extension</ProjectTypeTag>
<SortOrder>1000</SortOrder>
<TemplateID>387519ac-7584-4c99-916a-f038bac3499f</TemplateID>
<CreateNewFolder>true</CreateNewFolder>
Expand All @@ -15,8 +21,8 @@
<CreateInPlace>true</CreateInPlace>
</TemplateData>
<TemplateContent>
<Project File="ProjectTemplate.csproj" ReplaceParameters="true">
<ProjectItem TargetFileName="$projectname$.csproj.user" ReplaceParameters="true">ProjectTemplate.csproj.user.xml</ProjectItem>
<Project File="UnityModProject.csproj" ReplaceParameters="true">
<ProjectItem TargetFileName="$projectname$.csproj.user" ReplaceParameters="true">UnityModProject.csproj.user.xml</ProjectItem>
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Class1.cs</ProjectItem>
<Folder Name="Properties">
<ProjectItem>launchSettings.json</ProjectItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@
<ItemGroup>
<None Include="Class1.cs" />
<None Include="Properties\launchSettings.json" />
<None Include="ProjectTemplate.csproj" />
<None Include="ProjectTemplate.ico" />
<None Include="UnityModProject.csproj" />
</ItemGroup>
<ItemGroup>
<VSTemplate Include="ProjectTemplate.vstemplate">
<VSTemplate Include="UnityModProject.vstemplate">
<OutputSubPath>UnityModStudio</OutputSubPath>
</VSTemplate>
</ItemGroup>
<ItemGroup>
<None Include="ProjectTemplate.csproj.user.xml" />
<None Include="UnityModProject.csproj.user.xml" />
</ItemGroup>
<ItemGroup>
<Content Include="UnityModProject.CSharp.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
Expand Down

0 comments on commit 20bed9f

Please sign in to comment.