This commit is contained in:
Jerome Laban 2023-06-11 21:57:04 -04:00
Родитель 5befefdc84
Коммит 23f0951b27
4 изменённых файлов: 14 добавлений и 39 удалений

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

@ -87,41 +87,12 @@ jobs:
steps:
- checkout: self
clean: true
- task: UseDotNet@2
inputs:
packageType: 'runtime'
version: '2.2.0'
- task: nventiveCanaryUpdater@5
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
inputs:
solution: 'Windows Community Toolkit.sln'
usePrivateFeed: false
useNuGetOrg: true
mergeBranch: true
branchToMerge: 'uno'
nugetUpdaterVersion: '2.0.4'
allowDowngrade: true
packageAuthor: 'nventive'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/update_result.json'
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.1.101'
displayName: Use .NET Core SDK 3.1.101
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '5.0.402'
displayName: Use .NET SDK 5.0.402
- template: build/ci/canary.yml
- bash: |
cd $(build.sourcesdirectory)/CommunityToolkit.WinUI.SampleApp.Wasm
dotnet msbuild /r /nr:false /m:1 /p:Configuration=Release /p:UnoUIUseRoslynSourceGenerators=false /p:UnoUIVersionOverride=true $(build.sourcesdirectory)/CommunityToolkit.WinUI.SampleApp.Wasm/CommunityToolkit.WinUI.SampleApp.Wasm.csproj /p:TargetFrameworksOverride=netstandard2.0 /bl:$(build.artifactstagingdirectory)/build.binlog
dotnet msbuild /r /nr:false /m:1 /p:Configuration=Release /p:UnoUIUseRoslynSourceGenerators=false /p:UnoUIVersionOverride=true $(build.sourcesdirectory)/CommunityToolkit.WinUI.SampleApp.Wasm/CommunityToolkit.WinUI.SampleApp.Wasm.csproj /p:TargetFrameworksOverride=net7.0 /bl:$(build.artifactstagingdirectory)/build.binlog
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'

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

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType Condition="'$(Configuration)'=='Release'">WinExe</OutputType>
<OutputType Condition="'$(Configuration)'=='Debug'">Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<UnoUIUseRoslynSourceGenerators>false</UnoUIUseRoslynSourceGenerators>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);Uno0001</NoWarn>

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

@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<WasmPWAManifestFile Condition="'$(Configuration)'=='Release'">manifest.json</WasmPWAManifestFile>
<NoWarn>$(NoWarm);Uno0001</NoWarn>
<MonoRuntimeDebuggerEnabled Condition="'$(Configuration)'=='Debug'">true</MonoRuntimeDebuggerEnabled>
@ -12,8 +12,6 @@
<!--<WasmShellGenerateAOTProfile>true</WasmShellGenerateAOTProfile>-->
<WasmShellEnableEmccProfiling>true</WasmShellEnableEmccProfiling>
<WasmShellEnableLongPathSupport>false</WasmShellEnableLongPathSupport>
<UnoUIUseRoslynSourceGenerators>false</UnoUIUseRoslynSourceGenerators>
</PropertyGroup>
<ItemGroup>

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

@ -4,6 +4,11 @@ steps:
inputs:
packageType: 'runtime'
version: '3.1.x'
- task: UseDotNet@2
inputs:
packageType: 'runtime'
version: '2.2.0'
- task: UseDotNet@2
inputs:
@ -19,10 +24,10 @@ steps:
useNuGetOrg: true
mergeBranch: true
branchToMerge: 'uno'
nugetUpdaterVersion: '2.0.2'
allowDowngrade: true
nugetVersion: 'dev'
packageAuthor: 'nventive,uno platform'
nugetUpdaterVersion: 2.3.0-alpha.42
packageAuthor: 'nventive,Uno Platform'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/update_result.json'
@ -34,9 +39,10 @@ steps:
useNuGetOrg: true
mergeBranch: true
branchToMerge: 'uno'
nugetUpdaterVersion: '2.0.2'
allowDowngrade: true
nugetVersion: 'feature.5x'
packageAuthor: 'nventive,uno platform'
nugetUpdaterVersion: 2.3.0-alpha.42
packageAuthor: 'nventive,Uno Platform'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/update_result.json'
additionalPublicSources: 'https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/dev-uno5/nuget/v3/index.json'