Skip to content

Instantly share code, notes, and snippets.

View ViktorHofer's full-sized avatar

Viktor Hofer ViktorHofer

View GitHub Profile
@ViktorHofer
ViktorHofer / gist:e4ba1766b7ee751261515781e7bb5927
Created March 11, 2024 14:51
Create runtime package readme TODO table
foreach (string libDirectory in Directory.GetDirectories(@"C:\git\runtime2\src\libraries\"))
{
string libName = Path.GetFileName(libDirectory);
string srcLibDirectory = Path.Combine(libDirectory, "src");
if (Directory.Exists(srcLibDirectory))
{
string packageReadmeFile = Path.Combine(srcLibDirectory, "PACKAGE.md");
if (File.Exists(packageReadmeFile))
{
const string emptyPackageReadmeContent = """
@ViktorHofer
ViktorHofer / gist:10e527f8eb61fc0c94f12b2a81e2add2
Created February 13, 2024 17:03
graphviz up to installer
digraph {
graph [ dpi = 150 ]
"arcade" -> "aspnetcore"
"arcade" -> "efcore"
"arcade" -> "emsdk"
"arcade" -> "icu"
"arcade" -> "runtime"
"arcade" -> "windowsdesktop"
"arcade" -> "wpf"
"arcade" -> "winforms"
@ViktorHofer
ViktorHofer / gist:0a193f3f69fad83ae32a2d5ee0c48f8f
Last active December 16, 2023 11:19
VMR sync eng/common folders
cp -TRv eng/common/ src/arcade/eng/common/ &&
cp -TRv eng/common/ src/aspire/eng/common/ &&
cp -TRv eng/common/ src/aspnetcore/eng/common/ &&
cp -TRv eng/common/ src/cecil/eng/common/ &&
cp -TRv eng/common/ src/command-line-api/eng/common/ &&
cp -TRv eng/common/ src/aspnetcore/eng/common/ &&
cp -TRv eng/common/ src/deployment-tools/eng/common/ &&
cp -TRv eng/common/ src/diagnostics/eng/common/ &&
cp -TRv eng/common/ src/emsdk/eng/common/ &&
cp -TRv eng/common/ src/format/eng/common/ &&
@ViktorHofer
ViktorHofer / dg.json
Created September 27, 2023 13:03
nuget dg.json with multiple identical P2Ps but different metadata
{
"format": 1,
"restore": {
"C:\\Users\\vihofer\\Downloads\\ridLib\\lib\\lib": {},
"C:\\Users\\vihofer\\Downloads\\ridLib\\ridLib\\runtime.linux-x64.ridLib": {},
"C:\\Users\\vihofer\\Downloads\\ridLib\\ridLib\\runtime.win-x64.ridLib": {},
"C:\\Users\\vihofer\\Downloads\\ridLib\\ridLib\\runtime.win-x86.ridLib": {}
},
"projects": {
"C:\\Users\\vihofer\\Downloads\\ridLib\\lib\\lib": {
Microsoft.CSharp.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
Microsoft.VisualBasic.Core.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
Microsoft.Win32.Primitives.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
Microsoft.Win32.Registry.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
System.AppContext.xml Text files are identical * 6/16/2023 9:28:09 AM 6/15/2023 11:30:08 AM xml
System.Buffers.xml Text files are identical * 6/16/2023 9:28:02 AM 6/15/2023 11:30:13 AM xml
System.Collections.Concurrent.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
System.Collections.Immutable.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
System.Collections.NonGeneric.xml Text files are identical 10/11/2022 12:07:00 AM 10/11/2022 12:07:00 AM xml
System.Collections.Specialized.xml Text files are ident
#!/usr/bin/env bash
# Match hidden files with the asterisk
shopt -s dotglob
source="${BASH_SOURCE[0]}"
# resolve $source until the file is no longer a symlink
while [[ -h "$source" ]]; do
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
{
"version": 3,
"targets": {
"net7.0": {
"MicroBuild.Core/0.3.0": {
"type": "package",
"build": {
"build/_._": {}
},
"buildMultiTargeting": {
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Microsoft.DotNet.SymbolExtensions.Logging
{
/// <summary>
/// A console based log
/// </summary>
--- a/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs
+++ b/src/ApiCompat/Microsoft.DotNet.ApiCompat.Shared/ValidateAssemblies.cs
@@ -40,6 +40,7 @@ internal static class ValidateAssemblies
bool generateSuppressionFile,
string? suppressionFile,
string? noWarn,
+ string[]? excludeAttributesFiles,
string[] leftAssemblies,
string[] rightAssemblies,
bool enableStrictMode,
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"presentation": {
"reveal": "always",
"panel": "shared",
"focus": true
},
"tasks": [