dotnet build -t:Run -f net6.0-maccatalyst
dotnet build -t:Run -f net6.0-ios
/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list
| #!/usr/bin/env bash | |
| set -o errexit # Exit on most errors (see the manual) | |
| set -o errtrace # Make sure any error trap is inherited | |
| set -o nounset # Disallow expansion of unset variables | |
| set -Eeuo pipefail # Use last non-zero exit code in a pipelin | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) |
Within a <PropertyGroup />, existing or create a new one add the following.
<!--Do not create package for windows-->
<WindowsPackageType Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">None</WindowsPackageType>
Save and close.
| public class HttpLoggingHandler : DelegatingHandler | |
| { | |
| public HttpLoggingHandler(HttpMessageHandler innerHandler = null) | |
| : base(innerHandler ?? new HttpClientHandler()) | |
| { | |
| } | |
| async protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, | |
| CancellationToken cancellationToken) | |
| { |