file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
app/src/mcp/mcp_api.cc
C++
#include "mcp_api.h" #include "mcp_server.h" #include "cJSON.h" #include <rtthread.h> #include <string.h> #include "rgbled_mcp.h" #include "../board/board_hardware.h" extern "C" { //注册IoT设备(可多个设备) void McpServer_ParseMessage(const char* message) { McpServer::GetInstance().ParseMessage(message); ...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/mcp/mcp_api.h
C/C++ Header
#ifndef MCP_API_H #define MCP_API_H #include <stdint.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif void McpServer_ParseMessage(const char* message); void MCP_RGBLED_CLOSE(); #ifdef __cplusplus } #endif #endif // MCP_API_H
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/mcp/mcp_server.cc
C++
/* * MCP Server Implementation * Reference: https://modelcontextprotocol.io/specification/2024-11-05 */ #include "mcp_server.h" #include <algorithm> #include <cstring> #include "../iot/thing_manager.h" #include <webclient.h> #include "rgbled_mcp.h" // #include "lwip/apps/websocket_client.h" // 提供 wsock_write 和 O...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/mcp/mcp_server.h
C/C++ Header
#ifndef MCP_SERVER_H #define MCP_SERVER_H #include <rtthread.h> #include <string.h> #include <vector> #include <map> #include <functional> #include <variant> #include <optional> #include <stdexcept> #include <thread> #include <cJSON.h> // 添加类型别名 using ReturnValue = std::variant<bool, int, std::string>; enum Property...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/mcp/rgbled_mcp.cc
C++
#include "rtthread.h" #include "rgbled_mcp.h" #include "drv_io.h" #include "stdio.h" #include "string.h" #include "drivers/rt_drv_pwm.h" #include "bf0_hal.h" #include "../board/board_hardware.h" #define LED_PIN 32 RGBLEDController& GetRGBLEDController() { static RGBLEDController instance; return instance; } ...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/mcp/rgbled_mcp.h
C/C++ Header
#ifndef RGBLED_MCP_H #define RGBLED_MCP_H #include "mcp_server.h" #include "rtthread.h" #include "drv_io.h" #include "stdio.h" #include "string.h" #include "drivers/rt_drv_pwm.h" #include "bf0_hal.h" // 定义颜色常量 #define RGBLED_NAME "rgbled" struct rt_color { const char *color_name; uint32_t color; }; stati...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/opus_heap.c
C
/* * SPDX-FileCopyrightText: 2024-2025 SiFli Technologies(Nanjing) Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include "rtthread.h" #include "rtdevice.h" #include "mem_section.h" #include "os_support.h" #define OPUS_HEAP_SIZE (1024 * 1024) L2_RET_BSS_SECT_BEGIN(opus_heap_pool) ALIGN(4) static uint8_t opu...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/weather/weather.c
C
/* * SPDX-FileCopyrightText: 2024-2025 SiFli Technologies(Nanjing) Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include "rtthread.h" #include "rtdevice.h" #include "xiaozhi_client_public.h" #include "lwip/api.h" #include "lwip/dns.h" #include <webclient.h> #include <cJSON.h> #include "ulog.h" #include "bts...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/weather/weather.h
C/C++ Header
#ifndef WEATHER_H #define WEATHER_H #include "time.h" #include <stdlib.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif typedef struct date_time { int year; /* eg: 2024 */ int month; /* eg: 1 (1-12) */ int day; /* eg: 31 (1~xx) */ int hour; /* eg: 8 (0~23) */ int minu...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_array.c
C
#include "xiaozhi_ui.h" #include "lv_image_dsc.h" const lv_image_dsc_t * loving[] = { &loving_1, &loving_2, &loving_3, &loving_4, &loving_5, &loving_6, &loving_7, &loving_8, &loving_9, &loving_10, &loving_11, &loving_12, &loving_13, &loving_14, &loving_15, &loving_16, &loving_17, &lo...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_audio.c
C
/* * SPDX-FileCopyrightText: 2024-2025 SiFli Technologies(Nanjing) Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include <rtthread.h> #include "lwip/api.h" #include "lwip/dns.h" #include "lwip/apps/mqtt_priv.h" #include "lwip/apps/mqtt.h" #include "lwip/udp.h" #include "lwip/tcpip.h" #include "xiaozhi_mqtt....
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_audio.h
C/C++ Header
#ifndef XIAOZHI_H #define XIAOZHI_H #ifdef __cplusplus extern "C" { #endif void xz_mqtt_button_init(void); void xz_audio_init(void); void xz_speaker_open(xz_audio_t *thiz); void xz_speaker_close(xz_audio_t *thiz); void xz_mic_open(xz_audio_t *thiz); void xz_mic_close(xz_audio_t *thiz); void reinit_audio(void); #ifd...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_client_public.c
C
// xiaozhi_public.c #include "xiaozhi_client_public.h" #include <rtthread.h> #include "bf0_hal.h" #include "bts2_global.h" #include "bts2_app_pan.h" #include "bt_connection_manager.h" #include "bt_env.h" #include <webclient.h> #include <cJSON.h> #include "stdio.h" #include "string.h" #include <lwip/dns.h> #include <lwi...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_client_public.h
C/C++ Header
#ifndef XIAOZHI_CLIENT_PUBLIC_H #define XIAOZHI_CLIENT_PUBLIC_H #include <rtthread.h> #include "lwip/api.h" #include "lwip/dns.h" #include "lwip/apps/mqtt_priv.h" #include "lwip/apps/mqtt.h" #include "lwip/udp.h" #include "lwip/tcpip.h" #include "xiaozhi_mqtt.h" #include "bf0_hal.h" #include "button.h" #include "os_a...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_mqtt.c
C
/* * SPDX-FileCopyrightText: 2024-2025 SiFli Technologies(Nanjing) Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include <rtthread.h> #include "lwip/api.h" #include "lwip/dns.h" #include "lwip/apps/websocket_client.h" #include "lwip/apps/mqtt_priv.h" #include "lwip/apps/mqtt.h" #include "lwip/tcpip.h" #incl...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_mqtt.h
C/C++ Header
#ifndef XIAOZHI_MQTT_H #define XIAOZHI_MQTT_H #define GET_HEADER_BUFSZ 1024 // 头部大小 #define GET_RESP_BUFSZ 1024 // 响应缓冲区大小 #define GET_URL_LEN_MAX 256 // 网址最大长度 #define GET_URI "https://%s/xiaozhi/ota/" // 获取小智版本 #define XIAOZHI_HOST "api.tenclass.net" #d...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_screen.c
C
#include "rtthread.h" #include "bf0_hal.h" #include "drv_io.h" #include "littlevgl2rtt.h" #include "lv_tiny_ttf.h" #include "string.h" #include "xiaozhi_client_public.h" #include "bf0_pm.h" #include "gui_app_pm.h" #include "drv_gpio.h" #include "lv_timer.h" #include "lv_display.h" #include "lv_obj_pos.h" #include "ulog...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_screen.h
C/C++ Header
#ifndef XIAOZHI_SCREEN_H #define XIAOZHI_SCREEN_H #include <rtthread.h> #include "lv_tiny_ttf.h" #include "string.h" #include "xiaozhi_client_public.h" #include "bf0_pm.h" #include "gui_app_pm.h" #include "drv_gpio.h" #include "lv_timer.h" #include "lv_display.h" #include "lv_obj_pos.h" void show_shutdown(void); void...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_ui.c
C
#include "rtthread.h" #include "bf0_hal.h" #include "drv_io.h" #include "littlevgl2rtt.h" #include "lv_tiny_ttf.h" #include "string.h" #include "xiaozhi_client_public.h" #include "bf0_pm.h" #include "gui_app_pm.h" #include "drv_gpio.h" #include "lv_timer.h" #include "lv_display.h" #include "lv_obj_pos.h" #include "ulog...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_ui.h
C/C++ Header
#ifndef _XIAOZHI_UI_H_ #define _XIAOZHI_UI_H_ #include "lv_image_dsc.h" #include "lv_timer.h" #include "lv_display.h" #include "lv_obj_pos.h" #ifdef __cplusplus extern "C" { #endif void xiaozhi_ui_update_ble(char *string); // ble void xiaozhi_ui_update_emoji(char *string); void xiaozhi_ui_chat_status(char *string);...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_websocket.c
C
/* * SPDX-FileCopyrightText: 2024-2025 SiFli Technologies(Nanjing) Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> #include <stdbool.h> #include <rtthread.h> #include "lwip/api.h" #include "lwip/tcpip.h" #include "lwip/dns.h" #include "lwip/apps/websocket_client.h" #include "lwip/apps/mqtt_...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/src/xiaozhi_websocket.h
C/C++ Header
#ifndef XIAOZHI_WEBSOCKET_H #define XIAOZHI_WEBSOCKET_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include <rtthread.h> #include "lwip/api.h" #include "lwip/apps/websocket_client.h" #include "lwip/apps/mqtt_priv.h" #include "lwip/apps/mqtt.h" #include "xiaozhi_mqtt.h" #include "bf0_hal.h" #include "b...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
app/tools/font_converter.py
Python
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import argparse from pathlib import Path def font_to_c_array(font_file_path, array_name="xiaozhi_font"): font_path = Path(font_file_path) if not font_path.exists(): raise FileNotFoundError(f"字体文件不存在: {font_file_path}") #...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/config.ts
TypeScript
import { defineUserConfig } from "vuepress"; import theme from "./theme.js"; export default defineUserConfig({ base: "/projects/xiaozhi/", locales: { "/en/": { lang: "en-US", title: "Xiaozhi Encyclopedia", description: "Xiaozhi Encyclopedia based on SF32", }, "/": { lang: "zh-...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/navbar/en.ts
TypeScript
import { navbar } from "vuepress-theme-hope"; export const enNavbar = navbar([ "/en/", "/en/portfolio", "/en/demo/", { text: "Guide", icon: "lightbulb", prefix: "/en/guide/", children: [ { text: "Bar", icon: "lightbulb", prefix: "bar/", children: ["baz", { ...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/navbar/index.ts
TypeScript
export * from "./en.js"; export * from "./zh.js";
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/navbar/zh.ts
TypeScript
import { navbar } from "vuepress-theme-hope"; export const zhNavbar = navbar([ "/", { text: "快速入门", icon: "lightbulb", prefix: "/get-started/", children: [ "SF32LB52-DevKit-ULP/README.md", "SF32LB52-DevKit-LCD/README.md", "SF32LB52-DevKit-Nano/README.md", "SF32LB52-XTY-AI-TH...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/sidebar/en.ts
TypeScript
import { sidebar } from "vuepress-theme-hope"; export const enSidebar = sidebar({ "/en/": [ "", "portfolio", { text: "Demo", icon: "laptop-code", prefix: "demo/", link: "demo/", children: "structure", }, { text: "Docs", icon: "book", prefix: "guide/...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/sidebar/index.ts
TypeScript
export * from "./en.js"; export * from "./zh.js";
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/sidebar/zh.ts
TypeScript
import { sidebar } from "vuepress-theme-hope"; export const zhSidebar = sidebar({ "/get-started/": "structure", "/source-build/": "structure", "/custom/": "structure", "/course-documents/": "structure" });
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/styles/config.scss
SCSS
// you can change config here $theme-color: #096dd9;
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/styles/index.scss
SCSS
// place your custom styles here :root { --theme-color: #667eea; --theme-color-light: #764ba2; } .vp-navbar { transition: all 0.3s ease; &.transparent { background: rgba(255, 255, 255, 0.8) !important; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); } } [data-them...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/styles/palette.scss
SCSS
// you can change colors here
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
docs/src/.vuepress/theme.ts
TypeScript
import { hopeTheme } from "vuepress-theme-hope"; import { enNavbar, zhNavbar } from "./navbar/index.js"; import { enSidebar, zhSidebar } from "./sidebar/index.js"; export default hopeTheme({ hostname: "https://docs.sifli.com/projects/xiaozhi", author: { name: "SiFli Technology", url: "https://github.com/...
78/xiaozhi-sf32
160
Build your own AI friend via Bluetooth by SF32
C
78
Xiaoxia
main.go
Go
// Copyright (c) 2017, b3log.org // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
88250/bing
6
🍱 Bing 壁纸上传七牛云。
Go
88250
D
b3log.org
main.go
Go
package main import ( "flag" "log" "os" "os/exec" "path/filepath" "strconv" "syscall" "time" "golang.org/x/sys/unix" ) type FileTimestamps struct { Atime time.Time Mtime time.Time } func registerDir(dir string) (map[string]FileTimestamps, error) { timestamps := make(map[string]FileTimestamps) err := f...
89luca89/stampdalf
10
Simple golang CLI tool to wrap commands and ensure reproducibility on the file system
Go
89luca89
Luca Di Maio
chainguard-dev
main_test.go
Go
package main import ( "os" "path/filepath" "testing" "time" ) func TestRegisterDir(t *testing.T) { tempDir := t.TempDir() testFile := filepath.Join(tempDir, "test.txt") if err := os.WriteFile(testFile, []byte("test"), 0644); err != nil { t.Fatal(err) } subDir := filepath.Join(tempDir, "subdir") if err :...
89luca89/stampdalf
10
Simple golang CLI tool to wrap commands and ensure reproducibility on the file system
Go
89luca89
Luca Di Maio
chainguard-dev
azure-pipelines/Merge-CodeCoverage.ps1
PowerShell
#!/usr/bin/env pwsh <# .SYNOPSIS Merges code coverage reports. .PARAMETER Path The path(s) to search for Cobertura code coverage reports. .PARAMETER Format The format for the merged result. The default is Cobertura .PARAMETER OutputDir The directory the merged result will be written to. The default is ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
azure-pipelines/publish_artifacts.ps1
PowerShell
<# .SYNOPSIS This script translates all the artifacts described by _all.ps1 into commands that instruct Azure Pipelines to actually collect those artifacts. #> [CmdletBinding()] param ( [string]$ArtifactNameSuffix, [switch]$StageOnly, [switch]$AvoidSymbolicLinks ) Function Set-PipelineVariable($na...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
init.ps1
PowerShell
#!/usr/bin/env pwsh <# .SYNOPSIS Installs dependencies required to build and test the projects in this repository. .DESCRIPTION This MAY not require elevation, as the SDK and runtimes are installed to a per-user location, unless the `-InstallLocality` switch is specified directing to a per-repo or per-mach...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/AssemblyInfo.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Runtime.InteropServices; [assembly: DefaultDllImportSearchPaths(DllImportSearchPath.SafeDirectories)]
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/Delegates.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #pragma warning disable SA1649 // File name should match first type name namespace Nerdbank.JsonRpc; internal delegate ValueTask<DispatchResponse> MethodInvoker(...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/DispatchRequest.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; internal struct DispatchRequest { internal MessagePackSerializer UserDataSerializer => this.JsonRpc.Seri...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/DispatchResponse.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.JsonRpc; internal struct DispatchResponse { internal JsonRpcResponse? Response { get; init; } internal bool IsProtocolViolation { get; set; ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpc.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Concurrent; using System.Threading.Channels; using Microsoft; using Microsoft.VisualStudio.Threading; using Nerdbank.MessagePack; namespa...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcError.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.JsonRpc; [GenerateShape] public partial class JsonRpcError : JsonRpcResponse { [PropertyShape(Name = "error")] public required JsonRpcErrorDe...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcErrorCode.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.JsonRpc; public static class JsonRpcErrorCode { public const int ParseError = -32700; public const int InvalidRequest = -32600; public const...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcErrorDetails.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; public class JsonRpcErrorDetails { [PropertyShape(Name = "code")] public required long Code { get; init...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcException.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft; namespace Nerdbank.JsonRpc; public class JsonRpcException : Exception { public JsonRpcException(JsonRpcErrorDetails errorDetails) : this(erro...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcExtensions.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using Microsoft; using PolyType.Abstractions; namespace Nerdbank.JsonRpc; public static class...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcMessage.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; [MessagePackConverter(typeof(JsonRpcMessageConverter))] [GenerateShape] public abstract partial class Jso...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcMessageConverter.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Net; using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; internal class JsonRpcMessageConverter : MessagePackConverter<JsonRpcMessage> { privat...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcPipeChannel.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO.Pipelines; using System.Net; using System.Threading.Channels; using Microsoft; using Microsoft.Extensions.Logging; using Nerdbank.MessagePack; nam...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcRequest.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; [GenerateShape] public partial class JsonRpcRequest : JsonRpcMessage { [PropertyShape(Name = "method")] ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcResponse.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.JsonRpc; public abstract partial class JsonRpcResponse : JsonRpcMessage { public new required RequestId Id { get => base.Id!.Value; init ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcResult.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; [GenerateShape] public partial class JsonRpcResult : JsonRpcResponse { [PropertyShape(Name = "result")] ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/JsonRpcState.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.JsonRpc; public enum JsonRpcState { NotStarted, Running, Faulted, Disposed, }
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/MsgPackValues.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft; using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; internal static class MsgPackValues { internal static readonly RawMessagePack EmptyMap ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/PolyfillExtensions.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #if !NET using System.Text; namespace Nerdbank.JsonRpc; internal static class PolyfillExtensions { internal static unsafe int GetBytes(this Encoding encoding, ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/RequestId.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.ComponentModel; using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; [GenerateShape] [MessagePackConverter(typeof(Converter))] public partial str...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/RpcTargetVisitor.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Nerdbank.MessagePack; using PolyType.Abstractions; namespace Nerdbank.JsonRpc; internal class RpcTargetVisitor : TypeShapeVisitor { internal static readon...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/SpanDictionary.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // This file was originally derived from https://github.com/eiriktsarpalis/PolyType/ // with Eirik Tsarpalis getting credit for the original implementation. #pragm...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/SpanEqualityComparer.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // This file was originally derived from https://github.com/eiriktsarpalis/PolyType/ // with Eirik Tsarpalis getting credit for the original implementation. #pragm...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/StreamingJsonRpcMessageChannel.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO.Pipelines; using System.Net; using System.Runtime.CompilerServices; using Microsoft; using Microsoft.Extensions.Logging; using Nerdbank.MessagePack...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/StringEncoding.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Text; using Microsoft; using Nerdbank.MessagePack; namespace Nerdbank.JsonRpc; internal static class StringEncoding { /// <summary> /// UTF-8 enco...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
src/Nerdbank.JsonRpc/Usings.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. global using PolyType;
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Benchmarks/Benchmarks.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO.Pipelines; using BenchmarkDotNet.Attributes; using Microsoft.Extensions.Logging.Abstractions; using Nerdbank.Streams; using PolyType; namespace Be...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Benchmarks/Program.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using BenchmarkDotNet.Configs; using BenchmarkDotNet.Running; BenchmarkRunner.Run( typeof(Program).Assembly, DefaultConfig.Instance/*.WithOptions(ConfigOptions....
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Benchmarks/Usings.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. global using Nerdbank.JsonRpc;
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/JsonRpcClientTests.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Threading.Channels; using Microsoft.VisualStudio.Threading; using PolyType; public partial class JsonRpcClientTests : TestBase { private readonly Js...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/JsonRpcPipeChannelTestBase.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #pragma warning disable NBMsgPack051 // Prefer modern .NET APIs - Remove this when https://github.com/AArnott/Nerdbank.MessagePack/pull/771 merges using Nerdbank....
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/JsonRpcServerTests.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Threading.Channels; using Microsoft.VisualStudio.Threading; using Nerdbank.Streams; using PolyType; public partial class JsonRpcServerTests : TestBas...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/JsonRpcTests.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO.Pipelines; using Nerdbank.Streams; using PolyType; public partial class JsonRpcTests : TestBase { private readonly JsonRpc clientRpc; private re...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/MockChannel`1.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Threading.Channels; namespace Nerdbank.JsonRpc.Tests; internal class MockChannel<T> : Channel<T> { internal MockChannel(ChannelReader<T> reader, Ch...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/StreamingJsonRpcMessageChannelTests.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO.Pipelines; using Microsoft.Extensions.Logging; using Nerdbank.JsonRpc; using Nerdbank.Streams; public class StreamingJsonRpcMessageChannelTests() ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/TestBase.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Diagnostics; using Microsoft.Extensions.Logging; public abstract class TestBase : IDisposable { protected static readonly RawMessagePack NilMsgPack ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/Usings.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. global using Nerdbank.JsonRpc; global using Nerdbank.JsonRpc.Tests; global using Nerdbank.MessagePack; global using Xunit;
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
test/Nerdbank.JsonRpc.Tests/XUnitLoggerProvider.cs
C#
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.Logging; namespace Nerdbank.JsonRpc.Tests; [ProviderAlias("XUnit")] public class XUnitLoggerProvider(ITestOutputHelper outputHelper) :...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Check-DotNetRuntime.ps1
PowerShell
<# .SYNOPSIS Checks whether a given .NET Core runtime is installed. #> [CmdletBinding()] Param ( [Parameter()] [ValidateSet('Microsoft.AspNetCore.App','Microsoft.NETCore.App')] [string]$Runtime='Microsoft.NETCore.App', [Parameter(Mandatory=$true)] [Version]$Version ) $dotnet = Get-Command dotne...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Check-DotNetSdk.ps1
PowerShell
<# .SYNOPSIS Checks whether the .NET Core SDK required by this repo is installed. #> [CmdletBinding()] Param ( ) $dotnet = Get-Command dotnet -ErrorAction SilentlyContinue if (!$dotnet) { # Nothing is installed. Write-Output $false exit 1 } # We need to set the current directory so dotnet considers th...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-3rdPartySymbolFiles.ps1
PowerShell
Function Get-FileFromWeb([Uri]$Uri, $OutFile) { $OutDir = Split-Path $OutFile if (!(Test-Path $OutFile)) { Write-Verbose "Downloading $Uri..." if (!(Test-Path $OutDir)) { New-Item -ItemType Directory -Path $OutDir | Out-Null } try { (New-Object System.Net.WebClient).DownloadF...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-ArtifactsStagingDirectory.ps1
PowerShell
Param( [switch]$CleanIfLocal ) if ($env:BUILD_ARTIFACTSTAGINGDIRECTORY) { $ArtifactStagingFolder = $env:BUILD_ARTIFACTSTAGINGDIRECTORY } elseif ($env:RUNNER_TEMP) { $ArtifactStagingFolder = Join-Path $env:RUNNER_TEMP _artifacts } else { $ArtifactStagingFolder = [System.IO.Path]::GetFullPath("$PSScriptRo...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-CodeCovTool.ps1
PowerShell
<# .SYNOPSIS Downloads the CodeCov.io uploader tool and returns the path to it. .PARAMETER AllowSkipVerify Allows skipping signature verification of the downloaded tool if gpg is not installed. #> [CmdletBinding()] Param( [switch]$AllowSkipVerify ) if ($IsMacOS) { $codeCovUrl = "https://uploader.codeco...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-LibTemplateBasis.ps1
PowerShell
<# .SYNOPSIS Returns the name of the well-known branch in the Library.Template repository upon which HEAD is based. #> [CmdletBinding(SupportsShouldProcess = $true)] Param( [switch]$ErrorIfNotRelated ) # This list should be sorted in order of decreasing specificity. $branchMarkers = @( @{ commit = 'fd0a7b2...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-NuGetTool.ps1
PowerShell
<# .SYNOPSIS Downloads the NuGet.exe tool and returns the path to it. .PARAMETER NuGetVersion The version of the NuGet tool to acquire. #> Param( [Parameter()] [string]$NuGetVersion='6.14.0' ) $toolsPath = & "$PSScriptRoot\Get-TempToolsPath.ps1" $binaryToolsPath = Join-Path $toolsPath $NuGetVersion if ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-ProcDump.ps1
PowerShell
<# .SYNOPSIS Downloads 32-bit and 64-bit procdump executables and returns the path to where they were installed. #> $version = '0.0.1' $baseDir = "$PSScriptRoot\..\obj\tools" $procDumpToolPath = "$baseDir\procdump.$version\bin" if (-not (Test-Path $procDumpToolPath)) { if (-not (Test-Path $baseDir)) { New-Item -Typ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-SymbolFiles.ps1
PowerShell
<# .SYNOPSIS Collect the list of PDBs built in this repo. .PARAMETER Path The directory to recursively search for PDBs. .PARAMETER Tests A switch indicating to find PDBs only for test binaries instead of only for shipping shipping binaries. #> [CmdletBinding()] param ( [parameter(Mandatory=$true)] [...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Get-TempToolsPath.ps1
PowerShell
if ($env:AGENT_TEMPDIRECTORY) { $path = "$env:AGENT_TEMPDIRECTORY\$env:BUILD_BUILDID" } elseif ($env:localappdata) { $path = "$env:localappdata\gitrepos\tools" } else { $path = "$PSScriptRoot\..\obj\tools" } if (!(Test-Path $path)) { New-Item -ItemType Directory -Path $Path | Out-Null } (Resolve-Path ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Install-DotNetSdk.ps1
PowerShell
#!/usr/bin/env pwsh <# .SYNOPSIS Installs the .NET SDK specified in the global.json file at the root of this repository, along with supporting .NET runtimes used for testing. .DESCRIPTION This MAY not require elevation, as the SDK and runtimes are installed locally to this repo location, unless `-Insta...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Install-NuGetCredProvider.ps1
PowerShell
#!/usr/bin/env pwsh <# .SYNOPSIS Downloads and installs the Microsoft Artifacts Credential Provider from https://github.com/microsoft/artifacts-credprovider to assist in authenticating to Azure Artifact feeds in interactive development or unattended build agents. .PARAMETER Force Forces install of ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Install-NuGetPackage.ps1
PowerShell
<# .SYNOPSIS Installs a NuGet package. .PARAMETER PackageID The Package ID to install. .PARAMETER Version The version of the package to install. If unspecified, the latest stable release is installed. .PARAMETER Source The package source feed to find the package to install from. .PARAMETER Prerelease ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/MergeFrom-Template.ps1
PowerShell
<# .SYNOPSIS Merges the latest changes from Library.Template into HEAD of this repo. .PARAMETER LocalBranch The name of the local branch to create at HEAD and use to merge into from Library.Template. #> [CmdletBinding(SupportsShouldProcess = $true)] Param( [string]$LocalBranch = "dev/$($env:USERNAME)/libte...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/Set-EnvVars.ps1
PowerShell
<# .SYNOPSIS Set environment variables in the environment. Azure Pipeline and CMD environments are considered. .PARAMETER Variables A hashtable of variables to be set. .PARAMETER PrependPath A set of paths to prepend to the PATH environment variable. .OUTPUTS A boolean indicating whether the environ...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/Variables.ps1
PowerShell
# This artifact captures all variables defined in the ..\variables folder. # It "snaps" the values of these variables where we can compute them during the build, # and otherwise captures the scripts to run later during an Azure Pipelines environment release. $RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot/../...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/_all.ps1
PowerShell
#!/usr/bin/env pwsh <# .SYNOPSIS This script returns all the artifacts that should be collected after a build. Each powershell artifact is expressed as an object with these properties: Source - the full path to the source file ArtifactName - the name of the artifact to upload to C...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/_stage_all.ps1
PowerShell
<# .SYNOPSIS This script links all the artifacts described by _all.ps1 into a staging directory, reading for uploading to a cloud build artifact store. It returns a sequence of objects with Name and Path properties. #> [CmdletBinding()] param ( [string]$ArtifactNameSuffix, [switch]$AvoidSymbolicLin...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/build_logs.ps1
PowerShell
$ArtifactStagingFolder = & "$PSScriptRoot/../Get-ArtifactsStagingDirectory.ps1" if (!(Test-Path $ArtifactStagingFolder/build_logs)) { return } @{ "$ArtifactStagingFolder/build_logs" = (Get-ChildItem -Recurse "$ArtifactStagingFolder/build_logs") }
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/coverageResults.ps1
PowerShell
$RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") $coverageFiles = @(Get-ChildItem "$RepoRoot/test/*.cobertura.xml" -Recurse | Where {$_.FullName -notlike "*/In/*" -and $_.FullName -notlike "*\In\*" }) # Prepare code coverage reports for merging on another machine $repoRoot = $env:SYSTEM_DEFAULTWORKIN...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/deployables.ps1
PowerShell
$RepoRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..") $BuildConfiguration = $env:BUILDCONFIGURATION if (!$BuildConfiguration) { $BuildConfiguration = 'Debug' } $PackagesRoot = "$RepoRoot/bin/Packages/$BuildConfiguration" if (!(Test-Path $PackagesRoot)) { return } @{ "$PackagesRoot" = (Get-ChildIt...
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft
tools/artifacts/projectAssetsJson.ps1
PowerShell
$ObjRoot = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\obj") if (!(Test-Path $ObjRoot)) { return } @{ "$ObjRoot" = ( (Get-ChildItem "$ObjRoot\project.assets.json" -Recurse) ); }
AArnott/Nerdbank.JsonRpc
0
A PolyType-based, NativeAOT ready JSON-RPC implementation
C#
AArnott
Andrew Arnott
Microsoft