- Using terminal command
dotnet --list-runtimes
- Using C#/CSharp code
namespace AllenCai; | |
/// <summary> | |
/// This is an imitation of the Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString method, | |
/// implementing matching that supports * and ? wildcards and support ignores case rules.<br /> | |
/// The purpose of this implementation is to reduce memory allocation and improve performance. | |
/// </summary> | |
public static class ZeroMemAllocLikeOperator | |
{ | |
/// <summary> |
dotnet --list-runtimes
I created this gist on May 25, 2021. It is still an issue as of February 7th, 2025. Welcome to the future of web development. Take this Gist to rest and calm down.
<Project> | |
<Target Name="PublishProjectIfFrameworkSet" | |
DependsOnTargets="Publish" | |
Condition=" '$(TargetFramework)' != '' " /> | |
<Target Name="PublishProjectForAllRIDsIfTargetFrameworkSet" Condition=" '$(TargetFramework)' != '' and '$(RuntimeIdentifiers)' != '' and '$(RuntimeIdentifier)' == '' "> | |
<ItemGroup> | |
<_PublishRuntimeIdentifier Include="$(RuntimeIdentifiers)" /> | |
</ItemGroup> | |
<MSBuild Projects="$(MSBuildProjectFile)" Targets="PublishAll" Properties="TargetFramework=$(TargetFramework);RuntimeIdentifier=%(_PublishRuntimeIdentifier.Identity)" /> |