forked from NuGet/NuGet.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNuGet.PackageManagement.PowerShellCmdlets.csproj
More file actions
119 lines (108 loc) · 6.64 KB
/
NuGet.PackageManagement.PowerShellCmdlets.csproj
File metadata and controls
119 lines (108 loc) · 6.64 KB
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Shipping>true</Shipping>
<IncludeInVSIX>true</IncludeInVSIX>
<Description>Package Manager Console PowerShell host implementation and NuGet's PowerShell cmdlets for the Visual Studio client.</Description>
<TargetFramework>$(NETFXTargetFramework)</TargetFramework>
<GetLocalizedFilesForVsixDependsOn>GetLocalizedPowerShellCmdletHelpFile</GetLocalizedFilesForVsixDependsOn>
<AdditionalSignTargetsForRealSigning>GetScriptsForSigning</AdditionalSignTargetsForRealSigning>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\NuGet.Core\NuGet.Common\NuGet.Common.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Frameworks\NuGet.Frameworks.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.PackageManagement\NuGet.PackageManagement.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Packaging\NuGet.Packaging.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.ProjectModel\NuGet.ProjectModel.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Resolver\NuGet.Resolver.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Versioning\NuGet.Versioning.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.Commands\NuGet.Commands.csproj" />
<ProjectReference Include="..\..\NuGet.Core\NuGet.LibraryModel\NuGet.LibraryModel.csproj" />
<ProjectReference Include="..\NuGet.Console\NuGet.Console.csproj" />
<ProjectReference Include="..\NuGet.VisualStudio.Common\NuGet.VisualStudio.Common.csproj" />
<ProjectReference Include="..\NuGet.VisualStudio\NuGet.VisualStudio.csproj" />
<ProjectReference Include="..\NuGet.PackageManagement.VisualStudio\NuGet.PackageManagement.VisualStudio.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Sdk" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs">
<AutoGen>true</AutoGen>
<DesignTime>true</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</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 the CI can pick it for localization from the artifacts directory.
However, we condition it to only be copied when building the project itself and not the vsix to prevent the VSIX
from including this file -->
<None Include="Scripts\NuGet.PackageManagement.PowerShellCmdlets.dll-Help.xml">
<CopyToOutputDirectory Condition="$(IsVsixBuild) != 'true'">PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PowerShellCmdletsAfterBuild" AfterTargets="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 "$(OutDir)NuGet.PackageManagement.PowerShellCmdlets.dll" -ManifestModuleSourceFilePath "$(MSBuildProjectDirectory)\Scripts\NuGet.psd1" -ManifestModuleDestinationFilePath "$(ArtifactsDirectory)Scripts\NuGet.psd1"" />
</Target>
<Target Name="GetScriptsForSigning" Returns="@(ScriptsToSign)" BeforeTargets="GetBuildOutputWithSigningMetadata">
<ItemGroup>
<ScriptsToSign Include="$(ArtifactsDirectory)Scripts\*.ps*">
<Authenticode>Microsoft400</Authenticode>
</ScriptsToSign>
</ItemGroup>
</Target>
<Target Name="GetPowerShellCmdletsHelpFile" Returns="@(PowerShellCmdletsHelpFiles)" BeforeTargets="GetBuildOutputWithLocMetadata">
<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>