PowerShell Team
c1ee6c9d6d
Refactoring - replace always null expressions with null
2016-08-03 12:14:28 -07:00
PowerShell Team
c3ce30e34a
Refactoring - use is operator instead of GetType() where possible
2016-08-03 12:14:28 -07:00
PowerShell Team
22d2273ce4
Refactoring - use ?? in more places
2016-08-03 12:14:28 -07:00
PowerShell Team
85d6e9f022
Refactoring - adjust modifiers declaration order
2016-08-03 12:14:28 -07:00
PowerShell Team
ae8d2ed794
Refactor - convert to auto-property
...
Mostly using R# to automatically refactor, with some manual
fixups where it wouldn't work automatically (e.g. xml comments
on fields) or some it seemed to miss.
Some minor code reformatting was also done on properties near
other stuff I was manually inspecting.
2016-08-03 12:14:28 -07:00
PowerShell Team
bc4901bd59
Remove unused using statements
2016-08-03 12:06:06 -07:00
Jason Shirk (POWERSHELL)
38ab0f4d73
update csproj references
2016-08-03 12:06:06 -07:00
Jason Shirk (POWERSHELL)
75eab56e21
csproj fixes
...
- add some missing references
- fix assembly name so InternalsVisibleTo works
2016-08-02 10:50:51 -07:00
PowerShell Team
403ae3f53f
Initial run of code formatter
...
I (Jason Shirk) ran https://github.com/dotnet/codeformatter with the default rules, basically:
codeformatter /nocopyright "/c:DEBUG,UNIX,CORECLR" @files.rsp
This caused a few problems building, which were fixed up manually.
Notable changes:
`this.` is removed unless needed to disambiguate.
private instance fields are renamed to have a `_` prefix.
private static fields are renamed to have a `s_` prefix.
I left some projects alone (like PackageManagement) and also left some generated code alone.
2016-08-01 15:57:03 -07:00
Sergei Vorobev
06252836ea
Make 'cd' go to the HOME directory
2016-07-27 18:43:19 -07:00
Jason Shirk (POWERSHELL)
673dd2c355
Change preprocessor macro LINUX to UNIX
2016-07-22 10:49:45 -07:00
Andrew Schwartzmeyer
790a07222e
Disable some XML documentation warnings
...
Some projects have more warnings than I can fix.
2016-07-18 19:07:32 -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
Sergei Vorobev
58de8914b1
Downgrade Microsoft.WSMan.Management dependency so we can use the one from sources
2016-07-14 13:46:29 -07:00
Andrew Schwartzmeyer
2abe461992
Refactor to use GetUserFromPid
2016-07-13 15:46:25 -07:00
Andrew Schwartzmeyer
e6d3cbcce0
Implement Get-Process -IncludeUserName for Linux
...
So much plumbing. The correct way to identify the owner of a process on
Linux is to get the owner of the /proc/<PID> file. However, .NET Core
has no API to get this information, thus it had to be plumbed through to
the native library.
2016-07-13 15:46:25 -07:00
Dongbo Wang
15fbd76df8
Exclude the unneeded gen/*.cs files from the build for each target framework
2016-07-07 09:32:21 -07:00
Dongbo Wang
c502b31509
Exclude the TimeZone/Computer/FileCatalog cmdlets for Linux. They use windows specific Win32 APIs
2016-07-06 13:04:51 -07:00
Dongbo Wang
b4641986a2
Update project.json files to exclude certain .resx files for each target framework
2016-07-06 13:04:31 -07:00
PowerShell Team
49fea9dac9
Add missing files for OPS [SD:717473]
2016-07-06 13:03:56 -07:00
Dongbo Wang
b4089414de
Add back missing files to OPS -- map.json/project.json udpates
2016-07-05 16:18:24 -07:00
Jason Shirk (POWERSHELL)
efc83bbaa2
Add csproj files and sln for editing but not building
2016-07-05 10:27:41 -07:00
Jason Shirk (POWERSHELL)
4269398379
Fix Split-Path -NoQualifier for Unix paths
2016-06-30 12:59:04 -07:00
Jason Shirk (POWERSHELL)
bfc5b7e836
Revert Unix specific Split-Path -Qualifier code
...
The -Qualifier code for Split-Path made some incorrect assumptions:
* That a path only referred to the file system
* That drives cannot be used on Unix systems
These assumptions were both wrong, so I've reverted the change so we
do not have any Unix specific code in Split-Path now.
Fixes #1176
2016-06-29 14:12:29 -07:00
Andrew Schwartzmeyer
2f892e8127
Use Marshal.ZeroFreeCoTaskMemUnicode
...
This removes the ClrFacade function of the same name as this API is in
.NET Core 1.0 Marhsal class, not SecureStringMarshal.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
000206ac90
Bump framework to netstandard1.6
...
This is required to use the new .NET Core RTM packages, specifically the
`IEnumerable Append` API.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
10ea1733e9
Update to .NET Core 1.0 packages
2016-06-27 15:30:47 -07:00
Sergei Vorobev
dfea5de391
Merge pull request #1172 from PowerShell/dongbo/bump_wsman_mgmt_version
...
Bump the version of dependent WsMan.Mgmt nuget package to 1.0.1-rc1
2016-06-22 00:14:22 -07:00
Dongbo Wang
456a571d24
Bump the version of dependent WsMan.Mgmt nuget package to 1.0.1-rc1
2016-06-21 22:12:13 -07:00
Sergei Vorobev
44be44e195
Revert GetComputerInfoCommand.cs to source-depot state
2016-06-21 19:02:28 -07:00
Dongbo Wang
6adbda9c37
Add project.json files for Activities.dlls
2016-06-21 15:25:24 -07:00
PowerShell Team
5f87828710
Copy ControlPanelItemCommand.cs from [SD:715912]
...
commit 77eda78
2016-06-20 15:29:51 -07:00
Sergei Vorobev
cafc4fe1d0
Add ControlPanelItemCommand.cs into map.json and exclude from build
2016-06-20 15:29:51 -07:00
Sergei Vorobev
299d7798ce
Merge pull request #1136 from PowerShell/vors/scheduledjobs
...
PSScheduledJobs Module
2016-06-17 11:26:24 -07:00
PowerShell Team
838ad202fa
Add missed resx file from [SD:715912] commit 77eda78
2016-06-17 06:24:57 -07:00
Sergei Vorobev
c0db699e83
Add missed resx file into map.json
2016-06-17 06:24:12 -07:00
Sergei Vorobev
713ddfdf05
Remove authors section from product project.json
2016-06-16 19:33:19 -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
Andrew Schwartzmeyer
8e7c2ca30b
Sign all assemblies with key
2016-06-16 15:48:18 -07:00
PowerShell Team
8ee6d6ca43
Update files from Source Depot changeset [SD:715912]
...
Corresponds to 77eda782aa78ba8b7a36c51ee619629ce6c990f2 in psl-monad.
2016-06-15 18:02:03 -07:00
Sergei Vorobev
d92620dcf3
Move resgen artifacts from submodules into src subfolders
...
Submodule adds unnessesary complexity.
This commit removes dependency on pre-generated C# bindings.
Start-PsBuild -ResGen will call Start-ResGen.
It also has auto-detect logic to simplify first time expirience.
2016-06-15 10:34:10 -07:00
Andrew Schwartzmeyer
d16cfbd04f
Work-around dotnet bug
...
The include must be duplicated because the root `buildOptions` is not
being applied "whenever compiling the project."
2016-06-14 16:21:36 -07:00
Andrew Schwartzmeyer
01f1c5348d
Exclude FullCLR files from CoreCLR build
2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer
69ce0e7107
Revert CORECLR guard from FullCLR files
...
This reverts the `if !CORECLR ... #endif` guard surrounding FullCLR
files by applying the original diff from the `source-depot` branch, thus
the accidentally overwritten BOMs were restored as well.
2016-06-14 16:06:48 -07:00
Sergei Vorobev
85e2ecd504
Add new map.json files
2016-06-13 17:39:11 -07:00
Andrew Schwartzmeyer
80aceb7a8a
Move compile data to build options
2016-06-10 11:15:37 -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
PowerShell Team
b38773eb79
Update files from Source Depot changeset [SD:709766]
...
Corresponds to 15b1623435d6a195d1e877ba5c43709d991f573a in psl-monad.
2016-05-31 14:12:49 -07:00
Andy Schwartzmeyer
5bdb215034
Don't compile GetComputerInfoCommand.cs
2016-05-18 17:47:25 -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