Skip to content

Commit

Permalink
Update all the tools and sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Aug 21, 2023
1 parent d6a70fe commit f381b65
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "3.0.0",
"version": "3.1.0",
"commands": [
"dotnet-cake"
]
Expand Down
15 changes: 1 addition & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,6 @@ stages:
Write-Host "Build label: $label"
Write-Host "##vso[build.updatebuildnumber]$label"
displayName: Update the build number with a more readable one
# install tools
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: 3.1.x
displayName: Install .NET Core 3.1
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: 7.0.x
displayName: Install .NET 7.0
- pwsh: dotnet workload install maui
displayName: Install .NET MAUI
- pwsh: dotnet tool restore
displayName: Restore the dotnet tools
# PUBLIC ONLY: build everything and run tests
Expand All @@ -98,7 +85,7 @@ stages:
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- pwsh: dotnet cake --target=pack
displayName: Pack NuGets
- publish: output
- publish: output/nugets
artifact: nuget
displayName: Upload NuGets

Expand Down
15 changes: 8 additions & 7 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var TARGET = Argument("t", Argument("target", "Default"));
var CONFIGURATION = Argument("c", Argument("configuration", "Release"));
var PREVIEW_LABEL = Argument ("previewLabel", EnvironmentVariable ("PREVIEW_LABEL") ?? "preview");
var BUILD_NUMBER = Argument ("buildNumber", EnvironmentVariable ("BUILD_NUMBER") ?? "0");
var GIT_SHA = Argument ("gitSha", EnvironmentVariable ("GIT_SHA") ?? "");
Expand All @@ -10,7 +11,7 @@ Task("build")
var settings = new MSBuildSettings()
{ AllowPreviewVersion = true }
.EnableBinaryLogger("./output/binlogs/build.binlog")
.SetConfiguration("Release")
.SetConfiguration(CONFIGURATION)
.SetMaxCpuCount(0)
.WithRestore();
Expand All @@ -23,10 +24,10 @@ Task("pack")
MSBuild("./SkiaSharp.Extended-Pack.slnf", new MSBuildSettings()
{ AllowPreviewVersion = true }
.EnableBinaryLogger("./output/binlogs/pack.binlog")
.SetConfiguration("Release")
.SetConfiguration(CONFIGURATION)
.SetMaxCpuCount(0)
.WithRestore()
.WithProperty("PackageOutputPath", MakeAbsolute(new FilePath("./output/")).FullPath)
.WithProperty("PackageOutputPath", MakeAbsolute(new FilePath("./output/nugets")).FullPath)
.WithTarget("Pack"));
var preview = PREVIEW_LABEL;
Expand All @@ -37,14 +38,14 @@ Task("pack")
MSBuild("./SkiaSharp.Extended-Pack.slnf", new MSBuildSettings()
{ AllowPreviewVersion = true }
.EnableBinaryLogger("./output/binlogs/pack-preview.binlog")
.SetConfiguration("Release")
.SetConfiguration(CONFIGURATION)
.SetMaxCpuCount(0)
.WithRestore()
.WithProperty("PackageOutputPath", MakeAbsolute(new FilePath("./output/")).FullPath)
.WithProperty("PackageOutputPath", MakeAbsolute(new FilePath("./output/nugets")).FullPath)
.WithProperty("VersionSuffix", preview)
.WithTarget("Pack"));
CopyFileToDirectory("./source/SignList.xml", "./output/");
CopyFileToDirectory("./source/SignList.xml", "./output/nugets");
});

Task("test")
Expand All @@ -59,7 +60,7 @@ Task("test")
try {
DotNetTest(csproj.FullPath, new DotNetTestSettings {
Configuration = "Release",
Configuration = CONFIGURATION,
Loggers = new [] { $"trx;LogFileName={csproj.GetFilenameWithoutExtension()}.trx" },
});
} catch (Exception) {
Expand Down
35 changes: 31 additions & 4 deletions samples/Forms/SkiaSharpDemo.UWP/SkiaSharpDemo.UWP.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -14,10 +14,10 @@
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<AppxPackageSigningEnabled>False</AppxPackageSigningEnabled>
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -42,6 +42,30 @@
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
<OutputPath>bin\ARM64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
Expand Down Expand Up @@ -88,6 +112,9 @@
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
</ItemGroup>
Expand All @@ -99,7 +126,7 @@
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2401" />
<PackageReference Include="Topten.RichTextKit" Version="0.4.137" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.10" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.14" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\source\SkiaSharp.Extended.UI.Forms\SkiaSharp.Extended.UI.Forms.csproj">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<DefineConstants>$(DefineConstants);XAMARIN_FORMS</DefineConstants>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>
<UseWpf>true</UseWpf>
<DefineConstants>$(DefineConstants);XAMARIN_FORMS</DefineConstants>
</PropertyGroup>
Expand Down

0 comments on commit f381b65

Please sign in to comment.