Mirror build and version folders from VSTS IIS-Common

This commit is contained in:
Yanbing Shi 2018-04-09 17:14:34 -07:00
Родитель 0d15e44b70
Коммит 7b96796200
14 изменённых файлов: 400 добавлений и 0 удалений

7
.gitignore поставляемый
Просмотреть файл

@ -42,6 +42,9 @@ TestResult.xml
[Rr]eleasePS/ [Rr]eleasePS/
dlldata.c dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core # .NET Core
project.lock.json project.lock.json
project.fragment.lock.json project.fragment.lock.json
@ -183,6 +186,7 @@ AppPackages/
BundleArtifacts/ BundleArtifacts/
Package.StoreAssociation.xml Package.StoreAssociation.xml
_pkginfo.txt _pkginfo.txt
*.appx
# Visual Studio cache files # Visual Studio cache files
# files ending in .cache can be ignored # files ending in .cache can be ignored
@ -278,6 +282,9 @@ __pycache__/
# tools/** # tools/**
# !tools/packages.config # !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file # Telerik's JustMock configuration file
*.jmconfig *.jmconfig

6
NuGet.config Normal file
Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="%userprofile%\.nuget\GlobalPackages" />
</config>
</configuration>

16
build/compiler.props Normal file
Просмотреть файл

@ -0,0 +1,16 @@
<Project>
<PropertyGroup>
<CppNugetVersion>14.11.25547</CppNugetVersion>
<CppNugetPath Condition="$(CppNugetPath) == '' AND Exists('$(UserProfile)\.nuget\packages\visualcpptools.community.vs2017layout\$(CppNugetVersion)\build\native\VisualCppTools.Community.VS2017Layout.props')">$(UserProfile)\.nuget\packages\visualcpptools.community.vs2017layout\$(CppNugetVersion)\build\native\VisualCppTools.Community.VS2017Layout.props</CppNugetPath>
<CppNugetPath Condition="$(CppNugetPath) == ''">$(UserProfile)\.nuget\GlobalPackages\visualcpptools.community.vs2017layout.$(CppNugetVersion)\build\native\VisualCppTools.Community.VS2017Layout.props</CppNugetPath>
</PropertyGroup>
<Import Project="$(CppNugetPath)" Condition="Exists('$(CppNugetPath)')" />
<Target Name="EnsureNugetCompilerBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(CppNugetPath)')" Text="$([System.String]::Format('$(ErrorText)', '$(CppNugetPath)'))" />
</Target>
</Project>

Просмотреть файл

@ -0,0 +1,18 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition="'@(BuildOutputFiles)' == ''">
<BuildOutputFiles Include="$(OutDir)\$(TargetName)$(TargetExt)"/>
</ItemGroup>
<PropertyGroup>
<BuildOutputCopyPath Condition="$(BuildOutputCopyPath) == ''">$(Configuration)\$(PlatformShortname)\</BuildOutputCopyPath>
</PropertyGroup>
<Target Name="CopyOutputsToRoot" AfterTargets="Build">
<Copy
SourceFiles="@(BuildOutputFiles)"
DestinationFolder="$(SolutionDir)bin\$(BuildOutputCopyPath)"
/>
</Target>
</Project>

8
build/settings.props Normal file
Просмотреть файл

@ -0,0 +1,8 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)settings\common.props" />
<Import Project="$(MSBuildThisFileDirectory)settings\release.props" />
<Import Project="$(MSBuildThisFileDirectory)settings\debug.props" />
<Import Project="$(MSBuildThisFileDirectory)compiler.props" />
</Project>

Просмотреть файл

@ -0,0 +1,54 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Use a common version of the Windows SDK
-->
<!-- Define platform shortnames for use in paths without having to rely on cpp props -->
<PropertyGroup>
<PlatformShortname Condition="'$(PlatformShortname)' == '' AND '$(Platform)' == 'x64'">x64</PlatformShortname>
<PlatformShortname Condition="'$(PlatformShortname)' == '' AND ('$(Platform.ToLower())' == 'win32' OR '$(Platform)' == 'x86')">x86</PlatformShortname>
</PropertyGroup>
<!-- General properties -->
<PropertyGroup>
<IisOobWinSdkVersion Condition="'$(IisOobWinSdkVersion)' == ''">8.1</IisOobWinSdkVersion>
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)' == ''">$(IisOobWinSdkVersion)</WindowsTargetPlatformVersion>
<CharacterSet>Unicode</CharacterSet>
<OutDir>bin\$(Configuration)\$(PlatformShortname)\</OutDir>
<IntDir>obj\$(Configuration)\$(PlatformShortname)\</IntDir>
</PropertyGroup>
<!--
Use common compilation settings
-->
<ItemDefinitionGroup>
<ClCompile>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
</ItemDefinitionGroup>
<!--
Use common preprocessor definitions
-->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>

