Skip to content

Commit 43df9f7

Browse files
committed
Add Management pack and samples
1 parent 364595d commit 43df9f7

39 files changed

+3800
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# Secrets
11+
*.snk
12+
13+
# User-specific files (MonoDevelop/Xamarin Studio)
14+
*.userprefs
15+
16+
# Management Pack Projects
17+
/ManagementPacks/**/MPResources.resources
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+
# Windows Store app package directory
176+
AppPackages/
177+
BundleArtifacts/
178+
179+
# Visual Studio cache files
180+
# files ending in .cache can be ignored
181+
*.[Cc]ache
182+
# but keep track of directories ending in .cache
183+
!*.[Cc]ache/
184+
185+
# Others
186+
ClientBin/
187+
[Ss]tyle[Cc]op.*
188+
~$*
189+
*~
190+
*.dbmdl
191+
*.dbproj.schemaview
192+
*.pfx
193+
*.publishsettings
194+
node_modules/
195+
orleans.codegen.cs
196+
197+
# RIA/Silverlight projects
198+
Generated_Code/
199+
200+
# Backup & report files from converting an old project file
201+
# to a newer Visual Studio version. Backup files are not needed,
202+
# because we have git ;-)
203+
_UpgradeReport_Files/
204+
Backup*/
205+
UpgradeLog*.XML
206+
UpgradeLog*.htm
207+
208+
# SQL Server files
209+
*.mdf
210+
*.ldf
211+
212+
# Business Intelligence projects
213+
*.rdl.data
214+
*.bim.layout
215+
*.bim_*.settings
216+
217+
# Microsoft Fakes
218+
FakesAssemblies/
219+
220+
# GhostDoc plugin setting file
221+
*.GhostDoc.xml
222+
223+
# Node.js Tools for Visual Studio
224+
.ntvs_analysis.dat
225+
226+
# Visual Studio 6 build log
227+
*.plg
228+
229+
# Visual Studio 6 workspace options file
230+
*.opt
231+
232+
# Visual Studio LightSwitch build output
233+
**/*.HTMLClient/GeneratedArtifacts
234+
**/*.DesktopClient/GeneratedArtifacts
235+
**/*.DesktopClient/ModelManifest.xml
236+
**/*.Server/GeneratedArtifacts
237+
**/*.Server/ModelManifest.xml
238+
_Pvt_Extensions
239+
240+
# LightSwitch generated files
241+
GeneratedArtifacts/
242+
ModelManifest.xml
243+
244+
# Paket dependency manager
245+
.paket/paket.exe
246+
247+
# FAKE - F# Make
248+
.fake/

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "PowerShell",
6+
"request": "launch",
7+
"name": "PowerShell Launch (current file)",
8+
"script": "${file}",
9+
"args": [],
10+
"cwd": "${file}"
11+
},
12+
{
13+
"type": "PowerShell",
14+
"request": "attach",
15+
"name": "PowerShell Attach to Host Process",
16+
"processId": "${command:PickPSHostProcess}",
17+
"runspaceId": 1
18+
},
19+
{
20+
"type": "PowerShell",
21+
"request": "launch",
22+
"name": "PowerShell Interactive Session",
23+
"cwd": "${workspaceRoot}"
24+
}
25+
]
26+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"**/.git": true,
5+
"**/.svn": true,
6+
"**/.hg": true,
7+
"**/.DS_Store": true,
8+
"node_modules": true,
9+
".vs":true
10+
}
11+
}

.vscode/tasks.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "0.1.0",
5+
"command": "C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\msbuild.exe",
6+
"args": [
7+
// Ask msbuild to generate full paths for file names.
8+
"/property:GenerateFullPaths=true",
9+
//Build in release x86 config
10+
"/property:Configuration=Release",
11+
"/property:Platform=x86"
12+
],
13+
// Show the output window only if unrecognized errors occur.
14+
"showOutput": "silent",
15+
"suppressTaskName": true,
16+
// Use the standard MS compiler pattern to detect errors, warnings and infos
17+
"problemMatcher": "$msCompile",
18+
"tasks": [
19+
{
20+
"taskName": "Build Solution",
21+
"isBuildCommand": true,
22+
"args": [
23+
".\\ManagementPacks\\Community.PowerShellTemplates\\Community.PowerShellTemplates.sln"
24+
]
25+
},
26+
{
27+
"taskName": "Clean Solution",
28+
"args":[
29+
"/t:Clean"
30+
]
31+
},
32+
{
33+
"taskName": "Rebuild Solution",
34+
"args":[
35+
"/t:Rebuild"
36+
]
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)