Replaced the old VS templates with ones that offer more flexiblity. Started replacing the Content Project for the samples with our custom project type. Inlcuded a basic not yet working AssimpImporter.
140 lines
6.7 KiB
C#
140 lines
6.7 KiB
C#
/* ****************************************************************************
|
|
*
|
|
* Copyright (c) Microsoft Corporation.
|
|
*
|
|
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
|
|
* copy of the license can be found in the License.html file at the root of this distribution. If
|
|
* you cannot locate the Apache License, Version 2.0, please send an email to
|
|
* vspython@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
|
|
* by the terms of the Apache License, Version 2.0.
|
|
*
|
|
* You must not remove this notice, or any other, from this software.
|
|
*
|
|
* ***************************************************************************/
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Microsoft.VisualStudio.Project
|
|
{
|
|
/// <summary>
|
|
/// Defines the constant strings for various msbuild targets
|
|
/// </summary>
|
|
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Ms")]
|
|
public static class MsBuildTarget
|
|
{
|
|
public const string ResolveProjectReferences = "ResolveProjectReferences";
|
|
public const string ResolveAssemblyReferences = "ResolveAssemblyReferences";
|
|
public const string ResolveComReferences = "ResolveComReferences";
|
|
public const string Build = "Build";
|
|
public const string Rebuild = "ReBuild";
|
|
public const string Clean = "Clean";
|
|
}
|
|
|
|
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Ms")]
|
|
public static class MsBuildGeneratedItemType
|
|
{
|
|
public const string ReferenceCopyLocalPaths = "ReferenceCopyLocalPaths";
|
|
public const string ComReferenceWrappers = "ComReferenceWrappers";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines the constant strings used with project files.
|
|
/// </summary>
|
|
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "COM")]
|
|
public static class ProjectFileConstants
|
|
{
|
|
public const string Include = "Include";
|
|
public const string Name = "Name";
|
|
public const string HintPath = "HintPath";
|
|
public const string AssemblyName = "AssemblyName";
|
|
public const string FinalOutputPath = "FinalOutputPath";
|
|
public const string Project = "Project";
|
|
public const string LinkedIntoProjectAt = "LinkedIntoProjectAt";
|
|
public const string TypeGuid = "TypeGuid";
|
|
public const string InstanceGuid = "InstanceGuid";
|
|
public const string Private = "Private";
|
|
public const string ProjectReference = "ProjectReference";
|
|
public const string Reference = "Reference";
|
|
public const string WebPiReference = "WebPiReference";
|
|
public const string WebReference = "WebReference";
|
|
public const string WebReferenceFolder = "WebReferenceFolder";
|
|
public const string Folder = "Folder";
|
|
public const string Content = "Content";
|
|
public const string EmbeddedResource = "EmbeddedResource";
|
|
public const string RootNamespace = "RootNamespace";
|
|
public const string OutputType = "OutputType";
|
|
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "SubType")]
|
|
public const string SubType = "SubType";
|
|
public const string DependentUpon = "DependentUpon";
|
|
public const string Link = "Link";
|
|
public const string Compile = "Compile";
|
|
public const string ReferencePath = "ReferencePath";
|
|
public const string ResolvedProjectReferencePaths = "ResolvedProjectReferencePaths";
|
|
public const string Configuration = "Configuration";
|
|
public const string Platform = "Platform";
|
|
public const string AvailablePlatforms = "AvailablePlatforms";
|
|
public const string BuildVerbosity = "BuildVerbosity";
|
|
public const string Template = "Template";
|
|
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "SubProject")]
|
|
public const string SubProject = "SubProject";
|
|
public const string BuildAction = "BuildAction";
|
|
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "COM")]
|
|
public const string COMReference = "COMReference";
|
|
public const string Guid = "GUID";
|
|
public const string VersionMajor = "VersionMajor";
|
|
public const string VersionMinor = "VersionMinor";
|
|
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Lcid")]
|
|
public const string Lcid = "Lcid";
|
|
public const string Isolated = "Isolated";
|
|
public const string WrapperTool = "WrapperTool";
|
|
public const string BuildingInsideVisualStudio = "BuildingInsideVisualStudio";
|
|
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Scc")]
|
|
public const string SccProjectName = "SccProjectName";
|
|
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Scc")]
|
|
public const string SccLocalPath = "SccLocalPath";
|
|
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Scc")]
|
|
public const string SccAuxPath = "SccAuxPath";
|
|
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Scc")]
|
|
public const string SccProvider = "SccProvider";
|
|
public const string ProjectGuid = "ProjectGuid";
|
|
public const string ProjectTypeGuids = "ProjectTypeGuids";
|
|
public const string Generator = "Generator";
|
|
public const string CustomToolNamespace = "CustomToolNamespace";
|
|
public const string FlavorProperties = "FlavorProperties";
|
|
public const string VisualStudio = "VisualStudio";
|
|
public const string User = "User";
|
|
}
|
|
|
|
public static class ProjectFileAttributeValue
|
|
{
|
|
public const string Code = "Code";
|
|
public const string Form = "Form";
|
|
public const string Component = "Component";
|
|
public const string Designer = "Designer";
|
|
public const string UserControl = "UserControl";
|
|
}
|
|
|
|
public static class ProjectFileValues
|
|
{
|
|
public const string AnyCPU = "AnyCPU";
|
|
}
|
|
|
|
public enum WrapperToolAttributeValue
|
|
{
|
|
Primary,
|
|
TlbImp
|
|
}
|
|
|
|
/// <summary>
|
|
/// A set of constants that specify the default sort order for different types of hierarchy nodes.
|
|
/// </summary>
|
|
public static class DefaultSortOrderNode
|
|
{
|
|
public const int HierarchyNode = 1000;
|
|
public const int FolderNode = 500;
|
|
public const int NestedProjectNode = 200;
|
|
public const int ReferenceContainerNode = 300;
|
|
}
|
|
|
|
}
|