Skip to content

Instantly share code, notes, and snippets.

View Xeinaemm's full-sized avatar
✌️
Greetings

Piotr Czech Xeinaemm

✌️
Greetings
View GitHub Profile
; **git-specific
::gs::git status
::gl::git ll
::glo::git log --oneline
::gsh::git show
::gtg::git tag -a
::gd::git diff
::gdt::git difftool
::gmt::git mergetool
@Xeinaemm
Xeinaemm / settings.json
Created February 9, 2021 12:23
Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles":
{
"defaults":
{
"colorScheme": "Dracula",
@Xeinaemm
Xeinaemm / .gitconfig
Last active August 29, 2022 20:13
git setup
[diff]
tool = vsdiffmerge
[merge]
tool = vsdiffmerge
[mergetool "vscode"]
cmd = code --wait $MERGED
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[difftool]
prompt = true
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Jarvis.All" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="RemoveRuntimeNode" AssemblyFile="$([MSBuild]::ValueOrDefault('$(XeinaemmSdkPath)', '$(MSBuildThisFileDirectory)..\lib\netstandard2.0\Xeinaemm.Sdk.dll'))" />
<Target Name="RemoveConfigRuntimeNode" BeforeTargets="ResolveAssemblyReferences" Condition="Exists('$(MSBuildProjectDirectory)\Web.config')">
<RemoveRuntimeNode ConfigFilePath="$(MSBuildProjectDirectory)\Web.config" />
</Target>
</Project>
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.Build.Utilities;
public class RemoveRuntimeNode : Task
{
public string ConfigFilePath { get; set; }
public override bool Execute()
project.csproj
lib
$(TargetFramework)
project.dll
Sdk
Sdk.props
Sdk.targets
*.cs
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.52" />
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PackNugets" AfterTargets="AfterBuild">
<Exec Command="dotnet pack &quot;$(MSBuildProjectDirectory)&quot; --no-build -o C:\NugetSource -c $(Configuration)"/>
</Target>
</Project>