1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project DefaultTargets =" Build" ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
-
3
+ <Import Project =" ..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.props" Condition =" Exists('..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.props')" />
4
+ <Import Project =" ..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.props" Condition =" Exists('..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.props')" />
5
+ <Import Project =" ..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.props" Condition =" Exists('..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.props')" />
4
6
<Import Project =" ..\..\..\common.openconsole.props" Condition =" '$(OpenConsoleDir)'==''" />
5
-
6
7
<PropertyGroup >
7
8
<!-- cppwinrt.build.pre.props depends on these settings: -->
8
9
<!-- build a dll, not exe (Application) -->
21
22
<ItemGroup >
22
23
<!-- DON'T PUT XAML FILES HERE! Put them in TerminalAppLib.vcxproj -->
23
24
</ItemGroup >
24
-
25
25
<!-- ========================= Headers ======================== -->
26
26
<ItemGroup >
27
27
<!-- Only put headers for winrt types in here. Don't put other header files
60
60
<ProjectReference Include =" $(OpenConsoleDir)src\types\lib\types.vcxproj" >
61
61
<Project >{18D09A24-8240-42D6-8CB6-236EEE820263}</Project >
62
62
</ProjectReference >
63
-
64
63
<!-- The midl compiler however, _will_ aggregate our winmd dependencies
65
64
somehow. So make sure to only include top-level dependencies here (don't
66
65
include Settings and Connection, since Control will include them for us) -->
67
66
<ProjectReference Include =" $(OpenConsoleDir)src\cascadia\TerminalSettings\TerminalSettings.vcxproj" />
68
67
<ProjectReference Include =" $(OpenConsoleDir)src\cascadia\TerminalConnection\TerminalConnection.vcxproj" />
69
68
<ProjectReference Include =" $(OpenConsoleDir)src\cascadia\TerminalControl\TerminalControl.vcxproj" />
70
-
71
69
<!-- Reference TerminalAppLib here, so we can use it's TerminalApp.winmd as
72
70
our TerminalApp.winmd. This didn't work correctly in VS2017, you'd need to
73
71
manually reference the lib -->
74
-
75
- <ProjectReference Include =" $(OpenConsoleDir)src\cascadia\TerminalApp\lib\TerminalAppLib.vcxproj" >
72
+ <ProjectReference Include =" $(OpenConsoleDir)src\cascadia\TerminalApp\lib\TerminalAppLib.vcxproj" >
76
73
<Private >true</Private >
77
74
<CopyLocalSatelliteAssemblies >true</CopyLocalSatelliteAssemblies >
78
75
</ProjectReference >
79
-
80
76
</ItemGroup >
81
-
82
77
<PropertyGroup >
83
78
<!-- A small helper for paths to the compiled cppwinrt projects -->
84
79
<_BinRoot Condition =" '$(Platform)' != 'Win32'" >$(OpenConsoleDir)$(Platform)\$(Configuration)\</_BinRoot >
85
80
<_BinRoot Condition =" '$(Platform)' == 'Win32'" >$(OpenConsoleDir)$(Configuration)\</_BinRoot >
86
81
</PropertyGroup >
87
-
88
82
<PropertyGroup >
89
83
<!--
90
84
DON'T REDIRECT OUR OUTPUT.
99
93
</ClCompile >
100
94
<Link >
101
95
<AdditionalDependencies >User32.lib;WindowsApp.lib;shell32.lib;%(AdditionalDependencies)</AdditionalDependencies >
102
-
103
96
<!-- TerminalAppLib contains a DllMain that we need to force the use of. -->
104
97
<AdditionalOptions Condition =" '$(Platform)'=='Win32'" >/INCLUDE:_DllMain@12</AdditionalOptions >
105
98
<AdditionalOptions Condition =" '$(Platform)'!='Win32'" >/INCLUDE:DllMain</AdditionalOptions >
106
99
</Link >
107
100
</ItemDefinitionGroup >
108
101
<Import Project =" $(OpenConsoleDir)src\common.build.post.props" />
109
-
110
102
<Import Project =" $(OpenConsoleDir)src\cppwinrt.build.post.props" />
111
-
112
103
<!-- Import this set of targets that fixes a VS bug that manifests when using
113
104
the TerminalAppLib project -->
114
105
<Import Project =" FixVisualStudioBug.targets" />
115
-
116
- </Project >
106
+ <Target Name =" EnsureNuGetPackageBuildImports" BeforeTargets =" PrepareForBuild" >
107
+ <PropertyGroup >
108
+ <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 >
109
+ </PropertyGroup >
110
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.props')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.props'))" />
111
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.targets')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.targets'))" />
112
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.props')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.props'))" />
113
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets'))" />
114
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.props')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.props'))" />
115
+ <Error Condition =" !Exists('..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.targets')" Text =" $([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.targets'))" />
116
+ </Target >
117
+ <Import Project =" ..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.targets" Condition =" Exists('..\..\..\packages\Microsoft.Build.Tasks.Git.1.0.0-beta2-19367-01\build\Microsoft.Build.Tasks.Git.targets')" />
118
+ <Import Project =" ..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets" Condition =" Exists('..\..\..\packages\Microsoft.SourceLink.Common.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.Common.targets')" />
119
+ <Import Project =" ..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.targets" Condition =" Exists('..\..\..\packages\Microsoft.SourceLink.GitHub.1.0.0-beta2-19367-01\build\Microsoft.SourceLink.GitHub.targets')" />
120
+ </Project >
0 commit comments