-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 886d467.
- Loading branch information
Showing
31 changed files
with
354 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets"> | ||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<NuGetValidatorToolPath>$(PkgNuGetValidator)\tools\NuGetValidator.exe</NuGetValidatorToolPath> | ||
<RepoRoot Condition="'$(RepoRoot)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)', '.git\index'))</RepoRoot> | ||
<LocalizationRepository>$(RepoRoot)\submodules\NuGet.Build.Localization\localize\comments\15</LocalizationRepository> | ||
<TempDirectory Condition="'$(TempDirectory)' == ''">$(Temp)</TempDirectory> | ||
<LogsBasePath Condition="'$(LogsBasePath)' == ''">$(MSBuildThisFileDirectory)BuildValidatorLogs</LogsBasePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="NuGetValidator" /> | ||
</ItemGroup> | ||
|
||
<Target Name="ValidateConfiguration"> | ||
<Error Text="NuGet validator tool not found at '$(NuGetValidatorToolPath)'." Condition="!Exists('$(NuGetValidatorToolPath)')" /> | ||
<Error Text="Unable to determine the repository root, specify the path with the command-line argument /property:RepoRoot=<path>" Condition="'$(RepoRoot)' == ''" /> | ||
<Error Text="The localization repository was not found at '$(LocalizationRepository)'" Condition="!Exists('$(LocalizationRepository)')" /> | ||
</Target> | ||
|
||
<Target Name="ValidateVsix" | ||
DependsOnTargets="ValidateConfiguration" | ||
Condition="'$(BuildRTM)' != 'true'"> | ||
<PropertyGroup> | ||
<VsixLocation>$(RepoRoot)\artifacts\VS15\NuGet.Tools.vsix</VsixLocation> | ||
<VsixExtractLocation>$(TempDirectory)\extractedVsix</VsixExtractLocation> | ||
<LogsPath>$(LogsBasePath)\vsix</LogsPath> | ||
</PropertyGroup> | ||
|
||
<Delete Files="$(LogsPath)\**" /> | ||
|
||
<Message Text="Validating NuGet.Tools.Vsix localization..." Importance="High" /> | ||
|
||
<Exec Command=""$(NuGetValidatorToolPath)" localization --vsix --vsix-path "$(VsixLocation)" --vsix-extract-path "$(VsixExtractLocation)" --output-path "$(LogsPath)" --comments-path "$(LocalizationRepository)"" IgnoreStandardErrorWarningFormat="true" LogStandardErrorAsError="true" /> | ||
|
||
<OnError ExecuteTargets="IncludeValidatorLogsInBinLog"/> | ||
</Target> | ||
|
||
<Target Name="ValidateArtifacts" | ||
DependsOnTargets="ValidateConfiguration" | ||
Condition="'$(BuildRTM)' != 'true'"> | ||
<PropertyGroup> | ||
<ArtifactsLocation>$(RepoRoot)\artifacts</ArtifactsLocation> | ||
<VsixExtractLocation>$(TempDirectory)\extractedVsix</VsixExtractLocation> | ||
<LogsPath>$(LogsBasePath)\artifacts</LogsPath> | ||
</PropertyGroup> | ||
|
||
<Delete Files="$(LogsPath)\**" /> | ||
|
||
<Message Text="Validating NuGet.Tools.Vsix localization..." Importance="High" /> | ||
|
||
<Exec Command=""$(NuGetValidatorToolPath)" localization --artifacts-path "$(ArtifactsLocation)" --output-path "$(LogsPath)" --comments-path "$(LocalizationRepository)" --filter-paths-containing net45" IgnoreStandardErrorWarningFormat="true" LogStandardErrorAsError="true" /> | ||
|
||
<OnError ExecuteTargets="IncludeValidatorLogsInBinLog"/> | ||
</Target> | ||
|
||
<Target Name="IncludeValidatorLogsInBinLog" | ||
Condition="'$(LogsPath)' != ''"> | ||
<ItemGroup> | ||
<EmbedInBinlog Include="$(LogsPath)\**" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.