mirror of
https://github.com/greenshot/greenshot
synced 2025-07-07 05:22:09 -07:00
Another try to fix the build.
This commit is contained in:
parent
6831505ead
commit
5899d97ec2
3 changed files with 8 additions and 13 deletions
|
@ -104,7 +104,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Add MSBuild.Community.Tasks to use the TemplateFile Task-->
|
<!-- Add MSBuild.Community.Tasks to use the TemplateFile Task-->
|
||||||
<ItemGroup Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
<ItemGroup>
|
||||||
<PackageReference Include="MSBuildTasks" Version="1.5.0.235" GeneratePathProperty="true" DevelopmentDependency="true" />
|
<PackageReference Include="MSBuildTasks" Version="1.5.0.235" GeneratePathProperty="true" DevelopmentDependency="true" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<Import Project="$(PkgMSBuildTasks)\tools\MSBuild.Community.Tasks.Targets" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')"/>
|
<PropertyGroup Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
||||||
|
<MSBuildCommunityTasksPath>$(PkgMSBuildTasks)\tools\</MSBuildCommunityTasksPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Import Project="$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')"/>
|
||||||
|
|
||||||
<Target Name="ProcessTemplates" BeforeTargets="PrepareForBuild" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
<Target Name="ProcessTemplates" BeforeTargets="PrepareForBuild" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
||||||
<Message Text="Processing: $(ProjectDir)$(ProjectName).Credentials.template" Importance="high"/>
|
<Message Text="Processing: $(ProjectDir)$(ProjectName).Credentials.template" Importance="high"/>
|
||||||
|
|
|
@ -28,22 +28,13 @@ stages:
|
||||||
vmImage: 'Windows-latest'
|
vmImage: 'Windows-latest'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NuGetToolInstaller@1
|
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
|
||||||
displayName: NuGet restore
|
|
||||||
inputs:
|
|
||||||
command: 'restore'
|
|
||||||
restoreSolution: '$(solution)'
|
|
||||||
feedsToUse: config
|
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
displayName: Generate templates
|
displayName: Restore nuget packages and generate credential templates
|
||||||
inputs:
|
inputs:
|
||||||
solution: '$(solution)'
|
solution: '$(solution)'
|
||||||
platform: $(buildPlatform)
|
platform: $(buildPlatform)
|
||||||
configuration: $(buildConfiguration)
|
configuration: $(buildConfiguration)
|
||||||
msbuildArguments: '/t:PrepareForBuild'
|
msbuildArguments: '/restore /t:PrepareForBuild'
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
displayName: Build and package
|
displayName: Build and package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue