mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Forcing generation of the templates before the build runs.
This commit is contained in:
parent
43f338b3dd
commit
5a763523b9
2 changed files with 15 additions and 8 deletions
|
@ -102,15 +102,15 @@
|
|||
</Tokens>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="Exists('$(SolutionDir)$(ProjectName).Credentials.template')">
|
||||
<ItemGroup Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
||||
<PackageReference Include="MSBuildTasks" Version="1.5.0.235" GeneratePathProperty="true"/>
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="$(PkgTools_MSBuildTasks)MSBuild.Community.Tasks.Targets" Condition="Exists('$(SolutionDir)$(ProjectName).Credentials.template')"/>
|
||||
<Import Project="$(PkgTools_MSBuildTasks)MSBuild.Community.Tasks.Targets" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')"/>
|
||||
|
||||
<Target Name="Process templates" BeforeTargets="PrepareForBuild" Condition="Exists('$(SolutionDir)$(ProjectName).Credentials.template')">
|
||||
<Message Text="Processing: $(SolutionDir)$(ProjectName).Credentials.template" />
|
||||
<TemplateFile Template="$(SolutionDir)$(ProjectName).Credentials.template" OutputFilename="$(SolutionDir)$(ProjectName).Credentials.cs" Tokens="@(Tokens)" />
|
||||
<Target Name="ProcessTemplates" BeforeTargets="PrepareForBuild" Condition="Exists('$(ProjectDir)$(ProjectName).Credentials.template')">
|
||||
<Message Text="Processing: $(ProjectDir)$(ProjectName).Credentials.template" />
|
||||
<TemplateFile Template="$(ProjectDir)$(ProjectName).Credentials.template" OutputFilename="$(ProjectDir)$(ProjectName).Credentials.cs" Tokens="@(Tokens)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PostBuild" BeforeTargets="PostBuildEvent" Condition="$(MSBuildProjectName.Contains('Plugin')) And !$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Demo'))">
|
||||
|
|
|
@ -34,13 +34,20 @@ stages:
|
|||
restoreSolution: '$(solution)'
|
||||
feedsToUse: config
|
||||
|
||||
- task: VSBuild@1
|
||||
- task: MSBuild@1
|
||||
displayName: Generate templates
|
||||
inputs:
|
||||
solution: '$(solution)'
|
||||
platform: $(buildPlatform)
|
||||
configuration: $(buildConfiguration)
|
||||
msbuildArgs: '/t:PrepareForBuild
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build and package
|
||||
inputs:
|
||||
solution: '$(solution)'
|
||||
vsVersion: 'latest'
|
||||
platform: $(buildPlatform)
|
||||
configuration: $(buildConfiguration)
|
||||
msbuildArgs: '/t:PrepareForBuild /t:Rebuild'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue