forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetroCSharpVS2013Templates.cs
More file actions
49 lines (44 loc) · 15 KB
/
MetroCSharpVS2013Templates.cs
File metadata and controls
49 lines (44 loc) · 15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
internal static class MetroCSharpVS2013Templates
{
public static string GetSolutionTemplate()
{
string[] textArray1 = new string[] {
"Microsoft Visual Studio Solution File, Format Version 12.00", "# Visual Studio 2013", "VisualStudioVersion = 12.0.20617.1 PREVIEW", "MinimumVisualStudioVersion = 10.0.40219.1", "Project(\"{{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}\") = \"{0}\", \"{0}\\{0}.csproj\", \"{{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}\"", " ProjectSection(ProjectDependencies) = postProject", "{1} EndProjectSection", "EndProject", "{2}", "Global", " GlobalSection(SolutionConfigurationPlatforms) = preSolution", " Debug|ARM = Debug|ARM", " Debug|x86 = Debug|x86", " Master|ARM = Master|ARM", " Master|x86 = Master|x86", " Release|ARM = Release|ARM",
" Release|x86 = Release|x86", " EndGlobalSection", " GlobalSection(ProjectConfigurationPlatforms) = postSolution", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.ActiveCfg = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.Build.0 = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.Deploy.0 = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.ActiveCfg = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.Build.0 = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.Deploy.0 = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.ActiveCfg = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.Build.0 = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.Deploy.0 = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.ActiveCfg = Master|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.Build.0 = Master|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.Deploy.0 = Master|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.ActiveCfg = Release|ARM",
" {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.Build.0 = Release|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.Deploy.0 = Release|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.ActiveCfg = Release|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.Build.0 = Release|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.Deploy.0 = Release|x86", "{3} EndGlobalSection", " GlobalSection(SolutionProperties) = preSolution", " HideSolutionNode = FALSE", " EndGlobalSection", "EndGlobal"
};
return string.Join("\r\n", textArray1).Replace(" ", "\t");
}
public static string GetSourceBuildSolutionTemplate()
{
string[] textArray1 = new string[] {
"Microsoft Visual Studio Solution File, Format Version 12.00", "# Visual Studio 2013", "VisualStudioVersion = 12.0.20617.1 PREVIEW", "MinimumVisualStudioVersion = 10.0.40219.1", "Project(\"{{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}}\") = \"{0}\", \"{0}\\{0}.csproj\", \"{{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}\"", " ProjectSection(ProjectDependencies) = postProject", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}} = {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}", "{1} EndProjectSection", "EndProject", "{2}", "Global", " GlobalSection(SolutionConfigurationPlatforms) = preSolution", " Debug|ARM = Debug|ARM", " Debug|x86 = Debug|x86", " Master|ARM = Master|ARM", " Master|x86 = Master|x86",
" Release|ARM = Release|ARM", " Release|x86 = Release|x86", " EndGlobalSection", " GlobalSection(ProjectConfigurationPlatforms) = postSolution", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.ActiveCfg = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.Build.0 = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|ARM.Deploy.0 = Debug|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.ActiveCfg = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.Build.0 = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Debug|x86.Deploy.0 = Debug|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.ActiveCfg = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.Build.0 = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|ARM.Deploy.0 = Master|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.ActiveCfg = Master|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.Build.0 = Master|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Master|x86.Deploy.0 = Master|x86",
" {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.ActiveCfg = Release|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.Build.0 = Release|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|ARM.Deploy.0 = Release|ARM", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.ActiveCfg = Release|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.Build.0 = Release|x86", " {{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}.Release|x86.Deploy.0 = Release|x86", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Debug|ARM.ActiveCfg = Debug|ARM", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Debug|ARM.Build.0 = Debug|ARM", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Debug|x86.ActiveCfg = Debug|Win32", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Debug|x86.Build.0 = Debug|Win32", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Master|ARM.ActiveCfg = Master|ARM", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Master|ARM.Build.0 = Master|ARM", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Master|x86.ActiveCfg = Master|Win32", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Master|x86.Build.0 = Master|Win32", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Release|ARM.ActiveCfg = Release|ARM", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Release|ARM.Build.0 = Release|ARM",
" {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Release|x86.ActiveCfg = Release|Win32", " {{B6936B32-2A3B-4BD6-8799-A7EE3C02E72E}}.Release|x86.Build.0 = Release|Win32", "{3} EndGlobalSection", " GlobalSection(SolutionProperties) = preSolution", " HideSolutionNode = FALSE", " EndGlobalSection", "EndGlobal"
};
return string.Join("\r\n", textArray1).Replace(" ", "\t");
}
public static string GetVSProjTemplate()
{
string[] textArray1 = new string[] {
"<?xml version=\"1.0\" encoding=\"utf-8\"?>", "<Project ToolsVersion=\"12.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">", " <Import Project=\"{4}\" />", " <Import Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" />", " <PropertyGroup>", " <Configuration Condition=\" '$(Configuration)' == '' \">Debug</Configuration>", " <Platform Condition=\" '$(Platform)' == '' \">x86</Platform>", " <ProjectGuid>{{9A513B19-3E02-41BF-8968-58BC58B0A6B3}}</ProjectGuid>", " <OutputType>AppContainerExe</OutputType>", " <AppDesignerFolder>Properties</AppDesignerFolder>", " <RootNamespace>{6}</RootNamespace>", " <AssemblyName>{7}</AssemblyName>", " <DefaultLanguage>en-US</DefaultLanguage>", " <TargetPlatformVersion>8.1</TargetPlatformVersion>", " <MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>", " <FileAlignment>512</FileAlignment>",
" <ProjectTypeGuids>{{BC8A1FFA-BEE3-4634-8014-F334798102B3}};{{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}}</ProjectTypeGuids>", " <PackageCertificateKeyFile>{0}</PackageCertificateKeyFile>", " <PlatformShortName>$(Platform)</PlatformShortName>", " {2}", " <AllowedReferenceRelatedFileExtensions>", " $(AllowedReferenceRelatedFileExtensions);", " _Windows81_$(Platform)_$(Configuration)_dotnet.pdb;", " .pdb;", " </AllowedReferenceRelatedFileExtensions>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Debug|ARM'\">", " <DebugSymbols>true</DebugSymbols>", @" <OutputPath>bin\ARM\Debug\</OutputPath>", " <DefineConstants>DEBUG;TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <NoWarn>;2008</NoWarn>", " <DebugType>full</DebugType>",
" <PlatformTarget>ARM</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Release|ARM'\">", @" <OutputPath>bin\ARM\Release\</OutputPath>", " <DefineConstants>TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <Optimize>true</Optimize>", " <NoWarn>;2008</NoWarn>", " <DebugType>pdbonly</DebugType>", " <PlatformTarget>ARM</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>", " </PropertyGroup>",
" <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Debug|x86'\">", " <DebugSymbols>true</DebugSymbols>", @" <OutputPath>bin\x86\Debug\</OutputPath>", " <DefineConstants>DEBUG;TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <NoWarn>;2008</NoWarn>", " <DebugType>full</DebugType>", " <PlatformTarget>x86</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Release|x86'\">", @" <OutputPath>bin\x86\Release\</OutputPath>", " <DefineConstants>TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <Optimize>true</Optimize>", " <NoWarn>;2008</NoWarn>",
" <DebugType>pdbonly</DebugType>", " <PlatformTarget>x86</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Master|ARM'\">", @" <OutputPath>bin\ARM\Master\</OutputPath>", " <DefineConstants>TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <Optimize>true</Optimize>", " <NoWarn>;2008</NoWarn>", " <DebugType>pdbonly</DebugType>", " <PlatformTarget>ARM</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>",
" </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Master|x86'\">", @" <OutputPath>bin\x86\Master\</OutputPath>", " <DefineConstants>TRACE;NETFX_CORE;UNITY_METRO;UNITY_WSA;UNITY_METRO_8_1;UNITY_WSA_8_1</DefineConstants>", " <Optimize>true</Optimize>", " <NoWarn>;2008</NoWarn>", " <DebugType>pdbonly</DebugType>", " <PlatformTarget>x86</PlatformTarget>", " <UseVSHostingProcess>false</UseVSHostingProcess>", " <ErrorReport>prompt</ErrorReport>", " <Prefer32Bit>true</Prefer32Bit>", " </PropertyGroup>", " <ItemGroup>", " <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->", " </ItemGroup>", " <ItemGroup>",
" <AppxManifest Include=\"Package.appxmanifest\">", " <SubType>Designer</SubType>", " </AppxManifest>", " <None Include=\"{0}\" />", " </ItemGroup>{5}", " <ItemGroup>", " <Reference Include=\"UnityPlayer, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL\">", " <SpecificVersion>False</SpecificVersion>", @" <HintPath>..\Players\$(PlatformTarget)\$(Configuration)\UnityPlayer.winmd</HintPath>", " </Reference>", " <Reference Include=\"WinRTBridge\">", " <SpecificVersion>False</SpecificVersion>", @" <HintPath>..\Players\$(PlatformTarget)\$(Configuration)\WinRTBridge.winmd</HintPath>", " </Reference>", " <Reference Include=\"BridgeInterface\">", " <SpecificVersion>False</SpecificVersion>",
@" <HintPath>..\Players\$(PlatformTarget)\$(Configuration)\BridgeInterface.winmd</HintPath>", " </Reference>", " <Reference Include=\"UnityEngineDelegates\">", " <SpecificVersion>False</SpecificVersion>", @" <HintPath>..\Players\$(PlatformTarget)\$(Configuration)\UnityEngineDelegates.winmd</HintPath>", " </Reference>", " <Reference Include=\"UnityEngineProxy\">", " <SpecificVersion>False</SpecificVersion>", @" <HintPath>..\Players\$(PlatformTarget)\$(Configuration)\UnityEngineProxy.dll</HintPath>", " </Reference>", " </ItemGroup>", " <ItemGroup>", "{1} <Content Include=\"Data\\**\">", " </Content>", " </ItemGroup>", " <ItemGroup>",
" <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->", " <SDKReference Include=\"Microsoft.VCLibs, Version=12.0\">", " <Name>Microsoft Visual C++ Runtime Package</Name>", " </SDKReference>", " </ItemGroup>", " <PropertyGroup Condition=\" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '12.0' \">", " <VisualStudioVersion>12.0</VisualStudioVersion>", " </PropertyGroup>", "", "{3}", " <Import Project=\"$(MSBuildExtensionsPath)\\Microsoft\\WindowsXaml\\v$(VisualStudioVersion)\\Microsoft.Windows.UI.Xaml.CSharp.targets\" />", " <ItemGroup>", " <UnprocessedFile Include=\"$(ProjectDir)Unprocessed\\*\" />", " </ItemGroup>", " <!-- To modify your build process, add your task inside one of the targets below and uncomment it. ", " Other similar extension points exist, see Microsoft.Common.targets.",
" <Target Name=\"BeforeBuild\">", " </Target>", " -->", "{8}", "</Project>"
};
return string.Join("\r\n", textArray1);
}
public static string GetVSProjUserPropsTemplate()
{
string[] textArray1 = new string[] { "<?xml version=\"1.0\" encoding=\"utf-8\"?>", "<Project ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Debug|x86'\">", " <EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Release|ARM'\">", " <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Debug|ARM'\">", " <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>", " </PropertyGroup>", " <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Release|x86'\">", " <EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>", " </PropertyGroup>", "</Project>" };
return string.Join("\r\n", textArray1);
}
}