View PublicKey.bat
@echo off
:: PublicKey <file>
set dll=%1
if not exist "%dll%" (
goto notfound
)
set pubkey=pubkey_%random%%random%.snk
View 01nsbin.ps1
# 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 <<<<...
View reloadProjects.cs
//#[($(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
{
View msbuild.bat
@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.
View gnt.bat
@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%
View msiextr.cmd
@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 # ~
View CalculateOrder.cs
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
{
View CfgNLog.cs
/*
* 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;
View act.cs
using ICommand = net.r_eg.vsSBE.Actions.ICommand;
using ISolutionEvent = net.r_eg.vsSBE.Events.ISolutionEvent;
namespace vsSolutionBuildEvent
{
public class CSharpMode
{
public static int Init(ICommand cmd, ISolutionEvent evt)
{
return 0;
View Sample.sln.msbuild.targets
<?xml version="1.0" encoding="utf-8"?>
<!--
Illustrates solution-wide PRE/POST 'events' for build-operations from Visual Studio IDE (i.e. primary from VS IDE and msbuild.exe as optional)
Alternative for IVsUpdateSolutionEvents2/IVsUpdateSolutionEvents etc.
-
Variant 3: based on idea 'Map of projects'.
Problems for this variant:
* Unavailable projects - for example, if user clicked on 'Unload Project' in Solution Explorer.
However, it's trivial and not related as main bug.. This should be resolved with 'Reload Project'.
-