Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions eng/pipelines/search-cache-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
trigger: none
# Trigger periodically instead.
schedules:
- cron: 0 * * * *
displayName: Run every hour
- cron: 0 0 * * *
displayName: Run once a day
branches:
include:
- main
Expand Down Expand Up @@ -137,10 +137,14 @@ extends:
-SkipNonVersionedFiles
displayName: Install latest daily .NET version
- bash: >
$(Build.SourcesDirectory)/.dotnet/dotnet run --no-build
--project $(Build.SourcesDirectory)/tools/Microsoft.TemplateSearch.TemplateDiscovery/Microsoft.TemplateSearch.TemplateDiscovery.csproj
-- --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
- bash: |
projectPath=$(Build.SourcesDirectory)/tools/Microsoft.TemplateSearch.TemplateDiscovery/Microsoft.TemplateSearch.TemplateDiscovery.csproj
Comment thread
MichaelSimons marked this conversation as resolved.
netCurrent=$($(Build.SourcesDirectory)/.dotnet/dotnet msbuild $projectPath -getProperty:NetCurrent)
echo "Resolved NetCurrent: $netCurrent"
$(Build.SourcesDirectory)/.dotnet/dotnet run --no-build \
Comment thread
MichaelSimons marked this conversation as resolved.
--framework $netCurrent \
--project $projectPath \
-- --basePath $(System.DefaultWorkingDirectory)/NugetDownloadDirectory --allowPreviewPacks -v --test --diff $(EnableDiffMode)
displayName: Run Cache Updater
- task: CopyFiles@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public string ShortName
public bool PreferDefaultName => _preferDefaultName;

[Obsolete("Use ParameterDefinitionSet instead.")]
IReadOnlyDictionary<string, ICacheTag> ITemplateInfo.Tags => throw new NotImplementedException();
IReadOnlyDictionary<string, ICacheTag> ITemplateInfo.Tags => null!;

[Obsolete("Use ParameterDefinitionSet instead.")]
IReadOnlyDictionary<string, ICacheParameter> ITemplateInfo.CacheParameters => throw new NotImplementedException();
IReadOnlyDictionary<string, ICacheParameter> ITemplateInfo.CacheParameters => null!;
Comment thread
MichaelSimons marked this conversation as resolved.

public IParameterDefinitionSet ParameterDefinitions
{
Expand Down
Loading