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
made with ❤ love to opensource, github, and tea ☕ | |
-- Denis Kuzmin |
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
<!-- https://ko-fi.com/post/ILMerge-and-other-related-3rd-party-tool-for--NET-Y8Y71FVU4 --> | |
... | |
<!-- For .NET DllExport 1.7 --> | |
<Target Name="Merging" BeforeTargets="DllExportMod"> | |
<Copy SourceFiles="$(DllExportMetaLibFullPath)" | |
DestinationFolder="$(TargetDir)" | |
SkipUnchangedFiles="true" | |
OverwriteReadOnlyFiles="true" /> |
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
@echo off | |
:: PublicKey <.dll or .snk or .pfx> | |
set file=%1 & set ext=%~x1 | |
if not exist %file% goto notfound | |
if "%ext%"==".dll" ( | |
call sn -q -Tp %file% || goto err | |
goto exit | |
) |
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
# Modification of binary assemblies. Format and specification: | |
# | |
# https://github.com/3F/DllExport/issues/2#issuecomment-231593744 | |
# | |
# Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
# | |
# 000005B0 00 C4 7B 01 00 00 00 2F 00 12 05 .Д{..../... | |
# 000005C0 00 00 02 00 00 00 00 00 00 00 00 00 00 00 26 00 ..............&. | |
# 000005D0 20 02 00 00 00 00 00 00 00 44 33 46 30 30 46 46 ........D3F00FF <<<< | |
# 000005E0 31 37 37 30 44 45 44 39 37 38 45 43 37 37 34 42 1770DED978EC774B <<<<... |
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
//#[($(ProjectDir:Conari) == "*Undefined*" && ( $(BuildingInsideVisualStudio) || $(VSIDE) || $(DevEnvDir) != "*Undefined*") ) { | |
using System; | |
using Microsoft.VisualStudio; | |
using Microsoft.VisualStudio.Shell.Interop; | |
using ICommand = net.r_eg.vsSBE.Actions.ICommand; | |
using ISolutionEvent = net.r_eg.vsSBE.Events.ISolutionEvent; | |
namespace vsSolutionBuildEvent | |
{ |
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
@echo off | |
setlocal enableDelayedExpansion | |
:: The MSBuild-helper. Part of GetNuTool | |
:: https://github.com/3F/GetNuTool | |
:: arguments: | |
:: | |
:: msbuild -notamd64 <args> - to select x86 instance instead of x64 if it's possible. | |
:: msbuild <args> - to select any available instance. |
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
@echo off | |
:: GetNuTool - Executable version | |
:: Copyright (c) 2015-2016 Denis Kuzmin [ entry.reg@gmail.com ] | |
:: https://github.com/3F/GetNuTool | |
set gntcore=gnt.core | |
set tgnt="%temp%\%random%%random%%gntcore%" | |
set args=%* | |
set a=%args:~0,30% |
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
@echo off | |
set in=%1 | |
set fpath=%in:~1,-1% | |
set odir=%fpath:~0,-4%_msi | |
echo extract into %odir% ... | |
msiexec /a "%fpath%" /qb TARGETDIR="%odir%" | |
REM # ~ |
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.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using ICommand = net.r_eg.vsSBE.Actions.ICommand; | |
using ISolutionEvent = net.r_eg.vsSBE.Events.ISolutionEvent; | |
namespace vsSolutionBuildEvent | |
{ |
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
/* | |
* Example of NLog initialization with bug fixes from other assemblies if exists: | |
* 1. if another used the NLog.Config.SimpleConfigurator. | |
* 2. if target from another has been configured as "*" (optional bug) | |
*/ | |
using NLog; | |
using NLog.Config; | |
using NLog.Filters; | |
using NLog.Targets; |
NewerOlder