forked from aspnet/Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Templates.Settings.targets
108 lines (97 loc) · 8.16 KB
/
Templates.Settings.targets
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)\Templates.BranchSettings.targets" />
<Import Project="$(MSBuildThisFileDirectory)\tools\Common.tasks" />
<PropertyGroup>
<!-- If you build the project from the command prompt, use the TemplatesVSVersion environment variable. -->
<TemplatesTargetVersion Condition=" '$(TemplatesTargetVersion)' == '' ">$(TemplatesVSVersion)</TemplatesTargetVersion>
<!-- If you open VS directly from the Windows shell, use the VS version as the target version. -->
<TemplatesTargetVersion Condition=" '$(TemplatesTargetVersion)' == '' ">$(VisualStudioVersion)</TemplatesTargetVersion>
<!-- Usually these are environment variables, but they aren't set when running VS -->
<TemplatesRoot Condition=" '$(TemplatesRoot)' == '' ">$(MSBuildThisFileDirectory)</TemplatesRoot>
<TemplatesBin Condition=" '$(TemplatesBin)' == '' ">$(TemplatesRoot)artifacts\build</TemplatesBin>
<TemplatesIntermediate Condition=" '$(TemplatesIntermediate)' == '' ">$(TemplatesRoot)intermediate</TemplatesIntermediate>
<TemplatesSource Condition=" '$(TemplatesSource)' == '' ">$(TemplatesRoot)src</TemplatesSource>
<TemplatesTest Condition=" '$(TemplatesTest)' == '' ">$(TemplatesRoot)test</TemplatesTest>
<TemplatesTools Condition=" '$(TemplatesTools)' == '' ">$(TemplatesRoot)tools</TemplatesTools>
<TemplatesSetup Condition=" '$(TemplatesSetup)' == '' ">$(TemplatesRoot)setup</TemplatesSetup>
<TemplatesTestResults Condition=" '$(TemplatesTestResults)' == '' ">$(TemplatesRoot)TestResults</TemplatesTestResults>
</PropertyGroup>
<PropertyGroup>
<IsOfficialBuild Condition="'$(IsOfficialBuild)' == ''">false</IsOfficialBuild>
<UseExactPackageVersions Condition="'$(TemplateBuildBranch)' == 'release'">$(IsOfficialBuild)</UseExactPackageVersions>
<UseExactPackageVersions Condition="'$(UseExactPackageVersions)' == ''">$(IsOfficialBuild)</UseExactPackageVersions>
<TemplateVersion Condition="'$(TemplateVersion)' == ''">$(BUILD_NUMBER)</TemplateVersion>
<TemplateVersion Condition="'$(TemplateVersion)' == ''">Local</TemplateVersion>
<PackageType Condition="'$(TemplateBuildBranch)' == 'release'">$(ReleasePackageType)</PackageType>
<PackageType Condition="'$(TemplateBuildBranch)' == 'dev'">$(DevPackageType)</PackageType>
<ApplicationInsightsPackageSource Condition="'$(ApplicationInsightsPackageSource)' == ''">https://www.myget.org/F/applicationinsights-sdk-labs/</ApplicationInsightsPackageSource>
<AzureAdPackageSource Condition="'$(AzureAdPackageSource)' == '' and '$(TemplateBuildBranch)' == 'release'">https://www.myget.org/F/azureadwebstackrelease/api/v3/index.json</AzureAdPackageSource>
<AzureAdPackageSource Condition="'$(AzureAdPackageSource)' == '' and '$(TemplateBuildBranch)' == 'dev'">https://www.myget.org/F/azureadwebstacknightly/api/v3/index.json</AzureAdPackageSource>
<RoslynPackageSource Condition="'$(RoslynPackageSource)' == ''">https://www.myget.org/F/roslyn-nightly</RoslynPackageSource>
<ForceNpmInstall Condition="'$(ForceNpmInstall)' == ''">false</ForceNpmInstall>
</PropertyGroup>
<PropertyGroup>
<TemplatePackages>$(MSBuildThisFileDirectory)\TemplatePackages.txt</TemplatePackages>
<DependencyListFilename>PackageList.generated.txt</DependencyListFilename>
<MergedDependencyListPath>$(TemplatesBin)\PackageList.generated.txt</MergedDependencyListPath>
<CopyPackagesListPath>$(TemplatesBin)\CopyPackageList.generated.txt</CopyPackagesListPath>
<CoherenceDropFile>$(TemplatesBin)\Packages.source.txt</CoherenceDropFile>
<WarnOnMissingPackage Condition="'$(WarnOnMissingPackage)' == ''">false</WarnOnMissingPackage>
<FailOnLowerVersion Condition="'$(FailOnLowerVersion)' == ''">true</FailOnLowerVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TemplatesTargetVersion)' == '14.0' ">
<!-- Visual Studio 14 properties -->
<TemplatesTargetVersionPath>\dev14</TemplatesTargetVersionPath>
<VersionedReferencePath>Dev14</VersionedReferencePath>
<TargetVsVersion>VS14</TargetVsVersion>
</PropertyGroup>
<PropertyGroup>
<ApplicationInsightsPackageVersion>1.0.0-rc1</ApplicationInsightsPackageVersion>
<DefaultNugetFeedSource Condition="'$(NugetFeedSource)' == ''">api.nuget.org=https://api.nuget.org/v3/index.json</DefaultNugetFeedSource>
<NugetFeedSource Condition="'$(NugetFeedSource)' == '' and '$(TemplateBuildBranch)' == 'release' and '$(ReleaseNugetFeedSource)' != ''">$(ReleaseNugetFeedSource)|$(DefaultNugetFeedSource)</NugetFeedSource>
<NugetFeedSource Condition="'$(NugetFeedSource)' == '' and '$(TemplateBuildBranch)' == 'dev' and '$(DevNugetFeedSource)' != ''">$(DevNugetFeedSource)|$(DefaultNugetFeedSource)</NugetFeedSource>
</PropertyGroup>
<PropertyGroup>
<!-- Output -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputPath>$(TemplatesBin)</OutputPath>
<IntermediateOutputPath>$(TemplatesIntermediate)</IntermediateOutputPath>
<BaseIntermediateOutputPath>$(TemplatesIntermediate)</BaseIntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<TestTemplates Include="$(TemplatesBin)\test\ClassLibrary"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.IndividualAuth"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.Single"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.Multiple"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.WindowsAuth"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.AI"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.AI.IndividualAuth"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.AI.Single"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.AI.Multiple"/>
<TestTemplates Include="$(TemplatesBin)\test\StarterWeb.AI.WindowsAuth"/>
<TestTemplates Include="$(TemplatesBin)\test\ConsoleApp"/>
<TestTemplates Include="$(TemplatesBin)\test\EmptyWeb"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI.Single"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI.WindowsAuth"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI.AI"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI.AI.Single"/>
<TestTemplates Include="$(TemplatesBin)\test\WebAPI.AI.WindowsAuth"/>
</ItemGroup>
<Target Name="SetupPackageSource">
<GetPackageSource Condition="'$(PackageSource)' == '' and '$(SetupDrop)' != ''" SetupDrop="$(SetupDrop)" PackageType="$(PackageType)">
<Output PropertyName="PackageSource" TaskParameter="PackageSource"/>
</GetPackageSource>
<PropertyGroup>
<PackageSource Condition="'$(PackageSource)' == '' and '$(TemplateBuildBranch)' == 'dev'">https://www.myget.org/F/aspnetvnext/api/v3/index.json</PackageSource>
<PackageSource Condition="'$(PackageSource)' == '' and '$(TemplateBuildBranch)' == 'release'">https://www.myget.org/F/aspnetrelease/api/v3/index.json</PackageSource>
<PackageSourceForRestore>$(PackageSource)</PackageSourceForRestore>
<PackageSourceForRestore Condition="'$(ApplicationInsightsPackageSource)' != ''">$(PackageSourceForRestore) -f $(ApplicationInsightsPackageSource)</PackageSourceForRestore>
<PackageSourceForRestore Condition="'$(AzureAdPackageSource)' != ''">$(PackageSourceForRestore) -f $(AzureAdPackageSource)</PackageSourceForRestore>
<PackageSourceForRestore Condition="'$(RoslynPackageSource)' != ''">$(PackageSourceForRestore) -f $(RoslynPackageSource)</PackageSourceForRestore>
<PackageSourceForRestore>$(PackageSourceForRestore) -f https://api.nuget.org/v3/index.json</PackageSourceForRestore>
</PropertyGroup>
</Target>
</Project>