-
SOME STARTING NOTE
(a) Some specific section header
-
ANOTHER STARTING NOTE
a. Section subheader
i. Sub sub header
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"FirstName": { | |
"type": "string" | |
}, | |
"LastName": { | |
"type": "string" | |
}, |
<html> | |
<head><title>test</title></head> | |
<body> | |
<div> This is some text with <b>bolding</b></div> | |
<div> But when representing code in html you use 'pre' like this</div> | |
<div><pre>public class Foo { }</pre></div> | |
</body> | |
</html> |
{ | |
"name": ".NET with Aspire", | |
"image": "mcr.microsoft.com/dotnet/sdk:8.0", | |
"features": { | |
"ghcr.io/devcontainers/features/docker-in-docker:2": {}, | |
"ghcr.io/devcontainers/features/github-cli:1": { | |
"version": "2" | |
}, | |
"ghcr.io/devcontainers/features/powershell:1": { | |
"version": "latest" |
SOME STARTING NOTE
(a) Some specific section header
ANOTHER STARTING NOTE
a. Section subheader
i. Sub sub header
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { | |
if (changeInfo.status == 'complete') { | |
console.log("Completed tab was loaded, injecting content.js"); | |
chrome.scripting.executeScript( | |
{ | |
target: {tabId: tabId}, | |
files: ['content.js'] | |
} | |
); | |
} |
static class TokenHelper | |
{ | |
public static int EstimateTokenSize(this string text) | |
{ | |
// Calculate the word count by splitting the text by spaces | |
int wordCount = text.Split(" ").Length; | |
// Calculate the character count by getting the length of the text | |
int charCount = text.Length; |
[Function(nameof(GetLiveChannels))] | |
public async Task<HttpResponseData> GetLiveChannels( | |
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequestData req, | |
ILogger log | |
) | |
{ | |
var formData = new FormReader(req.Body); | |
// There is no Form property. How do we access the HTTP POST content? | |
var channelIds = formData.GetValue("ChannelIdCsv").ToString().Split(','); |
name: build_deploy_aks | |
on: | |
push: | |
paths: | |
- "azure-vote/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code |
using System.Net; | |
using System.Net.Http.Json; | |
using Microsoft.AspNetCore.Mvc.Testing; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Storage; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.VisualStudio.TestPlatform.TestHost; | |
using Xunit; |
The Visual Studio 'project properties' UI provides easy modification of lots of properties for the project, assembly, and packaging capabilities (note: packaging means DLL, EXE, and NuGet packages).
In .NET Framework, VS provided a UI for Assembly Information:
This translates in .NET Framework projects to (by default) an AssemblyInfo.cs (in Properties\AssemblyInfo.cs by default) and writes out the specific AssemblyAttribute (e.g., AssemblyTitleAttribute. It looks like this with the values in the UI from above:
[assembly: AssemblyTitle("This is the file description")]
[assembly: AssemblyDescription("This is a description but actually a Comment")]
[assembly: AssemblyConfiguration("")]