https://dgl.cx/2020/06/sqlite-json-support https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/framework-design-guidelines-digest.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cake.Core; | |
namespace Custom.Cake.Aliases; | |
public static class ArgumentAliases | |
{ | |
public static bool TryGetArgumentInt32(this ICakeContext context, string argumentName, out int value) | |
{ | |
if (context.Arguments.HasArgument(argumentName)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<BlockedProjects Include="Test.SkiaSharp;DeniedProject2;DeniedProject3" /> | |
</ItemGroup> | |
<Target Name="CheckBlockedProjectReferences" BeforeTargets="Build"> | |
<Message Text="--> %(ProjectReference.Filename)" Importance="high"/> | |
<Message Text="Blocked: @(ProjectReference->WithMetadataValue('Filename', '%(BlockedProjects.Identity)'))" Importance="high"/> | |
<Error Text="The project '@(ProjectReference)' references a blocked project!" | |
Condition="'@(ProjectReference->WithMetadataValue('Filename', '%(BlockedProjects.Identity)'))' != ''" /> | |
</Target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Avalonia; | |
using Avalonia.Input; | |
using Avalonia.Xaml.Interactions.Events; | |
using Avalonia.Xaml.Interactivity; | |
namespace Avalonia.Xaml.Interactions | |
{ | |
public class PointerTriggerBehavior : PointerEventsBehavior | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Try.Try.Try | |
{ | |
public abstract record Try<TSuccess, TFailure> |
When consuming a NuGet package with runtime libraries they will not be copied to the output directory if the consuming assembly is itself a library. It needs to be an executable.
Also note that class libraries don't have a host, hence don't have a RID. Therefore you may not see the runtime dlls. You need to make sure your test project that uses the package is something that has a host & entry point, like a console app.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<Target Name="_DeleteFilesFromOutputDirectory" AfterTargets="CopyFilesToOutputDirectory"> | |
<!-- Delete files that are not needed --> | |
<ItemGroup> | |
<!-- Satellite Assemblies --> | |
<FilesToDelete Include="$(OutDir)\**\*.resources.dll" /> | |
</ItemGroup> | |
<Delete Files="@(FilesToDelete)" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<SomethingPropsDirectory>$(LOCALAPPDATA)\Something\</SomethingPropsDirectory> | |
<SomethingPropsFilePath>$(SomethingPropsDirectory)\Something.Build.props</SomethingPropsFilePath> | |
</PropertyGroup> | |
<Import Project="$(SomethingPropsFilePath)" Condition="Exists('$(SomethingPropsFilePath)')" /> | |
<Target Name="GenerateBuildSecrets" BeforeTargets="CoreCompile"> |
NewerOlder