This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM passing Newtonsoft.Json.dll 13.0.0.0 works fine and results in the expected: | |
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM arning CS8785: Generator 'Generator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentNullException' with message 'Value cannot be null. | |
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Parameter name: source' | |
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM | |
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Loaded modules: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection.Metadata; | |
using System.Reflection.PortableExecutable; | |
Console.WriteLine(IsNullableEnabledAtBuild(@"C:\Users\jaredpar\temp\console\bin\Debug\net7.0\console.dll", out var reason)); | |
Console.WriteLine(reason); | |
static bool IsNullableEnabledAtBuild(string assemblyFilePath, out string? reason) | |
{ | |
MetadataReaderProvider? pdbReaderProvider = null; | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.Console.exe' 'Recursive=True;CleanupAssetsForUnsupportedProjects=True;DisableParallel=False;Force=False;ForceEvaluate=False;HideWarningsAndErrors=False;IgnoreFailedSources=False;Interactive=False;NoCache=False;RestorePackagesConfig=False" "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "C:\Users\jaredpar\code\roslyn\Roslyn.sln" "ContinuousIntegrationBuild=False;TreatWarningsAsErrors=False;Configuration=Debug;RepoRoot=C:\Users\jaredpar\code\roslyn\;Rebuild=False;OfficialBuildId=;RunAnalyzersDuringBuild=False;BootstrapBuildPath=;EnableNgenOptimization=False;IbcOptimizationDataDir=C:\Users\jaredpar\code\roslyn\.o%5c;RestoreUseStaticGraphEvaluation=True;VisualStudioIbcDrop=;VisualStudioDropAccessToken=;IsNpmPackable=True;DeployExtension=false;VersionsPropsPath=C:\Users\jaredpar\code\roslyn\eng\Versions.props;VCTargetsPath=C:\Program Files\Microsoft V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is gonna be complicated. | |
1. I assume you are using an hp desktop? I think thats what the company gets ppl nowadays | |
2. As sam says, you must disable bitlocker before mucking around | |
with that out of the way you need to ensure you check all these boxes | |
1. you have a TPU installed on your machine and its enabled: | |
- Turn on the computer and press the f10 key to start to the BIOS setup menu. | |
- On the Security tab, check whether your TPM Device status is Hidden. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Security.Claims; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.Cookies; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Services | |
.AddAuthentication(o => | |
{ | |
o.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Jobs; | |
using BenchmarkDotNet.Running; | |
var summary = BenchmarkRunner.Run(typeof(DelegateInvocationBenchmark).Assembly); | |
[SimpleJob(RuntimeMoniker.Net70)] | |
[SimpleJob(RuntimeMoniker.Net472)] | |
public class DelegateInvocationBenchmark | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System | |
Module Program | |
Sub Main() | |
Dim e = ConversionKind.DelegateRelaxationLevelNone | |
Console.WriteLine(e.ToString()) | |
End Sub | |
End Module | |
<Flags()> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Parse-Channels([string]$repo) { | |
$output = Invoke-Expression "& darc get-default-channels --source-repo $repo" | |
$map = @{ } | |
foreach ($line in $output) { | |
$parts = $line.Split('@') | |
$repoUrl = $parts[0].Split(' ')[1].Trim() | |
if (-not $repoUrl.EndsWith($repo)) { | |
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<PropertyGroup> | |
<AllowUnsafeBlocks Condition="'$(Unsafe)' != ''">$(Unsafe)</AllowUnsafeBlocks> | |
</PropertyGroup> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection.Emit; | |
using System.Runtime.CompilerServices; | |
using System.Threading.Tasks; | |
#nullable disable | |
// The stand up link https://www.youtube.com/watch?v=jaPk6Nt33KM | |
// String vs. string |
NewerOlder