Skip to content

Commit 4c24cc5

Browse files
committed
Fix merge conflicts
1 parent 9a9de86 commit 4c24cc5

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@ Some useful scripts.
44

55
## dotnet-new/dual-projects.ps1
66

7-
<<<<<<< HEAD
87
Allows you to create a project, using any template available with `dotnet new`, and it associated xunit test project.
9-
=======
10-
Allows you to create a project of any type (possible with `dotnet new`) and its associated test project (using `xunit`).
118
Optionally, you can also create a functional tests project which automatically import `Microsoft.AspNetCore.App` and `Microsoft.AspNetCore.Mvc.Testing`.
129

13-
> > > > > > > Update README and fix DualProjects props options
14-
1510
The project structure is as follow:
1611

1712
```
@@ -44,7 +39,7 @@ You can also use my published version, on MyGet, by executing the following comm
4439

4540
Register my NuGet feed as `ForEvolveFeed`:
4641

47-
```
42+
```powershell
4843
Import-Module PowerShellGet
4944
$PSGalleryPublishUri = 'https://www.myget.org/F/forevolve/api/v2/package'
5045
$PSGallerySourceUri = 'https://www.myget.org/F/forevolve/api/v2'
@@ -53,7 +48,7 @@ Register-PSRepository -Name ForEvolveFeed -SourceLocation $PSGallerySourceUri -P
5348

5449
Install the module from that custom MyGet feed:
5550

56-
```
51+
```powershell
5752
# for all users/as admin
5853
Install-Module -Name "dual-projects" -RequiredVersion "1.0.0" -Repository ForEvolveFeed
5954
@@ -63,13 +58,13 @@ Install-Module -Name "dual-projects" -RequiredVersion "1.0.0" -Repository ForEvo
6358

6459
Finally, import the module:
6560

66-
```
61+
```powershell
6762
Import-Module dual-projects.psm1
6863
```
6964

7065
You may need update your execution policy, with `Set-ExecutionPolicy`, to be able to run PowerShell script file using the following command:
7166

72-
```
67+
```powershell
7368
Set-ExecutionPolicy Unrestricted
7469
```
7570

@@ -129,11 +124,6 @@ To tell the script not to build the solution, you can specify `-noBuild` or `-no
129124
Add-DualProjects -p SomeCoolProject -t mvc -s some-solution.sln -mkdir $false -no-build -create-sln
130125
```
131126

132-
<<<<<<< HEAD
133-
134-
## Other info (notes to self)
135-
136-
=======
137127
How to create a project named `SomeCoolProject`, a unit tests project, and a functional tests project in the default, existing, solution:
138128

139129
```powershell
@@ -180,7 +170,7 @@ Add-FunctionalTests -p SomeCoolProject -props ..\FunctionalTests.Build.props
180170

181171
Use a custom MyGet feed:
182172

183-
```
173+
```powershell
184174
Import-Module PowerShellGet
185175
$PSGalleryPublishUri = 'https://www.myget.org/F/forevolve/api/v2/package'
186176
$PSGallerySourceUri = 'https://www.myget.org/F/forevolve/api/v2'
@@ -203,13 +193,14 @@ Update-Module -Name "dual-projects" -RequiredVersion "1.1.0" -Force
203193
Get-InstalledModule -Name "dual-projects"
204194
```
205195

206-
> > > > > > > Update README and fix DualProjects props options
196+
## Other info (notes to self)
207197

208198
Publish to that custom MyGet feed:
209199

210200
```powershell
211201
$APIKey = 'YOUR-API-KEY'
212-
Publish-Module -Path dotnet-new -NuGetApiKey $APIKey -Repository ForEvolveFeed -Verbose
202+
cd dotnet-new
203+
Publish-Module -Path dual-projects -NuGetApiKey $APIKey -Repository ForEvolveFeed -Verbose
213204
```
214205

215206
Read feeds list: `Get-PSRepository`

0 commit comments

Comments
 (0)