Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 4dd03cc

Browse files
committed
update to dotnet 9
1 parent b669f73 commit 4dd03cc

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/Source/bin/Debug/net8.0/ReviewGenerator.dll",
13+
"program": "${workspaceFolder}/Source/bin/Debug/net9.0/ReviewGenerator.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/ReviewGenerator",
1616
"stopAtEntry": false,

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "process",
88
"args": [
99
"build",
10-
"${workspaceFolder}/Review.sln",
10+
"${workspaceFolder}/ReviewGenerator.sln",
1111
"/property:GenerateFullPaths=true",
1212
"/consoleloggerparameters:NoSummary"
1313
],
@@ -19,7 +19,7 @@
1919
"type": "process",
2020
"args": [
2121
"publish",
22-
"${workspaceFolder}/Review.sln",
22+
"${workspaceFolder}/ReviewGenerator.sln",
2323
"/property:GenerateFullPaths=true",
2424
"/consoleloggerparameters:NoSummary"
2525
],
@@ -33,7 +33,7 @@
3333
"watch",
3434
"run",
3535
"--project",
36-
"${workspaceFolder}/Review.sln"
36+
"${workspaceFolder}/ReviewGenerator.sln"
3737
],
3838
"problemMatcher": "$msCompile"
3939
}

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Review Generator
2-
<strong>This project uses .NET 8 and Angular 15.</strong><br/>
2+
<strong>This project uses .NET 9 and Angular 15.</strong><br/>
33
Utilizing a dataset generate fake video game reviews with a single endpoint. Ingests training data on startup.
44

55
## Building and running the application
6-
To build and run the application navigate to the ./Source/ directory and run the command ```dotnet watch run``` in the console for a verbose startup process. This will build and run the ASP.NET application and afterwards will build and run the front end Angular application. The browser window should open automatically and redirect once the app has initialized.<br/>
7-
Alternatively, you may navigate to the ./Source/ directory and run the command ```dotnet run``` in the console. After running this command click on any of the links to navigate to the local webpage. Both links will route to the correct URL after all launch processes are completed.<br/>
6+
To build and run the application navigate to the ./Source/ directory and run the command ```dotnet run``` in the console to initiate the startup process. This will build and run the ASP.NET application and afterwards will build and run the front end Angular application. After running this command click on any of the links to navigate to the local webpage. Both links will route to the correct URL after all launch processes are completed.
87

9-
![image](https://github.com/TheManOfTeel/Review-Generator/assets/46604437/9a583b0b-add4-404b-a7f1-d0f355e28879)
8+
![image](https://github.com/TheManOfTeel/ReviewGenerator/assets/46604437/9a583b0b-add4-404b-a7f1-d0f355e28879)
109

Source/ClientApp/angular.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"Review": {
6+
"ReviewGenerator": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:application": {
@@ -72,10 +72,10 @@
7272
"builder": "@angular-devkit/build-angular:dev-server",
7373
"configurations": {
7474
"production": {
75-
"browserTarget": "Review:build:production"
75+
"browserTarget": "ReviewGenerator:build:production"
7676
},
7777
"development": {
78-
"browserTarget": "Review:build:development",
78+
"browserTarget": "ReviewGenerator:build:development",
7979
"proxyConfig": "proxy.conf.js"
8080
}
8181
},
@@ -84,7 +84,7 @@
8484
"extract-i18n": {
8585
"builder": "@angular-devkit/build-angular:extract-i18n",
8686
"options": {
87-
"browserTarget": "Review:build"
87+
"browserTarget": "ReviewGenerator:build"
8888
}
8989
},
9090
"test": {
@@ -132,5 +132,5 @@
132132
}
133133
}
134134
},
135-
"defaultProject": "Review"
135+
"defaultProject": "ReviewGenerator"
136136
}

Source/ClientApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start:windows": "ng serve --port 44413 --ssl --ssl-cert %APPDATA%\\ASP.NET\\https\\%npm_package_name%.pem --ssl-key %APPDATA%\\ASP.NET\\https\\%npm_package_name%.key",
99
"start:default": "ng serve --port 44413 --ssl --ssl-cert $HOME/.aspnet/https/${npm_package_name}.pem --ssl-key $HOME/.aspnet/https/${npm_package_name}.key",
1010
"build": "ng build",
11-
"build:ssr": "ng run Review:server:dev",
11+
"build:ssr": "ng run ReviewGenerator:server:dev",
1212
"watch": "ng build --watch --configuration development",
1313
"test": "ng test"
1414
},

Source/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
},
1010
"profiles": {
11-
"Review": {
11+
"ReviewGenerator": {
1212
"commandName": "Project",
1313
"launchBrowser": true,
1414
"applicationUrl": "https://localhost:7180;http://localhost:5032",

Source/ReviewGenerator.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<IsPackable>false</IsPackable>
7-
<SpaRoot>ClientApp\</SpaRoot>
7+
<SpaRoot>ClientApp</SpaRoot>
88
<SpaProxyServerUrl>https://localhost:44413</SpaProxyServerUrl>
99
<SpaProxyLaunchCommand>npm start</SpaProxyLaunchCommand>
1010
<ImplicitUsings>enable</ImplicitUsings>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="6.0.20" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="9.0.5" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1616
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
17-
<PackageReference Include="NUnit" Version="3.13.3" />
18-
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
17+
<PackageReference Include="NUnit" Version="4.3.2" />
18+
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
1919
</ItemGroup>
2020

2121
<ItemGroup>
@@ -25,7 +25,7 @@
2525
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
2626
</ItemGroup>
2727

28-
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
28+
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
2929
<!-- Ensure Node.js is installed -->
3030
<Exec Command="node --version" ContinueOnError="true">
3131
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />

Source/UnitTests/ReviewServiceTests.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using NUnit.Framework;
2+
using NUnit.Framework.Legacy;
23
using ReviewGenerator.Models;
34
using ReviewGenerator.Services;
45
using ReviewGenerator.Services.Interfaces;
@@ -27,10 +28,10 @@ public void Generate_SuccessTest()
2728
{
2829
CustomerReview customerReview = _sut.Generate();
2930

30-
Assert.IsNotNull(customerReview);
31-
Assert.IsTrue(customerReview.Rating >= 1 && customerReview.Rating <= 5);
32-
Assert.IsTrue(customerReview.Summary.Contains("very"));
33-
Assert.IsTrue(customerReview.Summary.Contains("good"));
31+
ClassicAssert.IsNotNull(customerReview);
32+
ClassicAssert.IsTrue(customerReview.Rating >= 1 && customerReview.Rating <= 5);
33+
ClassicAssert.IsTrue(customerReview.Summary.Contains("very"));
34+
ClassicAssert.IsTrue(customerReview.Summary.Contains("good"));
3435
}
3536

3637
[Test]
@@ -43,8 +44,8 @@ public void Generate_FailureTest()
4344
};
4445
CustomerReview customerReview = _sut.Generate();
4546

46-
Assert.AreEqual(customerReview.Rating, 1);
47-
Assert.AreEqual(customerReview.Summary, "I hated this product.");
47+
ClassicAssert.AreEqual(customerReview.Rating, 1);
48+
ClassicAssert.AreEqual(customerReview.Summary, "I hated this product.");
4849
}
4950

5051
[TearDown]

0 commit comments

Comments
 (0)