Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Microsoft.PowerShell.Standard.Module.Template</id>
<version>0.1.4</version>
<version>0.1.5</version>
<title>PowerShell Standard module</title>
<authors>Microsoft</authors>
<owners>Microsoft,PowerShellTeam</owners>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
"PowerShellStandardVersion":{
"type": "parameter",
"datatype":"choice",
"defaultValue": "5.1.0-preview-06",
"defaultValue": "5.1.0",
"choices": [
{
"choice": "5.1.0-preview-06",
"choice": "5.1.0",
"description": "PowerShell Standard 5.1"
},
{
"choice": "3.0.0-preview-02",
"description": "PowerShell Standard 3.0"
}
],
"replaces": "5.1.0-preview-06"
"replaces": "5.1.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this does exactly but figured it had to be changed to remove the -preview-06 ref.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the right call - basically, it will replace instances of what's in replaces with the choice based on what flags are used when dotnet new is called.

},
"skipRestore": {
"type": "parameter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Author = 'Unknown'
CompanyName = 'Unknown'

# Copyright statement for this module
Copyright = '(c) 2018 Unknown. All rights reserved.'
Copyright = '(c) 2019 Unknown. All rights reserved.'

# Description of the functionality provided by this module
# Description = ''
Expand Down
12 changes: 6 additions & 6 deletions src/dotnetTemplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A `dotnet new` template that creates an example PowerShell C# module that uses PowerShellStandard.

```
```powershell
dotnet new psmodule
```

Expand All @@ -12,7 +12,7 @@ To use the template, you must first install it so that it is recognized in `dotn

### From nuget.org

```
```powershell
dotnet new -i Microsoft.PowerShell.Standard.Module.Template
```

Expand All @@ -33,7 +33,7 @@ Now checkout the [usage](#usage).

Once the template is installed, you will see it in your template list:

```
```text
PS> dotnet new -l

Usage: new [options]
Expand Down Expand Up @@ -75,7 +75,7 @@ MVC ViewStart viewstart

To get more details, add the `-h` flag:

```
```text
PS > dotnet new psmodule -h
Usage: new [options]

Expand Down Expand Up @@ -106,7 +106,7 @@ Options:

To create a template using the defaults:

```
```text
> dotnet new psmodule
The template "PowerShell Standard Module" was created successfully.

Expand All @@ -124,7 +124,7 @@ Notice that it restores automatically.

You can optionally specify PowerShell Standard V3 by running:

```
```text
dotnet new psmodule --powershell-standard-version 3.0.0-preview-02
```

Expand Down