Skip to content

Instantly share code, notes, and snippets.

View teneko's full-sized avatar

Teneko teneko

View GitHub Profile
@teneko
teneko / discord-badge.json
Last active February 19, 2021 10:15
SCUMSLang Badges
{
"schemaVersion":1,
"label":"Discord",
"message":"Join",
"color":"#7289DA",
"cacheSeconds":300,
"namedLogo": "discord"
}
@teneko
teneko / nuget-badge.json
Last active August 7, 2020 07:29
Teronis.DotNet Badges
{
"schemaVersion":1,
"label":"NuGet",
"message":"Packages",
"color":"blue",
"cacheSeconds":1800,
"namedLogo": "nuget"
}
@teneko
teneko / MSBuild Variables Format
Last active August 5, 2020 10:12
Shadow Copy & Link
$(MSBuildProjectDirectory): NO trailing slash
$(MSBuildThisFileDirectory): HAS trailing slash
@teneko
teneko / Get All Projects And Manipulate
Last active August 3, 2020 02:49
MSBuild/NuGet Playground
<!--
=====================================================
BuildEachTargetFramework
Builds project for each TargetFramework. It is called
from synthetic projects.
Target _GetTargetFrameworksOutput belongs to
https://github.com/NuGet/NuGet.Client/blob/c05f9afa9c2fcee7fbe10754521b3f6424bee128/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.targets#L98
=====================================================
@teneko
teneko / Directory.Build.targets
Created December 29, 2019 10:08
Allow project reference DLLs to be added to the parent nupkg for pack target. It does take regard of sub folders that is relevant especially for satellite assemblies.
<Project>
<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<!-- Filter out unnecessary files -->
<_ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))"/>
</ItemGroup>
@teneko
teneko / .editorconfig
Last active July 30, 2019 09:26
My preferred Visual Studio EditorConfig for CSharp (C#)
# Add new options at the end of this file
root = true
# All files
[*]
indent_style = space
# Code files
[*.{cs,csx,vb,vbx}]