Skip to content

Commit 1f080e9

Browse files
committed
Added NuGet restore step to Semrush build pipeline
1 parent a16f665 commit 1f080e9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

azure-pipeline - SEO.SemrushTools.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ steps:
1414
- task: NuGetToolInstaller@1
1515
displayName: 'Install NuGet'
1616

17+
- task: DotNetCoreCLI@2
18+
displayName: 'NuGet Restore'
19+
inputs:
20+
command: 'restore'
21+
feedsToUse: 'select'
22+
projects: '$(project)'
23+
includeNuGetOrg: true
24+
1725
- task: VSBuild@1
1826
displayName: 'Build Project'
1927
inputs:

src/Umbraco.Cms.Integrations.SEO.Semrush/Umbraco.Cms.Integrations.SEO.Semrush.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@
2626
</Content>
2727
</ItemGroup>
2828

29+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
30+
<Exec Command="mkdir &quot;$(SolutionDir)Umbraco.Cms.Integrations.Testsite.V8\App_Plugins&quot;&#xD;&#xA;mkdir &quot;$(SolutionDir)Umbraco.Cms.Integrations.Testsite.V8\App_Plugins\UmbracoCms.Integrations&quot;&#xD;&#xA;mkdir &quot;$(SolutionDir)Umbraco.Cms.Integrations.Testsite.V8\App_Plugins\UmbracoCms.Integrations\SEO&quot;&#xD;&#xA;mkdir &quot;$(SolutionDir)Umbraco.Cms.Integrations.Testsite.V8\App_Plugins\UmbracoCms.Integrations\SEO\Semrush&quot;&#xD;&#xA;&#xD;&#xA;copy /Y &quot;$(ProjectDir)App_Plugins\UmbracoCms.Integrations\SEO\Semrush&quot; &quot;$(SolutionDir)Umbraco.Cms.Integrations.Testsite.V8\App_Plugins\UmbracoCms.Integrations\SEO\Semrush&quot;" />
31+
</Target>
32+
2933
</Project>

0 commit comments

Comments
 (0)