Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added source link #93

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c7a990e
Added source link
pictos Jul 25, 2022
e85176a
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Aug 11, 2022
1b663f5
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Aug 31, 2022
b2b79f8
echo debugging information
TheCodeTraveler Aug 31, 2022
79491f5
Update azure-pipelines.yml
TheCodeTraveler Aug 31, 2022
a506cc6
Increase to .NET 7
TheCodeTraveler Aug 31, 2022
c728a3b
Update azure-pipelines.yml
TheCodeTraveler Aug 31, 2022
0654ef8
Update CommunityToolkit.Maui.Markup.csproj
TheCodeTraveler Aug 31, 2022
2a01168
Update azure-pipelines.yml
TheCodeTraveler Aug 31, 2022
235015b
Update azure-pipelines.yml
TheCodeTraveler Aug 31, 2022
bc8365c
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
4ee1c4a
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
2ac5ad9
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
da269a4
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
57bc4c1
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
6c3d4cc
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
e6070b6
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
c5bf96b
Update azure-pipelines.yml
TheCodeTraveler Sep 1, 2022
55a3261
Add Maui Dependencies Workaround
TheCodeTraveler Sep 1, 2022
569aa29
Revert "Add Maui Dependencies Workaround"
TheCodeTraveler Sep 1, 2022
888d8b8
Revert changes
TheCodeTraveler Sep 1, 2022
a89db2a
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Sep 6, 2022
5357b09
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Sep 17, 2022
468145b
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Oct 3, 2022
35862de
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Nov 2, 2022
d58e6b3
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Nov 14, 2022
1f9139f
Merge branch 'main' into pj/add-source-link
TheCodeTraveler Jan 18, 2023
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
59 changes: 42 additions & 17 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ variables:
PreviewNumber: $[counter(variables['CurrentSemanticVersionBase'], 1001)]
CurrentSemanticVersion: '$(CurrentSemanticVersionBase)-preview$(PreviewNumber)'
NugetPackageVersion: '$(CurrentSemanticVersion)'
NET_VERSION: '6.0.x'
NET6_VERSION: '6.0.x'
NET7_VERSION: '7.0.x'
RunPoliCheck: false
PathToLibrarySolution: 'src/CommunityToolkit.Maui.Markup.sln'
PathToSamplesSolution: 'samples/CommunityToolkit.Maui.Markup.Sample.sln'
Expand Down Expand Up @@ -47,10 +48,10 @@ jobs:
vmImage: windows-latest
steps:
- task: UseDotNet@2
displayName: 'Install .NET SDK'
displayName: 'Install .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '$(NET_VERSION)'
version: '$(NET6_VERSION)'

- task: CmdLine@2
displayName: 'Install .NET MAUI Workload'
Expand Down Expand Up @@ -94,6 +95,7 @@ jobs:
testResultsFormat: VSTest
testResultsFiles: '**/*.trx'
searchFolder: $(Agent.TempDirectory)

- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage Results'
inputs:
Expand All @@ -109,13 +111,22 @@ jobs:
configuration: 'Release'
msbuildArgs: '/restore'

# .NET 7 is required to create the NuGet Package for CommunityToolkit.Maui.Markup
# Work-around to avoid 'error NU5017: Cannot create a package that has no dependencies nor content'
- task: UseDotNet@2
displayName: 'Install .NET 7 SDK'
inputs:
packageType: 'sdk'
version: '$(NET7_VERSION)'
includePreviewVersions: true

# pack
- task: VSBuild@1
displayName: 'Build and Pack CommunityToolkit.Maui.Markup'
- task: CmdLine@2
TheCodeTraveler marked this conversation as resolved.
Show resolved Hide resolved
displayName: 'Pack CommunityToolkit.Maui.Markup'
inputs:
solution: '$(PathToCommunityToolkitCsproj)'
configuration: 'Release'
msbuildArgs: '/restore -t:pack -p:PackageVersion=$(NugetPackageVersion) -p:Version=$(NugetPackageVersion) -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg'
script: |
dotnet workload install maui-tizen
TheCodeTraveler marked this conversation as resolved.
Show resolved Hide resolved
dotnet pack -c Release $(PathToCommunityToolkitCsproj) -p:PackageVersion=$(NugetPackageVersion) --output $(Build.ArtifactStagingDirectory)/nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

# check vulnerabilities
- powershell: |
Expand Down Expand Up @@ -164,10 +175,10 @@ jobs:
vmImage: windows-latest
steps:
- task: UseDotNet@2
displayName: 'Install Latest .NET SDK'
displayName: 'Install .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '$(NET_VERSION)'
version: '$(NET6_VERSION)'

- powershell: dotnet workload install maui
displayName: Install Latest .NET MAUI Workload
Expand Down Expand Up @@ -205,15 +216,18 @@ jobs:
script: echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(XcodeVersion).app;sudo xcode-select --switch /Applications/Xcode_$(XcodeVersion).app/Contents/Developer

- task: UseDotNet@2
displayName: 'Install .NET SDK'
displayName: 'Install .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '$(NET_VERSION)'
- task: CmdLine@2
displayName: 'Install .NET MAUI workload'
version: '$(NET6_VERSION)'

- task: CmdLine@2
displayName: 'Install .NET MAUI Workload'
inputs:
script: 'dotnet workload install maui'
script : |
dotnet --info
dotnet workload install maui

- task: CmdLine@2
displayName: 'Restore NuGet Packages'
inputs:
Expand All @@ -234,7 +248,18 @@ jobs:
inputs:
script: dotnet test $(PathToCommunityToolkitUnitTestCsproj) -c Release

# .NET 7 is required to create the NuGet Package for CommunityToolkit.Maui.Markup
# Work-around to avoid 'error NU5017: Cannot create a package that has no dependencies nor content'
- task: UseDotNet@2
displayName: 'Install .NET 7 SDK'
inputs:
packageType: 'sdk'
version: '$(NET7_VERSION)'
includePreviewVersions: true

- task: CmdLine@2
displayName: 'Pack CommunityToolkit NuGets'
displayName: 'Pack CommunityToolkit.Maui.Markup'
inputs:
script: 'dotnet pack -c Release $(PathToCommunityToolkitCsproj) -p:PackageVersion=$(NugetPackageVersion) --output $(Build.ArtifactStagingDirectory)/nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg'
script: |
dotnet workload install maui-tizen
dotnet pack -c Release $(PathToCommunityToolkitCsproj) -p:PackageVersion=$(NugetPackageVersion) --output $(Build.ArtifactStagingDirectory)/nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@
<None Include="../../build/nuget.png" Pack="true" PackagePath="" />
<None Include="ReadMe.txt" pack="true" PackagePath="." />
</ItemGroup>

<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="all" />
</ItemGroup>
</Project>