This commit is contained in:
Gerald Versluis 2021-10-12 09:08:42 +02:00
Родитель f56cf11038
Коммит 8be3281d48
6 изменённых файлов: 70 добавлений и 59 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -250,3 +250,4 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
.DS_Store

Просмотреть файл

@ -1,9 +1,9 @@
<Project>
<!--Package versions-->
<PropertyGroup>
<MicrosoftNETSdkPackageVersion>6.0.100-preview.2.21155.3</MicrosoftNETSdkPackageVersion>
<MicrosoftAndroidSdkPackageVersion>11.0.200-ci.main.148</MicrosoftAndroidSdkPackageVersion>
<MicrosoftMacCatalystSdkPackageVersion>14.3.100-ci.main.337</MicrosoftMacCatalystSdkPackageVersion>
<MicrosoftiOSSdkPackageVersion>14.4.100-ci.main.1192</MicrosoftiOSSdkPackageVersion>
<MicrosoftNETSdkPackageVersion>6.0.100-rc.1.1608</MicrosoftNETSdkPackageVersion>
<MicrosoftAndroidSdkPackageVersion>31.0.100-rc.1.12</MicrosoftAndroidSdkPackageVersion>
<MicrosoftMacCatalystSdkPackageVersion>15.0.100-rc.1.1534</MicrosoftMacCatalystSdkPackageVersion>
<MicrosoftiOSSdkPackageVersion>15.0.100-rc.1.1534</MicrosoftiOSSdkPackageVersion>
</PropertyGroup>
</Project>

Просмотреть файл

@ -86,55 +86,68 @@ stages:
variables:
buildConfiguration : '${{ BuildCondition }}'
steps:
- checkout: self
clean: true
submodules: true
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(GraphicsControlsSln)'
feedsToUse: 'config'
nugetConfigPath: 'NuGet.config'
- task: UseDotNet@2
displayName: 'Install .NET SDK'
inputs:
version: '$(DOTNET_VERSION)'
includePreviewVersions: true
- task: CmdLine@2
displayName: 'Install .NET MAUI workload'
inputs:
script: 'dotnet workload install maui'
- task: JavaToolInstaller@0
displayName: 'Install Java SDK 11.0'
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- checkout: self
clean: true
submodules: true
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet Packages'
inputs:
command: 'restore'
projects: $(GraphicsControlsSln)
feedsToUse: 'config'
nugetConfigPath: 'NuGet.config'
- task: DotNetCoreCLI@2
displayName: 'Build Library Project'
inputs:
command: 'build'
projects: '$(GraphicsControlsLibraryProject)'
arguments: '-c $(BuildConfiguration) -bl:$(build.artifactstagingdirectory)/${{BuildCondition}}/win_build_${{ BuildCondition }}.binlog'
- task: DotNetCoreCLI@2
displayName: 'Pack Library Project'
inputs:
command: 'pack'
packagesToPack: '$(GraphicsControlsLibraryProject)'
arguments: '--no-build -c $(BuildConfiguration) /p:PackageOutputPath="$(build.artifactstagingdirectory)/nuget/${{ BuildCondition }}'
- task: CopyFiles@2
displayName: 'Copy Files dlls'
inputs:
Contents: src/**/bin/**/*.dll
TargetFolder: '$(build.artifactstagingdirectory)/${{ BuildCondition }}'
- task: MSBuild@1
displayName: 'Build sln'
inputs:
solution: $(GraphicsControlsSln)
configuration: $(BuildConfiguration)
msbuildArguments: -bl:$(build.artifactstagingdirectory)/${{BuildCondition}}/win_build_${{ BuildCondition }}.binlog
- task: MSBuild@1
displayName: 'Pack sln'
inputs:
solution: $(GraphicsControlsLibraryProject)
configuration: $(BuildConfiguration)
msbuildArguments: -t:pack /p:PackageOutputPath="$(build.artifactstagingdirectory)/nuget/${{ BuildCondition }}"
- task: CopyFiles@2
displayName: 'Copy nupkg'
inputs:
Contents: artifacts/*.nupkg
flattenFolders: true
TargetFolder: '$(build.artifactstagingdirectory)/nuget/${{ BuildCondition }}/'
- task: CopyFiles@2
displayName: 'Copy SignList.xml Files'
inputs:
Contents: eng/automation/SignList.xml
TargetFolder: '$(Build.ArtifactStagingDirectory)/nuget/${{ BuildCondition }}'
flattenFolders: true
- task: CopyFiles@2
displayName: 'Copy Files dlls'
inputs:
Contents: src/**/bin/**/*.dll
TargetFolder: '$(build.artifactstagingdirectory)/${{ BuildCondition }}'
- task: CopyFiles@2
displayName: 'Copy nupkg'
inputs:
Contents: artifacts/*.nupkg
flattenFolders: true
TargetFolder: '$(build.artifactstagingdirectory)/nuget/${{ BuildCondition }}/'
- task: CopyFiles@2
displayName: 'Copy SignList.xml Files'
inputs:
Contents: eng/automation/SignList.xml
TargetFolder: '$(Build.ArtifactStagingDirectory)/nuget/${{ BuildCondition }}'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: win_build'
condition: always()
inputs:
ArtifactName: win_build
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: win_build'
condition: always()
inputs:
ArtifactName: win_build
# only sign using the private server

Просмотреть файл

@ -6,7 +6,7 @@ variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
- name: DOTNET_VERSION
value: 5.0.102
value: 6.0.x
- name: GraphicsControlsSln
value: '**/GraphicsControls.sln'
- name: GraphicsControlsLibraryProject

Просмотреть файл

@ -34,10 +34,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ProjectReunion" Version="0.8.0" />
<PackageReference Include="Microsoft.ProjectReunion.Foundation" Version="0.8.0" />
<PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="0.8.0" />
<PackageReference Include="Microsoft.ProjectReunion.InteractiveExperiences" Version="0.8.0" NoWarn="NU1701" />
<PackageReference Include="Microsoft.ProjectReunion" Version="0.8.5" />
<PackageReference Include="Microsoft.ProjectReunion.Foundation" Version="0.8.5" />
<PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="0.8.5" />
<PackageReference Include="Microsoft.ProjectReunion.InteractiveExperiences" Version="0.8.5" NoWarn="NU1701" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -7,9 +7,6 @@
<Nullable>enable</Nullable>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<RuntimeIdentifier Condition="'$(TargetFramework)' == 'net6.0-ios'">iossimulator-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">maccatalyst-x64</RuntimeIdentifier>
<InvariantGlobalization Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">true</InvariantGlobalization>
</PropertyGroup>
<PropertyGroup>
<PackageId>Microsoft.Maui.Graphics.Controls</PackageId>