Skip to content

Commit

Permalink
Clean up PowerShell assets
Browse files Browse the repository at this point in the history
Changes:
- Merge changes made in EF6
  - Enable Get-Help in PS2
- Also warn about EF 6.3
- Remove unnecessary workarounds
- Remove xproj detection
- Remove install.ps1
  • Loading branch information
bricelam committed Jul 29, 2019
1 parent 6fb4576 commit 8b2d0c6
Show file tree
Hide file tree
Showing 8 changed files with 543 additions and 281 deletions.
96 changes: 96 additions & 0 deletions src/EFCore.Tools/EntityFrameworkCore.PS2.psd1.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#
# Module manifest for module 'EntityFrameworkCore.PS2'
#

@{

# Script module or binary module file associated with this manifest
ModuleToProcess = 'EntityFrameworkCore.PS2.psm1'

# Version number of this module.
ModuleVersion = '${VersionPrefix}'

# ID used to uniquely identify this module
GUID = '2de7c7fd-c848-41d7-8634-37fed4d3bb36'

# Author of this module
Author = 'Entity Framework Team'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '(c) .NET Foundation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Entity Framework Core Package Manager Console Tools'

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '2.0'

# Name of the Windows PowerShell host required by this module
PowerShellHostName = 'Package Manager Host'

# Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = '1.2'

# Minimum version of the .NET Framework required by this module
DotNetFrameworkVersion = '4.0'

# Minimum version of the common language runtime (CLR) required by this module
CLRVersion = ''

# Processor architecture (None, X86, Amd64, IA64) required by this module
ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module
ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = @()

# Modules to import as nested modules of the module specified in ModuleToProcess
NestedModules = @()

# Functions to export from this module
FunctionsToExport = (
'Add-Migration',
'Drop-Database',
'Enable-Migrations',
'Get-DbContext',
'Remove-Migration',
'Scaffold-DbContext',
'Script-DbContext',
'Script-Migration',
'Update-Database'
)

# Cmdlets to export from this module
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = @()

# Aliases to export from this module
AliasesToExport = @()

# List of all modules packaged with this module
ModuleList = @()

# List of all files packaged with this module
FileList = @()

# Private data to pass to the module specified in ModuleToProcess
PrivateData = ''

}

89 changes: 0 additions & 89 deletions src/EFCore.Tools/EntityFrameworkCore.PowerShell2.psd1.in

This file was deleted.

167 changes: 99 additions & 68 deletions src/EFCore.Tools/EntityFrameworkCore.psd1.in
Original file line number Diff line number Diff line change
@@ -1,98 +1,129 @@
#
# Module manifest for module 'EntityFrameworkCore'
#

@{
# Script module or binary module file associated with this manifest.
RootModule = 'EntityFrameworkCore.psm1'

# Version number of this module.
ModuleVersion = '${VersionPrefix}'
# Script module or binary module file associated with this manifest.
RootModule = 'EntityFrameworkCore.psm1'

# Version number of this module.
ModuleVersion = '${VersionPrefix}'

# Supported PSEditions
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = 'c126fb40-c0f1-43ae-8dd0-06bb50512eb2'

# Author of this module
Author = 'Entity Framework Team'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '(c) .NET Foundation. All rights reserved.'

# Supported PSEditions
# CompatiblePSEditions = @()
# Description of the functionality provided by this module
Description = 'Entity Framework Core Package Manager Console Tools'

# ID used to uniquely identify this module
GUID = 'c126fb40-c0f1-43ae-8dd0-06bb50512eb2'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '3.0'

# Author of this module
Author = 'Entity Framework Team'
# Name of the Windows PowerShell host required by this module
PowerShellHostName = 'Package Manager Host'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'
# Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = '1.2'

# Copyright statement for this module
Copyright = '(c) .NET Foundation. All rights reserved.'
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
DotNetFrameworkVersion = '4.0'

# Description of the functionality provided by this module
Description = 'Entity Framework Core Package Manager Console Tools'
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '3.0'
# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Name of the Windows PowerShell host required by this module
PowerShellHostName = 'Package Manager Host'
# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = '1.2'
# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Minimum version of the .NET Framework required by this module
DotNetFrameworkVersion = '4.0'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Minimum version of the common language runtime (CLR) required by this module
# CLRVersion = ''
# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = (
'Add-Migration',
'Drop-Database',
'Enable-Migrations',
'Get-DbContext',
'Remove-Migration',
'Scaffold-DbContext',
'Script-DbContext',
'Script-Migration',
'Update-Database'
)

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
# Variables to export from this module
VariablesToExport = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @()

# Modules to import as nested modules of the module specified in RootModule
# NestedModules = @()
# DSC resources to export from this module
# DscResourcesToExport = @()

# Functions to export from this module
FunctionsToExport = (
'Add-Migration',
'Drop-Database',
'Enable-Migrations',
'Get-DbContext',
'Remove-Migration',
'Scaffold-DbContext',
'Script-DbContext',
'Script-Migration',
'Update-Database'
)
# List of all modules packaged with this module
# ModuleList = @()

# Cmdlets to export from this module
CmdletsToExport = @()
# List of all files packaged with this module
# FileList = @()

# Variables to export from this module
VariablesToExport = @()
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

# Aliases to export from this module
AliasesToExport = @()
PSData = @{

# List of all modules packaged with this module.
# ModuleList = @()
# Tags applied to this module. These help with module discovery in online galleries.
# Tags = @()

# List of all files packaged with this module
# FileList = @()
# A URL to the license for this module.
# LicenseUri = ''

# Private data to pass to the module specified in RootModule
# PrivateData = ''
# A URL to the main website for this project.
# ProjectUri = ''

# HelpInfo URI of this module
# HelpInfoURI = ''
# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''
}

Loading

0 comments on commit 8b2d0c6

Please sign in to comment.