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 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 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 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 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"> |
This file contains 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
public static class NibbleConverter | |
{ | |
public static void GetNibbles(byte input, out byte lowNibble, out byte highNibble) | |
{ | |
highNibble = (byte)(input >> 4 & 0xF); | |
lowNibble = (byte)(input & 0xF); | |
} | |
} |
This file contains 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
https://github.com/dotnet/sdk/issues/1151 |
NewerOlder