xtqqczze
883ca98dd7
Seal private classes ( #15725 )
...
* Seal private classes
* Fix CS0509
* Fix CS0628
2021-07-19 14:09:12 +05:00
xtqqczze
9d4665f32f
Enable SA1003: Symbols should be spaced correctly ( #14476 )
...
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md
2020-12-23 21:21:26 +05:00
xtqqczze
c7bdb24ff3
Mark local variable as const ( #13217 )
...
RCS1118: Mark local variable as const https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1118.md
2020-11-24 20:06:16 +05:00
xtqqczze
fa8b94e6e9
Fix SA1122: Use string.Empty for empty strings ( #14218 )
...
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1122.md
2020-11-23 14:09:20 +05:00
xtqqczze
d92984106a
Enable SA1507: Code should not contain multiple blank lines in a row ( #14136 )
...
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
2020-11-20 16:17:45 +05:00
xtqqczze
fc15daaccb
Enable IDE0036: OrderModifiers ( #13958 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0036
2020-11-02 08:27:23 +05:00
Ilya
68d46c1792
Refactor command line parser to do early parsing ( #11482 )
2020-08-12 09:58:46 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Robert Holt
14960b5772
pwsh -Login support ( #10050 )
2019-08-14 13:18:43 -07:00
Ilya
1be3f4cc0e
Style: Add the ending period to the XML document texts ( #8577 )
2019-01-05 15:40:24 -08:00
Steve Lee
c1c5344a88
Update copyright and license headers ( #6134 )
...
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files.
Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks.
Separate PR coming to update contribution document for new source files: #6140
Manually reviewed each change.
Fix #6073
2018-02-13 09:23:53 -08:00
Steve Lee
4bc52d2358
Use consistent '(c)' for copyright symbol ( #5210 )
...
- Remove the year about copyright
- Fix casing of `All rights reserved`
- Replace Unicode characters representing single quote with a single quote
2017-10-26 14:12:19 -07:00
Dongbo Wang
8ae6c5bb3b
Refactor PowerShell Core to use the default CoreCLR loader instead ( #3903 )
...
Remove the code that spins up our own assembly load context. Keep the code that registers our `Resolve` method to the default loader's `Resolving` event, so that we can continue to do special assembly resolution as needed (such as the GAC probing logic needed for consuming FullCLR PS modules).
Essentially, the assembly `Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll` is not needed anymore, the remaining code should be moved to S.M.A.dll. However, that will break DSC and other native hosts that are hosting powershell. So this assembly is kept for now.
2017-06-05 20:59:30 -07:00
Dongbo Wang
54cb65bbf2
Move *.csproj files to PowerShell/src/vs-csproj and PowerShell/test/vs-csproj to avoid confusing the latest dotnet.exe.
...
If a *.csproj file is in a project directory, the latest dotnet.exe will use it, instead of the project.json file, to build the project.
2016-10-21 14:12:10 -07:00
Jason Shirk
8b056776c0
Stop using 'Open PowerShell' and OPS in code ( #1838 )
2016-08-16 17:03:34 -07:00
Sergei Vorobev
c76651e850
Update .gitignore files
2016-07-24 09:17:22 -07:00
Sergei Vorobev
875402ad53
Create separate Top-level directory per platform
...
- Replace src\powershell top level project by two
new root-level projects:
- src\powershell-unix
- src\powershell-windows
- Break src\Modules into more granular structure:
- Shared
- Windows+Unix-Core
- Windows-Core
- Windows-Core+Full
- Windows-Full
- To be created: Unix-Core. We will do it as a separate PR
- Fix #1122 : Platform-specific set of Modules (and assemblies)
- Fix Start-TypeGen to work with new top level folders layout
2016-07-22 16:11:29 -07:00
Andrew Schwartzmeyer
b6f26ad7cc
Enable XML documentation generation
...
This is enabled for PowerShell projects, but not PackageManagment,
WSMan, Cim, or MMI.
2016-07-18 18:40:42 -07:00
Jason Shirk (POWERSHELL)
efc83bbaa2
Add csproj files and sln for editing but not building
2016-07-05 10:27:41 -07:00
Sergei Vorobev
44c98fa946
Remove extra comma in powershell/project.json
2016-07-01 14:04:55 -07:00
Sergei Vorobev
1a98407ee2
Fix Pester call for FullCLR from appveyor.yml
2016-07-01 13:16:52 -07:00
Sergei Vorobev
afbf9dd2e1
Update project.json files to take Modules only from src/Modules
2016-07-01 12:20:48 -07:00
Sergei Vorobev
0c2ed6f124
Update Modules map.json files
2016-07-01 12:20:48 -07:00
Sergei Vorobev
7e9fcaef29
Move modules for Core in Module/Core
2016-07-01 12:20:48 -07:00
Sergei Vorobev
c1d1b52869
Exclude map.json files from copyToOutput and publishOptions
2016-07-01 12:20:48 -07:00
Andrew Schwartzmeyer
2360d1ef46
Filter runtime assemblies out of custom context
2016-06-28 19:19:55 -07:00
Dongbo Wang
ca28391b38
Fix it for 'dotnet build' scenario
2016-06-28 18:31:38 -07:00
Dongbo Wang
66dcd00d93
Make AssemblyLoadContext a singleton and refactor
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
6356a5a778
Mimic InitializeDefaultLoadContext
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
10ea1733e9
Update to .NET Core 1.0 packages
2016-06-27 15:30:47 -07:00
Sergei Vorobev
7498c20aa3
build.psm1 changes for Activities dlls
...
- Add Start-PSBuild -Clean
- Normalize $env:PATH references in .\build.psm1
- Add more logging in Resolve-Xaml for troubleshooting
- Always use msbuild from the Microsoft.NET v4.0.30319
- Rename Resolve-Xaml into Start-XamlGen for consistency with Start-TypeGen and Start-ResGen
- Disable pwrshplugin build temporarely
2016-06-24 15:45:31 -07:00
Sergei Vorobev
713ddfdf05
Remove authors section from product project.json
2016-06-16 19:33:19 -07:00
Andrew Schwartzmeyer
10f2d48f60
Use CentOS 7, not 7.1 RID
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer
9375b1f303
Downgrade packages to build 24027
...
This is the ancient build that Nano uses.
2016-06-16 15:48:18 -07:00
Sergei Vorobev
ee4d6ab8b3
Move LocalAccounts ps1xml, psd1 files on the filesystem
2016-06-15 19:25:28 -07:00
Sergei Vorobev
2cb0461b3d
Move LocalAccounts ps1xml, psd1 files from powershell/map.json to Modules/map.json
2016-06-15 19:19:23 -07:00
PowerShell Team
802630c261
Add source files for Microsoft.PowerShell.LocalAccounts [SD:709776]
...
Commit 15b1623
2016-06-14 17:02:50 -07:00
Dongbo Wang
1829beb917
Fix map.json for LocalAccounts
2016-06-14 16:59:38 -07:00
Sergei Vorobev
85e2ecd504
Add new map.json files
2016-06-13 17:39:11 -07:00
Andrew Schwartzmeyer
2639f2a8ae
Use include key in copyToOutput and publishOptions
...
While the schema says that a `string[]` will be picked up as if `{
"include" : [ ... ] }` was used, it does not. This is a .NET CLI bug.
2016-06-10 13:00:33 -07:00
Andrew Schwartzmeyer
9b2be207f7
Don't attempt to publish any profiles
...
PowerShell does not ship with any default profiles.
2016-06-10 12:44:18 -07:00
Andrew Schwartzmeyer
44f3fb1211
Update content to copyToOutput and publishOptions
...
These must be duplicated as we require the same files for both `build`
and `publish`. This is the requirement of the new schema, as `content`
was split.
Note that while each key can take an object, if given just a `string[]`
as we do here, it defaults to `include`.
See the new schema: https://github.com/aspnet/Announcements/issues/175
2016-06-10 12:41:26 -07:00
Andrew Schwartzmeyer
e3056303aa
Rename compilationOptions to buildOptions in project.json files
...
This resolves #928 . This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Andrew Schwartzmeyer
facef0ce6b
Enable tracing commands in module
2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer
9c7e97e325
Add Debian 8 RID
2016-06-03 09:37:59 -07:00
James Truher
8583cf5e96
update PSVersionTable code to use powershell.version rather than .version because on Linux the .version file doesn't seem to be binplaced. I postulate this is because it's a hidden file
2016-05-19 13:19:16 -07:00
Andy Schwartzmeyer
99402343fc
Merge pull request #1000 from PowerShell/andschwa/delete-profile
...
Remove system profile
2016-05-19 10:00:51 -07:00
PowerShell Team
d9bf6b037f
Update files from Source Depot changeset [SD:704605]
...
Corresponds to 75764b265885c1a346d1b2dbcb281d61b71c5b31 in psl-monad.
2016-05-18 17:41:26 -07:00
Andrew Schwartzmeyer
056effc129
Remove system profile
2016-05-18 17:26:10 -07:00
Andrew Schwartzmeyer
97ea9308fb
Add readme to src/powershell
2016-05-17 13:28:44 -07:00