Skip to content

Commit

Permalink
Improve _register_template.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidN committed Apr 21, 2023
1 parent 62c68b2 commit 48bc807
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.200
dotnet-version: 7.0.203
- name: Build DNTIdentity
run: dotnet build ./src/ASPNETCoreIdentitySample/ASPNETCoreIdentitySample.csproj --configuration Release
8 changes: 4 additions & 4 deletions .template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"datatype": "choice",
"choices": [
{
"choice": "net5.0",
"description": "Target .NET 5"
"choice": "net7.0",
"description": "Target .NET 7"
}
],
"defaultValue": "net5.0",
"replaces": "net5.0"
"defaultValue": "net7.0",
"replaces": "net7.0"
}
}
}
4 changes: 2 additions & 2 deletions ASPNETCoreIdentitySample.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{36B0B268-BEB8-41AB-9ABC-D4030362F3F1}"
EndProject
Expand Down
6 changes: 3 additions & 3 deletions _register_template.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SET DNTPath=%~dp0
IF "%DNTPath:~-1%"=="\" SET DNTPath=%DNTPath:~0,-1%
dotnet new -u %DNTPath%
dotnet new -i %DNTPath%
dotnet new --list
dotnet new uninstall %DNTPath%
dotnet new install %DNTPath%
dotnet new list
rem dotnet new dntidentity -n MyNewProj
pause
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "7.0.200",
"version": "7.0.203",
"rollForward": "latestMajor",
"allowPrerelease": true
"allowPrerelease": false
}
}

0 comments on commit 48bc807

Please sign in to comment.