forked from NuGet/NuGet.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NuGetConsole.Host.PowerShell.csproj
208 lines (208 loc) · 11.1 KB
/
NuGetConsole.Host.PowerShell.csproj
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'NuGet.sln'))\build\common.legacy.props" />
<PropertyGroup>
<Shipping>true</Shipping>
<IncludeInVSIX>true</IncludeInVSIX>
<ResolveNuGetPackages>true</ResolveNuGetPackages>
<Description>Package Manager Console PowerShell host implementation.</Description>
<TargetFrameworkProfile />
<TargetFrameworkVersion>$(NETFXTargetFrameworkVersion)</TargetFrameworkVersion>
<ProjectGuid>{5A79EEF3-51C0-4A14-8D37-50EF38AD835D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NuGetConsole.Host.PowerShell</RootNamespace>
<AssemblyName>NuGetConsole.Host.PowerShell</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="PresentationCore" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="AsyncPowerShellHost.cs" />
<Compile Include="Command.cs" />
<Compile Include="CommandParser.cs" />
<Compile Include="Common\CommonResources.cs" />
<Compile Include="Common\GlobalSuppressions.cs" />
<Compile Include="Utils\InstalledPackageEnumerator.cs" />
<Compile Include="IRunspaceManager.cs" />
<Compile Include="NativeMethods.cs" />
<Compile Include="ProjectExtensions.cs" />
<Compile Include="Providers\CommandTokenizerProvider.cs" />
<Compile Include="Providers\PowerShellCommandExpansionProvider.cs" />
<Compile Include="Providers\PowerShellHostProvider.cs" />
<Compile Include="RegistryHelper.cs" />
<Compile Include="UnsupportedHost.cs" />
<Compile Include="PSTypeWrapper.cs" />
<Compile Include="RunspaceDispatcher.cs" />
<Compile Include="RunspaceManager.cs" />
<Compile Include="SyncPowerShellHost.cs" />
<Compile Include="Utils\CommandExpansion.cs" />
<Compile Include="CommandTokenizer.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Utils\ComplexCommand.cs" />
<Compile Include="Utils\MethodBinder.cs" />
<Compile Include="Utils\TypeWrapper.cs" />
<Compile Include="HostUtilities.cs" />
<Compile Include="NuGetPSHost.cs" />
<Compile Include="NuGetHostRawUserInterface.cs" />
<Compile Include="NuGetHostUserInterface.cs" />
<Compile Include="PowerShellHost.cs" />
<Compile Include="PowerShellHostService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Scripts\Add-WrapperMembers.ps1" />
<None Include="Scripts\NuGet.Types.ps1xml" />
<None Include="Scripts\NuGet.psd1" />
<None Include="Scripts\nuget.psm1" />
<None Include="Scripts\Profile.ps1" />
<None Include="Scripts\NuGet.Format.ps1xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Common\NuGet.Common.csproj">
<Project>{98bee375-a5a0-4fc2-9b7a-25db41c8045d}</Project>
<Name>NuGet.Common</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Configuration\NuGet.Configuration.csproj">
<Project>{e3ef26e1-80a7-4573-b3a4-1d4b0042616e}</Project>
<Name>NuGet.Configuration</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Frameworks\NuGet.Frameworks.csproj">
<Project>{9a9a9f26-597a-4fa6-a4f1-415063484d9c}</Project>
<Name>NuGet.Frameworks</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.PackageManagement\NuGet.PackageManagement.csproj">
<Project>{394aeb96-493c-4839-a5ac-8d93cd2fad40}</Project>
<Name>NuGet.PackageManagement</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Packaging\NuGet.Packaging.csproj">
<Project>{bd6bbc90-60be-4e7d-8458-91e9cda66abe}</Project>
<Name>NuGet.Packaging</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.ProjectModel\NuGet.ProjectModel.csproj">
<Project>{f013e43f-b6d5-4f59-acf0-eecec2c794f5}</Project>
<Name>NuGet.ProjectModel</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Protocol\NuGet.Protocol.csproj">
<Project>{020f4c88-3a5c-4b89-9868-089e867cc223}</Project>
<Name>NuGet.Protocol</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Resolver\NuGet.Resolver.csproj">
<Project>{51aa27a9-b8b4-458f-9211-e6889b441573}</Project>
<Name>NuGet.Resolver</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Versioning\NuGet.Versioning.csproj">
<Project>{24e62ab7-64e4-4975-9417-883559d1bc19}</Project>
<Name>NuGet.Versioning</Name>
</ProjectReference>
<ProjectReference Include="$(NuGetCoreSrcDirectory)NuGet.Commands\NuGet.Commands.csproj">
<Project>{567e8582-0e73-4a34-a7d3-ed9486415523}</Project>
<Name>NuGet.Commands</Name>
</ProjectReference>
<ProjectReference Include="..\NuGet.Console\NuGet.Console.csproj">
<Project>{50e33da2-af14-486d-81b8-bd8409744a38}</Project>
<Name>NuGet.Console</Name>
</ProjectReference>
<ProjectReference Include="..\NuGet.PackageManagement.PowerShellCmdlets\NuGet.PackageManagement.PowerShellCmdlets.csproj">
<Project>{26dc17ac-a390-4515-a2c0-07a0950036c5}</Project>
<Name>NuGet.PackageManagement.PowerShellCmdlets</Name>
</ProjectReference>
<ProjectReference Include="..\NuGet.VisualStudio.Common\NuGet.VisualStudio.Common.csproj">
<Project>{eea49a74-6efc-410e-9745-bad367ac151d}</Project>
<Name>NuGet.VisualStudio.Common</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Sdk" />
</ItemGroup>
<ItemGroup>
<None Include="Scripts\about_NuGet.Cmdlets.help.txt">
<CopyToOutputDirectory Condition="$(IsVsixBuild) != 'true'">PreserveNewest</CopyToOutputDirectory>
</None>
<!-- We copy this xml file to output directory so CI can pick it for localization from artifacts directory
However, we condition it to only be copied when building the project itself and not the vsix to prevent VSIX
from including this file -->
<None Include="Scripts\NuGet.PackageManagement.PowerShellCmdlets.dll-Help.xml">
<CopyToOutputDirectory Condition="$(IsVsixBuild) != 'true'">PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(BuildCommonDirectory)common.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<SignTargetsForRealSigning>$(SignTargetsForRealSigning);GetScriptsForSigning</SignTargetsForRealSigning>
<LocTargets>$(LocTargets);GetPowerShellCmdletsHelpFile</LocTargets>
<GetLocalizedFilesForVsixDependsOn>GetLocalizedPowerShellCmdletHelpFile</GetLocalizedFilesForVsixDependsOn>
</PropertyGroup>
<Target Name="AfterBuild">
<ItemGroup>
<PowerShellScripts Include="$(MSBuildProjectDirectory)\Scripts\*.ps*" Exclude="$(MSBuildProjectDirectory)\Scripts\NuGet.psd1" />
</ItemGroup>
<Copy SourceFiles="@(PowerShellScripts)" DestinationFolder="$(ArtifactsDirectory)Scripts" />
<Exec Command="powershell.exe -ExecutionPolicy Bypass "$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'NuGet.sln'))\build\UpdateNuGetModuleManifest.ps1" -NuGetPackageManagementPowerShellCmdletsFilePath "$(ArtifactsDirectory)NuGet.PackageManagement.PowerShellCmdlets\bin\$(Configuration)\NuGet.PackageManagement.PowerShellCmdlets.dll" -ManifestModuleSourceFilePath "$(MSBuildProjectDirectory)\Scripts\NuGet.psd1" -ManifestModuleDestinationFilePath "$(ArtifactsDirectory)Scripts\NuGet.psd1"" />
</Target>
<Target Name="GetScriptsForSigning" Returns="@(ScriptsToSign)">
<ItemGroup>
<ScriptsToSign Include="$(ArtifactsDirectory)Scripts\*.ps*">
<Authenticode>Microsoft400</Authenticode>
</ScriptsToSign>
</ItemGroup>
</Target>
<Target Name="GetPowerShellCmdletsHelpFile" Returns="@(PowerShellCmdletsHelpFiles)">
<ItemGroup>
<_PowerShellCmdletsHelpFiles Include="$(OutputPath)Scripts\NuGet.PackageManagement.PowerShellCmdlets.dll-Help.xml" />
<PowerShellCmdletsHelpFiles Include="@(_PowerShellCmdletsHelpFiles)">
<!--Required: translation file-->
<TranslationFile>$(LocalizationWorkDirectory)\{Lang}\15\%(_PowerShellCmdletsHelpFiles.Filename)%(_PowerShellCmdletsHelpFiles.Extension).lcl</TranslationFile>
<LciCommentFile>$(LocalizationWorkDirectory)\comments\15\%(_PowerShellCmdletsHelpFiles.Filename)%(_PowerShellCmdletsHelpFiles.Extension).lci</LciCommentFile>
<Parser>210</Parser>
<HasLceComments>false</HasLceComments>
</PowerShellCmdletsHelpFiles>
</ItemGroup>
</Target>
<!-- This is called at PackVsix time to get localized files -->
<Target Name="GetLocalizedPowerShellCmdletHelpFile">
<ItemGroup>
<!-- VS localized languages defined at MicroBuild.Plugins.Localization.targets, which is installed as a plugin in VSTS MicroBuild -->
<VSLanguage Include="CHT" Locale="zh-Hant" />
<VSLanguage Include="CHS" Locale="zh-Hans" />
<VSLanguage Include="CSY" Locale="cs" />
<VSLanguage Include="DEU" Locale="de" />
<VSLanguage Include="ESN" Locale="es" />
<VSLanguage Include="FRA" Locale="fr" />
<VSLanguage Include="ITA" Locale="it" />
<VSLanguage Include="JPN" Locale="ja" />
<VSLanguage Include="KOR" Locale="ko" />
<VSLanguage Include="PLK" Locale="pl" />
<VSLanguage Include="PTB" Locale="pt-BR" />
<VSLanguage Include="RUS" Locale="ru" />
<VSLanguage Include="TRK" Locale="tr" />
<_AllLocalizedXmlFiles Include="$(OutputPath)Scripts\**\NuGet.PackageManagement.PowerShellCmdlets.dll-Help.xml" />
<_XmlLocFiles Include="@(_AllLocalizedXmlFiles)">
<TargetPath>Modules\NuGet\$([MSBuild]::MakeRelative($(OutputPath)Scripts, %(_AllLocalizedXmlFiles.Identity)))</TargetPath>
</_XmlLocFiles>
<_TxtLocFiles Include="$(LocalizationRootDirectory)\%(VSLanguage.Identity)\15\about_NuGet.Cmdlets.help.txt">
<TargetPath>Modules\NuGet\%(VSLanguage.Locale)\about_NuGet.Cmdlets.help.txt</TargetPath>
</_TxtLocFiles>
<LocalizedFilesForVsix Include="@(_XmlLocFiles);@(_TxtLocFiles)" />
</ItemGroup>
</Target>
</Project>