Просмотреть файл

@ -0,0 +1,28 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Common debug configuration for IIS OOB binaries -->
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<LinkIncremental>true</LinkIncremental>
<UseDebugLibraries>true</UseDebugLibraries>
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<!-- Default runtime is static multithreaded debug -->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<StringPooling>true</StringPooling>
<Optimization>Disabled</Optimization>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<OptimizeReferences>false</OptimizeReferences>
<EnableCOMDATFolding>false</EnableCOMDATFolding>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
</Project>

Просмотреть файл

@ -0,0 +1,51 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
FunctionLevelLinking (/Gy) Enables function-level linking.
StringPooling (/GF) Enables string pooling.
-->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
</ClCompile>
</ItemDefinitionGroup>
<!--
LinkIncremental (/INCREMENTAL:NO) build does not contain padding or thunks
-->
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<LinkIncremental>false</LinkIncremental>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<!--
Optimization - Full (/Ox) Uses maximum optimization
FavorSizeOrSpeed - Size (/Ot) Favors fast code
RuntimeTypeInfo (GR-) Disables run-time type information (RTTI)
IntrinsicFunctions (/Oi) Requests the compiler to use intrinsic functions
OptimizeReferences (/OPT:REF) eliminates functions and data that are never referenced
EnableCOMDATFolding (/OPT:ICF perform identical COMDAT folding
LinkTimeCodeGeneration (/LCTG) perform whole-program optimization
-->
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<Optimization>Full</Optimization>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
<Link>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
</Project>

24
build/sign.props Normal file
Просмотреть файл

@ -0,0 +1,24 @@
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MicroBuildVersion>0.2.0</MicroBuildVersion>
</PropertyGroup>
<!-- Item Group evaluated after TargetName and TargetExt are defined -->
<ItemGroup Condition=" '$(SignType)' != ''">
<FilesToSign Condition="$(TargetExt) != '.msi'" Include="$(FilesToSign);$(OutDir)\$(TargetName)$(TargetExt)">
<Authenticode>$(SigningIdentity)</Authenticode>
<StrongName Condition="'$(StrongName)' == 'true' AND $(StrongNameIdentity) != ''">$(StrongNameIdentity)</StrongName>
</FilesToSign>
</ItemGroup>
<Import Project="$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.props" Condition="Exists('$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.props')" />
<Target Name="EnsureSigningPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.props')" Text="$([System.String]::Format('$(ErrorText)', '$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.props'))" />
<Error Condition="!Exists('$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(UserProfile)\.nuget\packages\MicroBuild.Core\$(MicroBuildVersion)\build\MicroBuild.Core.targets'))" />
</Target>
</Project>

Просмотреть файл

@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Provide exports to submodule hosts -->
<PropertyGroup>
<IIS-Common Condition="$(IIS-Common) == ''">$(MSBuildThisFileDirectory)..\</IIS-Common>
</PropertyGroup>
</Project>

11
build/submodule.props Normal file
Просмотреть файл

@ -0,0 +1,11 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Add extension point for hosting as a submodule -->
<Import Condition="'$(SolutionDir)' != '' AND '$(SolutionDir)build\' != '$(MSBuildThisFileDirectory)' AND Exists('$(SolutionDir)build\submodule.props')" Project="$(SolutionDir)build\submodule.props" />
<!-- Import this modules properties if not yet declared -->
<Import Condition="$(IIS-Common) == ''" Project="$(MSBuildThisFileDirectory)submodule-exports.props" />
</Project>

32
build/versions.props Normal file
Просмотреть файл

@ -0,0 +1,32 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Allow versions as msbuild arguments -->
<PropertyGroup>
<PRODUCT_MAJOR Condition="$(PRODUCT_MAJOR) == ''">7</PRODUCT_MAJOR>
<PRODUCT_MINOR Condition="$(PRODUCT_MINOR) == ''">1</PRODUCT_MINOR>
<BUILD_MAJOR Condition="$(BUILD_MAJOR) == ''">1985</BUILD_MAJOR>
<BUILD_MINOR Condition="$(BUILD_MINOR) == ''">0</BUILD_MINOR>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>/DPRODUCT_MAJOR=$(PRODUCT_MAJOR) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<ClCompile>
<AdditionalOptions>/DPRODUCT_MINOR=$(PRODUCT_MINOR) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<ClCompile>
<AdditionalOptions>/DBUILD_MAJOR=$(BUILD_MAJOR) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<ClCompile>
<AdditionalOptions>/DBUILD_MINOR=$(BUILD_MINOR) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemDefinitionGroup>
<PropertyGroup>
<ResourceCompilePreprocessorDefinitions Condition="$(PRODUCT_MAJOR) != ''">PRODUCT_MAJOR=$(PRODUCT_MAJOR);$(ResourceCompilePreprocessorDefinitions)</ResourceCompilePreprocessorDefinitions>
<ResourceCompilePreprocessorDefinitions Condition="$(PRODUCT_MINOR) != ''">PRODUCT_MINOR=$(PRODUCT_MINOR);$(ResourceCompilePreprocessorDefinitions)</ResourceCompilePreprocessorDefinitions>
<ResourceCompilePreprocessorDefinitions Condition="$(BUILD_MAJOR) != ''">BUILD_MAJOR=$(BUILD_MAJOR);$(ResourceCompilePreprocessorDefinitions)</ResourceCompilePreprocessorDefinitions>
<ResourceCompilePreprocessorDefinitions Condition="$(BUILD_MINOR) != ''">BUILD_MINOR=$(BUILD_MINOR);$(ResourceCompilePreprocessorDefinitions)</ResourceCompilePreprocessorDefinitions>
</PropertyGroup>
</Project>

61
version/bldver.h Normal file
Просмотреть файл

@ -0,0 +1,61 @@
#ifndef _BLDVER_H_
#define _BLDVER_H_
#define STR_HELPER(x) #x
#define WSTR_HELPER(x) L#x
#define NUM_TO_STR(x) STR_HELPER(x)
#define NUM_TO_WSTR(x) WSTR_HELPER(x)
//
// Build versions are properties of the build system but can be overwritten below
//
// #define PRODUCT_MAJOR 7
// #define PRODUCT_MINOR 1
// #define BUILD_MAJOR 1972
// #define BUILD_MINOR 0
#define PRODUCT_MAJOR_STRING NUM_TO_STR(PRODUCT_MAJOR)
#define PRODUCT_MAJOR_STRING_L NUM_TO_WSTR(PRODUCT_MAJOR)
#define PRODUCT_MAJOR_NUMBER PRODUCT_MAJOR
#define PRODUCT_MINOR_STRING NUM_TO_STR(PRODUCT_MINOR)
#define PRODUCT_MINOR_STRING_L NUM_TO_WSTR(PRODUCT_MINOR)
#define PRODUCT_MINOR_NUMBER PRODUCT_MINOR
#define BUILD_MAJOR_STRING NUM_TO_STR(BUILD_MAJOR)
#define BUILD_MAJOR_STRING_L NUM_TO_WSTR(BUILD_MAJOR)
#define BUILD_MAJOR_NUMBER BUILD_MAJOR
#define BUILD_MINOR_STRING NUM_TO_STR(BUILD_MINOR)
#define BUILD_MINOR_STRING_L NUM_TO_WSTR(BUILD_MINOR)
#define BUILD_MINOR_NUMBER BUILD_MINOR
#define BUILD_NUMBER BUILD_MAJOR_STRING "." BUILD_MINOR_STRING
#define BUILD_NUM BUILD_MAJOR , BUILD_MINOR
#define PRODUCT_NUMBER PRODUCT_MAJOR_STRING "." PRODUCT_MINOR_STRING
#define PRODUCT_NUM PRODUCT_MAJOR , PRODUCT_MINOR
#define INET_VERSION PRODUCT_MAJOR_STRING "." PRODUCT_MINOR_STRING "." BUILD_MAJOR_STRING "." BUILD_MINOR_STRING
#define INET_VERSION_L PRODUCT_MAJOR_STRING_L L"." PRODUCT_MINOR_STRING_L L"." BUILD_MAJOR_STRING_L L"." BUILD_MINOR_STRING_L
#define INET_VER PRODUCT_MAJOR , PRODUCT_MINOR , BUILD_MAJOR , BUILD_MINOR
#define BUILD_PRIVATE "Built by IISBLD on IISBLD.\0"
#undef VER_PRODUCTVERSION
#undef VER_PRODUCTVERSION_STR
#undef VER_PRODUCTMAJORVERSION
#undef VER_PRODUCTMINORVERSION
#undef VER_PRODUCTBUILD
#undef VER_PRODUCTBUILD_QFE
#undef VER_PRODUCTNAME_STR
#undef VER_COMPANYNAME_STR
#define VER_PRODUCTVERSION PRODUCT_MAJOR,PRODUCT_MINOR,BUILD_MAJOR,BUILD_MINOR
#define VER_PRODUCTVERSION_STR PRODUCT_MAJOR_STRING "." PRODUCT_MINOR_STRING "." BUILD_MAJOR_STRING "." BUILD_MINOR_STRING
#define VER_PRODUCTMAJORVERSION PRODUCT_MAJOR
#define VER_PRODUCTMINORVERSION PRODUCT_MINOR
#define VER_PRODUCTBUILD BUILD_MAJOR
#define VER_PRODUCTBUILD_QFE BUILD_MINOR
#define VER_PRODUCTNAME_STR "Microsoft Web Platform Extensions"
#define VER_COMPANYNAME_STR "Microsoft Corporation"
#endif

75
version/bldver.rc Normal file
Просмотреть файл

@ -0,0 +1,75 @@
// BLDVER.RC - Standard version resource for CoreXT applications.
// Before including this file into your .rc, define the following
// macros for your application (don't forget the \0's):
// #define RC_VERSION_FILE_DESCRIPTION "Test DLL\0"
// #define RC_VERSION_INTERNAL_NAME "Test\0"
// #define RC_VERSION_ORIGINAL_FILE_NAME "Test.DLL\0"
//
// if you want to use a private version file and customize this, see
// file://samsndrop02/CoreXT-Latest/docs/corext/corext/version.htm
//
#include <winver.h>
#include <bldver.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION INET_VER
PRODUCTVERSION INET_VER
FILEFLAGSMASK 0x3fL
#ifdef DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
//
// Global definitions
//
#ifndef RC_VERSION_COMPANY_NAME
#define RC_VERSION_COMPANY_NAME "Microsoft Corporation\0"
#endif
#ifndef RC_VERSION_PRODUCT_NAME
#define RC_VERSION_PRODUCT_NAME "Microsoft\256 Web Platform Extensions\0"
#endif
#ifndef RC_VERSION_LEGAL_COPYRIGHT
#define RC_VERSION_LEGAL_COPYRIGHT "Copyright \251 2011 Microsoft Corporation\0"
#endif
#ifndef RC_VERSION_LEGAL_TRADEMARKS
#define RC_VERSION_LEGAL_TRADEMARKS "Microsoft\256 is a registered trademark of Microsoft Corporation.\0"
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", RC_VERSION_COMPANY_NAME
VALUE "FileDescription", RC_VERSION_FILE_DESCRIPTION
VALUE "InternalName", RC_VERSION_INTERNAL_NAME
VALUE "LegalCopyright", RC_VERSION_LEGAL_COPYRIGHT
VALUE "LegalTrademarks", RC_VERSION_LEGAL_TRADEMARKS
VALUE "OriginalFilename", RC_VERSION_ORIGINAL_FILE_NAME
VALUE "ProductName", RC_VERSION_PRODUCT_NAME
VALUE "FileVersion", INET_VERSION
VALUE "ProductVersion", INET_VERSION
VALUE "PrivateBuild", BUILD_PRIVATE
#ifdef OLEREGISTER
VALUE "OLESelfRegister","\0"
#endif
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END