- 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
Still an issue in July 2024. 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)" /> |