Skip to content

Instantly share code, notes, and snippets.

View dsplaisted's full-sized avatar

Daniel Plaisted dsplaisted

View GitHub Profile
@dsplaisted
dsplaisted / Providing Binary Logs.md
Last active April 29, 2019 19:45
Providing Binary Logs

MSBuild Binary Logs

MSBuild has the ability to capture a detailed binary log file. If you are having a build issue and are able to provide a binary log, this will be very helpful for us to investigate the issue.

However, you should be aware of the type of information captured in the binary log to make sure you are not inadvertently sharing more than you intend. The binary log captures pretty much everything your build does, including the contents of your project files and any files (such as .props and .targets) that they import, all tasks that are run during the build as well as the input and output, as well as all environment variables. It generally won't include the contents of the source files that are compiled, but it will capture their full names and paths.

⚠ NOTE: some build environments make secrets available via environment variables. Before sharing a binary log, make sure it does not expose API tokens or other important secrets.

You can create a binary log by passing the /bl parameter to M

@dsplaisted
dsplaisted / MSBuild.md
Last active November 26, 2023 15:52
NDC Oslo 2017 MSBuild presentation info
@echo off
title SDK Build
set PATH=C:\git\dotnet-sdk\.dotnet_cli;%PATH%
set /P SDK_CLI_VERSION=<C:\git\dotnet-sdk\DotnetCLIVersion.txt
rem set DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR=C:\git\dotnet-sdk\.dotnet_cli\sdk\%SDK_CLI_VERSION%\Sdks
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
@dsplaisted
dsplaisted / Reference Assembly NuGet packages.md
Created April 11, 2017 22:37
Reference Assembly NuGet packages

Reference Assembly NuGet packages

Scenarios

  • Build a project which is multi-targeted to .NET Core or .NET Standard as well as .NET Framework on Mac OS or Linux using the .NET CLI
  • Build a project targeting Mono (which uses the same Target Framework Identifier as .NET Framework) using the .NET CLI

Design

  • There will be separate NuGet packages with reference assemblies for each version of .NET Framework. This means that projects targeting a single version of .NET Framework don't need to download and spend disk space on the reference assemblies and intellisense files for all the other possible versions of .NET Framework. It also means that when a new version of .NET Framework is released, the reference assemblies for the previous versions don't need to be re-shipped in an updated package along with the new assemblies.

Below are the links from my lightning talk at .NET Unboxed on "How to be more inclusive in tech". I also gave this talk at .NET Fringe 2016, and the recording is now available (unfortunately due to technical difficulties I had to go without my slides).

@dsplaisted
dsplaisted / gist:bed0942222ae24a56ea7
Created September 24, 2015 00:41
cinst scriptcs failure
C:\WINDOWS\system32>cinst scriptcs -pre -source https://www.myget.org/F/scriptcsnightly/
Chocolatey v0.9.9.8
Installing the following packages:
scriptcs
By installing you accept licenses for the packages.
scriptcs v0.15.0-nightly-150908
The package scriptcs wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider setting
@dsplaisted
dsplaisted / Evolve2014Links.md
Last active August 29, 2015 14:07
Links from Xamarin Evolve 2014 session: Target all the Platforms with this One Awesome Trick
"Regardless of gender, all of us have been sexist before and will probably be again, as sexism, like racism, is unconscious and related to the values we internalize in our societies growing up. If someone tells you you are being sexist or racist, it is not a slur against your character, but an opportunity to learn more about yourself and others. We should all be interested in continuing to read, learn and share with those around us." - Leigh Alexander
[Coding Like a Girl](https://medium.com/@sailorhg/coding-like-a-girl-595b90791cce) - sailor mercury
[No skin thick enough: The daily harassment of women in the game industry](http://www.polygon.com/2014/7/22/5926193/women-gaming-harassment) - Brianna Wu
[But WHAT CAN BE DONE: Dos and Don’ts To Combat Online Sexism](http://leighalexander.net/but-what-can-be-done-dos-and-donts-to-combat-online-sexism/) - Leigh Alexander
[On the Wadhwa Within, and Leaving](https://medium.com/@kelseyinnis/on-the-wadhwa-within-and-leaving-4694d02111e0)
[Geek Feminism Wiki](http://ge
@dsplaisted
dsplaisted / gist:11199894
Last active August 29, 2015 14:00
Miguel de Icaza answers questions on the .NET Foundation, Moonlight, and OSS licensing

Miguel de Icaza answers questions on the .NET Foundation, Moonlight, and OSS licensing

Source: .NET Community & Open Source discussion at Build 2014.

17:15

Q: What would the .NET Foundation look like if it’s successful in one or two years?

Miguel: I think that what we want is to energize the existing .NET community. So there’s a lot of .NET developers. We want to talk about things, we want to energize them. We want to create a very healthy ecosystem around the .NET platform, and Mono of course, of software that people use.