aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-08 10:35:50 +0200
committertranstrike <transtrike@gmail.com>2020-12-08 10:35:50 +0200
commitfa0b0e992d363f41bdb8cda00ef59c0142c97246 (patch)
treedfa0ecaaf689670c75889de77320665ba7edead7
parent648d50c387e7ee3976bd673594ed10901075475f (diff)
downloadDevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.tar
DevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.tar.gz
DevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.zip
Added 3rd project and references
-rw-r--r--API/API.code-workspace19
-rw-r--r--API/API.csproj4
-rw-r--r--API/Controllers/WeatherForecastController.cs3
-rw-r--r--DevHive.code-workspace3
-rw-r--r--DevHive.sln14
-rw-r--r--Models/Models.csproj8
-rw-r--r--Web/Web.code-workspace19
-rw-r--r--Web/Web.csproj4
8 files changed, 71 insertions, 3 deletions
diff --git a/API/API.code-workspace b/API/API.code-workspace
new file mode 100644
index 0000000..875e3c8
--- /dev/null
+++ b/API/API.code-workspace
@@ -0,0 +1,19 @@
+{
+ "folders": [
+ {
+ "path": "."
+ }
+ ],
+ "settings": {
+ "files.exclude": {
+ "**/.vscode": true,
+ "**/bin": true,
+ "**/obj": true,
+ ".gitignore" : true,
+ "**/README.md" : true,
+ "**/LICENSE" : true,
+ "**/Properties" : true,
+ "**/*.code-workspace" : true
+ }
+ }
+} \ No newline at end of file
diff --git a/API/API.csproj b/API/API.csproj
index dcc653c..5c04910 100644
--- a/API/API.csproj
+++ b/API/API.csproj
@@ -11,4 +11,8 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Models\Models.csproj" />
+ </ItemGroup>
+
</Project>
diff --git a/API/Controllers/WeatherForecastController.cs b/API/Controllers/WeatherForecastController.cs
index 2e4b29d..a90538d 100644
--- a/API/Controllers/WeatherForecastController.cs
+++ b/API/Controllers/WeatherForecastController.cs
@@ -10,13 +10,12 @@ namespace API.Controllers
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
+ private readonly ILogger<WeatherForecastController> _logger;
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
- private readonly ILogger<WeatherForecastController> _logger;
-
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
diff --git a/DevHive.code-workspace b/DevHive.code-workspace
index e165dda..875e3c8 100644
--- a/DevHive.code-workspace
+++ b/DevHive.code-workspace
@@ -12,7 +12,8 @@
".gitignore" : true,
"**/README.md" : true,
"**/LICENSE" : true,
- "**/Properties" : true
+ "**/Properties" : true,
+ "**/*.code-workspace" : true
}
}
} \ No newline at end of file
diff --git a/DevHive.sln b/DevHive.sln
index 120dcb8..2f07003 100644
--- a/DevHive.sln
+++ b/DevHive.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "API", "API\API.csproj", "{A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web", "Web\Web.csproj", "{980ABDFB-488C-4A76-9F5A-116191F51CD4}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models\Models.csproj", "{37478C6A-562D-41CD-9F02-88BC74A74F04}"
+EndProject
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -44,5 +46,17 @@ Global
{980ABDFB-488C-4A76-9F5A-116191F51CD4}.Release|x64.Build.0 = Release|Any CPU
{980ABDFB-488C-4A76-9F5A-116191F51CD4}.Release|x86.ActiveCfg = Release|Any CPU
{980ABDFB-488C-4A76-9F5A-116191F51CD4}.Release|x86.Build.0 = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|x64.Build.0 = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Debug|x86.Build.0 = Debug|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|Any CPU.Build.0 = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|x64.ActiveCfg = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|x64.Build.0 = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|x86.ActiveCfg = Release|Any CPU
+ {37478C6A-562D-41CD-9F02-88BC74A74F04}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
diff --git a/Models/Models.csproj b/Models/Models.csproj
new file mode 100644
index 0000000..abb6514
--- /dev/null
+++ b/Models/Models.csproj
@@ -0,0 +1,8 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net5.0</TargetFramework>
+ <RootNamespace>Models</RootNamespace>
+ </PropertyGroup>
+
+</Project>
diff --git a/Web/Web.code-workspace b/Web/Web.code-workspace
new file mode 100644
index 0000000..875e3c8
--- /dev/null
+++ b/Web/Web.code-workspace
@@ -0,0 +1,19 @@
+{
+ "folders": [
+ {
+ "path": "."
+ }
+ ],
+ "settings": {
+ "files.exclude": {
+ "**/.vscode": true,
+ "**/bin": true,
+ "**/obj": true,
+ ".gitignore" : true,
+ "**/README.md" : true,
+ "**/LICENSE" : true,
+ "**/Properties" : true,
+ "**/*.code-workspace" : true
+ }
+ }
+} \ No newline at end of file
diff --git a/Web/Web.csproj b/Web/Web.csproj
index 9ebe29d..4885696 100644
--- a/Web/Web.csproj
+++ b/Web/Web.csproj
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
+ <ItemGroup>
+ <ProjectReference Include="..\Models\Models.csproj" />
+ </ItemGroup>
+
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Web</RootNamespace>