Skip to content

Commit

Permalink
chore: Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Oct 11, 2023
1 parent ee6b23b commit 6b62def
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion build/templates/package-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ steps:
cd ${{ parameters.projectName }}
& dotnet build ${{ parameters.projectName }}.sln "/bl:$(build.artifactstagingdirectory)\${{ parameters.projectName }}.binlog"
& dotnet build ${{ parameters.projectName }}.sln -p:PublishTrimmed=false "/bl:$(build.artifactstagingdirectory)\${{ parameters.projectName }}.binlog"
if ($LASTEXITCODE -ne 0)
{
throw "Exit code must be zero."
}
displayName: Build template app ${{ parameters.projectName }}

- powershell: |
Remove-Item -Recurse -Force ${{ parameters.projectName }}
displayName: Delete project ${{ parameters.projectName }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!-- Note: This may still be an issue with PublishTrimmed support https://github.com/microsoft/CsWinRT/issues/373 -->
<PublishTrimmed>True</PublishTrimmed>
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">True</PublishTrimmed>
<TrimMode>partial</TrimMode>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!-- Note: This may still be an issue with PublishTrimmed support https://github.com/microsoft/CsWinRT/issues/373 -->
<PublishTrimmed>True</PublishTrimmed>
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">True</PublishTrimmed>
<TrimMode>partial</TrimMode>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!-- Note: This may still be an issue with PublishTrimmed support https://github.com/microsoft/CsWinRT/issues/373 -->
<PublishTrimmed>True</PublishTrimmed>
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">True</PublishTrimmed>
<TrimMode>partial</TrimMode>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
</PropertyGroup>
Expand Down

0 comments on commit 6b62def

Please sign in to comment.