Skip to content

Commit 597f9fc

Browse files
committed
Imported from 084635c250445bbe2aa67ce2f65108724e2e2d44
https://github.com/3F/vsSolutionBuildEvent
1 parent b9eb93f commit 597f9fc

41 files changed

Lines changed: 5227 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
# Specific
2+
3+
/SobaScript.Z.ExtTest/Appveyor.TestLogger*
4+
5+
# ...
6+
7+
## Ignore Visual Studio temporary files, build results, and
8+
## files generated by popular Visual Studio add-ons.
9+
10+
# User-specific files
11+
*.suo
12+
*.user
13+
*.userosscache
14+
*.sln.docstates
15+
16+
# User-specific files (MonoDevelop/Xamarin Studio)
17+
*.userprefs
18+
19+
# Build results
20+
[Dd]ebug/
21+
[Dd]ebugPublic/
22+
[Rr]elease/
23+
[Rr]eleases/
24+
[Xx]64/
25+
[Xx]86/
26+
[Bb]uild/
27+
bld/
28+
[Bb]in/
29+
[Oo]bj/
30+
31+
# Visual Studio 2015 cache/options directory
32+
.vs/
33+
# Uncomment if you have tasks that create the project's static files in wwwroot
34+
#wwwroot/
35+
36+
# MSTest test Results
37+
[Tt]est[Rr]esult*/
38+
[Bb]uild[Ll]og.*
39+
40+
# NUNIT
41+
*.VisualState.xml
42+
TestResult.xml
43+
44+
# Build Results of an ATL Project
45+
[Dd]ebugPS/
46+
[Rr]eleasePS/
47+
dlldata.c
48+
49+
# DNX
50+
project.lock.json
51+
artifacts/
52+
53+
*_i.c
54+
*_p.c
55+
*_i.h
56+
*.ilk
57+
*.meta
58+
*.obj
59+
*.pch
60+
*.pdb
61+
*.pgc
62+
*.pgd
63+
*.rsp
64+
*.sbr
65+
*.tlb
66+
*.tli
67+
*.tlh
68+
*.tmp
69+
*.tmp_proj
70+
*.log
71+
*.vspscc
72+
*.vssscc
73+
.builds
74+
*.pidb
75+
*.svclog
76+
*.scc
77+
78+
# Chutzpah Test files
79+
_Chutzpah*
80+
81+
# Visual C++ cache files
82+
ipch/
83+
*.aps
84+
*.ncb
85+
*.opendb
86+
*.opensdf
87+
*.sdf
88+
*.cachefile
89+
*.VC.db
90+
91+
# Visual Studio profiler
92+
*.psess
93+
*.vsp
94+
*.vspx
95+
*.sap
96+
97+
# TFS 2012 Local Workspace
98+
$tf/
99+
100+
# Guidance Automation Toolkit
101+
*.gpState
102+
103+
# ReSharper is a .NET coding add-in
104+
_ReSharper*/
105+
*.[Rr]e[Ss]harper
106+
*.DotSettings.user
107+
108+
# JustCode is a .NET coding add-in
109+
.JustCode
110+
111+
# TeamCity is a build add-in
112+
_TeamCity*
113+
114+
# DotCover is a Code Coverage Tool
115+
*.dotCover
116+
117+
# NCrunch
118+
_NCrunch_*
119+
.*crunch*.local.xml
120+
nCrunchTemp_*
121+
122+
# MightyMoose
123+
*.mm.*
124+
AutoTest.Net/
125+
126+
# Web workbench (sass)
127+
.sass-cache/
128+
129+
# Installshield output folder
130+
[Ee]xpress/
131+
132+
# DocProject is a documentation generator add-in
133+
DocProject/buildhelp/
134+
DocProject/Help/*.HxT
135+
DocProject/Help/*.HxC
136+
DocProject/Help/*.hhc
137+
DocProject/Help/*.hhk
138+
DocProject/Help/*.hhp
139+
DocProject/Help/Html2
140+
DocProject/Help/html
141+
142+
# Click-Once directory
143+
publish/
144+
145+
# Publish Web Output
146+
*.[Pp]ublish.xml
147+
*.azurePubxml
148+
149+
# TODO: Un-comment the next line if you do not want to checkin
150+
# your web deploy settings because they may include unencrypted
151+
# passwords
152+
#*.pubxml
153+
*.publishproj
154+
155+
# NuGet Packages
156+
*.nupkg
157+
# The packages folder can be ignored because of Package Restore
158+
**/packages/*
159+
# except build/, which is used as an MSBuild target.
160+
!**/packages/build/
161+
# Uncomment if necessary however generally it will be regenerated when needed
162+
#!**/packages/repositories.config
163+
# NuGet v3's project.json files produces more ignoreable files
164+
*.nuget.props
165+
*.nuget.targets
166+
167+
# Microsoft Azure Build Output
168+
csx/
169+
*.build.csdef
170+
171+
# Microsoft Azure Emulator
172+
ecf/
173+
rcf/
174+
175+
# Microsoft Azure ApplicationInsights config file
176+
ApplicationInsights.config
177+
178+
# Windows Store app package directory
179+
AppPackages/
180+
BundleArtifacts/
181+
182+
# Visual Studio cache files
183+
# files ending in .cache can be ignored
184+
*.[Cc]ache
185+
# but keep track of directories ending in .cache
186+
!*.[Cc]ache/
187+
188+
# Others
189+
ClientBin/
190+
[Ss]tyle[Cc]op.*
191+
~$*
192+
*~
193+
*.dbmdl
194+
*.dbproj.schemaview
195+
*.pfx
196+
*.publishsettings
197+
node_modules/
198+
orleans.codegen.cs
199+
200+
# RIA/Silverlight projects
201+
Generated_Code/
202+
203+
# Backup & report files from converting an old project file
204+
# to a newer Visual Studio version. Backup files are not needed,
205+
# because we have git ;-)
206+
_UpgradeReport_Files/
207+
Backup*/
208+
UpgradeLog*.XML
209+
UpgradeLog*.htm
210+
211+
# SQL Server files
212+
*.mdf
213+
*.ldf
214+
215+
# Business Intelligence projects
216+
*.rdl.data
217+
*.bim.layout
218+
*.bim_*.settings
219+
220+
# Microsoft Fakes
221+
FakesAssemblies/
222+
223+
# GhostDoc plugin setting file
224+
*.GhostDoc.xml
225+
226+
# Node.js Tools for Visual Studio
227+
.ntvs_analysis.dat
228+
229+
# Visual Studio 6 build log
230+
*.plg
231+
232+
# Visual Studio 6 workspace options file
233+
*.opt
234+
235+
# Visual Studio LightSwitch build output
236+
**/*.HTMLClient/GeneratedArtifacts
237+
**/*.DesktopClient/GeneratedArtifacts
238+
**/*.DesktopClient/ModelManifest.xml
239+
**/*.Server/GeneratedArtifacts
240+
**/*.Server/ModelManifest.xml
241+
_Pvt_Extensions
242+
243+
# LightSwitch generated files
244+
GeneratedArtifacts/
245+
ModelManifest.xml
246+
247+
# Paket dependency manager
248+
.paket/paket.exe
249+
250+
# FAKE - F# Make
251+
.fake/
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2014-2019 Denis Kuzmin < x-3F@outlook.com > GitHub/3F
5+
* Copyright (c) SobaScript.Z.Ext contributors: https://github.com/3F/Varhead/graphs/contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
26+
using System.Collections.Generic;
27+
using System.IO;
28+
using System.Text;
29+
30+
namespace net.r_eg.SobaScript.Z.Ext.Extensions
31+
{
32+
public static class ArrayExtension
33+
{
34+
/// <summary>
35+
/// To format bytes data to hex view.
36+
/// </summary>
37+
/// <param name="data">Bytes data.</param>
38+
/// <returns>Hex view of bytes.</returns>
39+
internal static string BytesToHexView(this byte[] data)
40+
{
41+
StringBuilder ret = new StringBuilder();
42+
43+
foreach(byte b in data) {
44+
ret.Append(b.ToString("X2"));
45+
}
46+
47+
return ret.ToString();
48+
}
49+
50+
/// <summary>
51+
/// Extracts absolute paths to files with mask (*.*, *.dll, ..)
52+
/// </summary>
53+
/// <param name="files">List of files.</param>
54+
/// <param name="basePath"></param>
55+
/// <returns></returns>
56+
public static string[] ExtractFiles(this string[] files, string basePath)
57+
{
58+
var ret = new List<string>();
59+
foreach(string file in files)
60+
{
61+
string mask = Path.GetFileName(file);
62+
string fullname = Path.Combine(basePath, file);
63+
64+
if(mask.IndexOf('*') != -1) {
65+
ret.AddRange(Directory.GetFiles(Path.GetDirectoryName(fullname), mask));
66+
continue;
67+
}
68+
ret.Add(fullname);
69+
}
70+
return ret.ToArray();
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)