@@ -35,40 +35,44 @@ Import-Module F:\Repos\ForEvolve.Scripts\dotnet-new\dual-projects\dual-projects.
35
35
36
36
### How to install from MyGet
37
37
38
- You can also use my published version, on MyGet, by executing the following commands:
38
+ You can also use the published version, on MyGet, by executing the following commands:
39
39
40
- Register my NuGet feed as ` ForEvolveFeed ` :
40
+ Register ForEvolve NuGet feed as ` ForEvolveFeed ` :
41
41
42
42
``` powershell
43
43
Import-Module PowerShellGet
44
44
$PSGalleryPublishUri = 'https://www.myget.org/F/forevolve/api/v2/package'
45
45
$PSGallerySourceUri = 'https://www.myget.org/F/forevolve/api/v2'
46
46
Register-PSRepository -Name ForEvolveFeed -SourceLocation $PSGallerySourceUri -PublishLocation $PSGalleryPublishUri
47
+
48
+ # If you trust my feed, you can run the following command to get rid of the anoying confirmation
49
+ # You will need an elevated PowerShell terminal
50
+ Set-PSRepository -Name "ForEvolveFeed" -InstallationPolicy Trusted
47
51
```
48
52
49
53
Install the module from that custom MyGet feed:
50
54
51
55
``` powershell
52
- # for all users/as admin
53
- Install-Module -Name "dual-projects" -RequiredVersion "1.0.0 " -Repository ForEvolveFeed
56
+ # For all users (required an elevated terminal)
57
+ Install-Module -Name "dual-projects" -RequiredVersion "1.1.1 " -Repository ForEvolveFeed
54
58
55
- # only for the current user
56
- Install-Module -Name "dual-projects" -RequiredVersion "1.0.0 " -Repository ForEvolveFeed -Scope CurrentUser
59
+ # Only for the current user
60
+ Install-Module -Name "dual-projects" -RequiredVersion "1.1.1 " -Repository ForEvolveFeed -Scope CurrentUser
57
61
```
58
62
59
- Finally, import the module:
63
+ You may also have to import the module:
60
64
61
65
``` powershell
62
- Import-Module dual-projects.psm1
66
+ Import-Module dual-projects
63
67
```
64
68
65
- You may need update your execution policy, with ` Set-ExecutionPolicy ` , to be able to run PowerShell script file using the following command:
69
+ You may need to update your execution policy, with ` Set-ExecutionPolicy ` , to be able to run PowerShell script file using the following command:
66
70
67
71
``` powershell
68
72
Set-ExecutionPolicy Unrestricted
69
73
```
70
74
71
- _ You need to run PowerShell in admin mode to execute that command._
75
+ > You need to run PowerShell in admin mode to execute that command.
72
76
73
77
### ` Add-DualProjects ` function
74
78
@@ -166,7 +170,7 @@ Add-FunctionalTests -p SomeCoolProject -props ..\FunctionalTests.Build.props
166
170
167
171
> This will add ` <Import Project="..\FunctionalTests.Build.props" /> ` at the top of the project file ( under ` <Project Sdk="Microsoft.NET.Sdk.Web"> ` ).
168
172
169
- ## Other info
173
+ ## Other info (notes to self)
170
174
171
175
Use a custom MyGet feed:
172
176
@@ -178,16 +182,19 @@ Register-PSRepository -Name ForEvolveFeed -SourceLocation $PSGallerySourceUri -P
178
182
179
183
# To unregister a source
180
184
Unregister-PSRepository -Name ForEvolveFeed
185
+
186
+ # To trust the source
187
+ Set-PSRepository -Name "ForEvolveFeed" -InstallationPolicy Trusted
181
188
```
182
189
183
190
Install the module from that custom MyGet feed:
184
191
185
192
``` powershell
186
193
# Only for the current user
187
- Install-Module -Name "dual-projects" -RequiredVersion "1.1.1" -Repository MyGetFeed -Scope CurrentUser
194
+ Install-Module -Name "dual-projects" -RequiredVersion "1.1.1" -Repository ForEvolveFeed -Scope CurrentUser
188
195
189
196
# For all users (required an elevated terminal)
190
- Install-Module -Name "dual-projects" -RequiredVersion "1.1.1" -Repository MyGetFeed
197
+ Install-Module -Name "dual-projects" -RequiredVersion "1.1.1" -Repository ForEvolveFeed
191
198
192
199
# Update the module (force is required to overrite the old version)
193
200
Update-Module -Name "dual-projects" -RequiredVersion "1.1.1" -Force
@@ -199,8 +206,6 @@ Get-InstalledModule -Name "dual-projects"
199
206
Uninstall-Module -Name "dual-projects" -AllVersions
200
207
```
201
208
202
- ## Other info (notes to self)
203
-
204
209
Publish to that custom MyGet feed:
205
210
206
211
``` powershell
@@ -215,6 +220,11 @@ Create a module manifest: `New-ModuleManifest -Path dual-projects.psd1`
215
220
216
221
# Release Notes
217
222
223
+ ## 1.1.2
224
+
225
+ - Update the module description.
226
+ - Specify ` FunctionsToExport ` at the module level.
227
+
218
228
## 1.1.1
219
229
220
230
- Fix: Convert the _ csproj_ file path to absolute before reading it to make sure it works everytime.
0 commit comments