Intial commit. THe bare bones of a REST .NET Core app have been made.

This commit is contained in:
2021-01-01 00:57:07 -08:00
commit 26c59555ab
81 changed files with 12064 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "5.0.1",
"commands": [
"dotnet-ef"
]
}
}
}
@@ -0,0 +1,35 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SecureCore.Services;
namespace SecureCore.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class EmployeeController : Controller
{
private readonly IDataService DataService;
public EmployeeController(IDataService dataService)
{
DataService = dataService;
}
[HttpGet]
public IActionResult Get()
{
return Ok(DataService.Get());
}
[HttpGet("{id}", Name = "Get")]
public IActionResult Get(int id)
{
return Ok(DataService.GetById(id));
}
}
}
@@ -0,0 +1,39 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SecureCore.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
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;
}
[HttpGet]
public IEnumerable<WeatherForecast> Get()
{
var rng = new Random();
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = rng.Next(-20, 55),
Summary = Summaries[rng.Next(Summaries.Length)]
})
.ToArray();
}
}
}
+14
View File
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SecureCore.Models
{
public class Employee
{
public int ID { get; set; }
public string Name { get; set; }
}
}
+31
View File
@@ -0,0 +1,31 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace SecureCore
{
public class Program
{
public static void Main(string[] args)
{
//CreateHostBuilder(args).Build().Run();
CreateWebHostBuilder(args).Run();
}
//public static IHostBuilder CreateHostBuilder(string[] args) =>
// Host.CreateDefaultBuilder(args)
// .ConfigureWebHostDefaults(webBuilder =>
// {
// webBuilder.UseStartup<Startup>();
// });
public static IWebHost CreateWebHostBuilder(string[] args)
{
return new WebHostBuilder().UseKestrel().UseContentRoot(Directory.GetCurrentDirectory()).UseUrls("http://*:5000").UseIISIntegration().UseStartup<Startup>().Build();
}
}
}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>True</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>C:\pub</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>netcoreapp3.1</TargetFramework>
<ProjectGuid>54262d78-f047-4693-a998-21e024113afe</ProjectGuid>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PublishTargetUrl>C:\pub</_PublishTargetUrl>
</PropertyGroup>
</Project>
+30
View File
@@ -0,0 +1,30 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50232",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"SecureCore": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
+9
View File
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UserSecretsId>e3dff1d0-8e29-4bc2-8020-8999a38530f3</UserSecretsId>
</PropertyGroup>
</Project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Controller_SelectedScaffolderID>MvcControllerWithActionsScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>
+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SecureCore.Models;
namespace SecureCore.Services
{
public class DataService : IDataService
{
private readonly List<Employee> Employees = new List<Employee>();
public DataService()
{
Employees.Add(new Employee() { ID = 0, Name = "Number 1" });
Employees.Add(new Employee() { ID = 1, Name = "Number 2" });
Employees.Add(new Employee() { ID = 2, Name = "Number 3" });
Employees.Add(new Employee() { ID = 3, Name = "Number 4" });
}
public List<Employee> Get()
{
return Employees;
}
public Employee GetById(int id)
{
return Employees.Single(x => x.ID == id);
}
}
}
+14
View File
@@ -0,0 +1,14 @@
using SecureCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SecureCore.Services
{
public interface IDataService
{
List<Employee> Get();
Employee GetById(int id);
}
}
+52
View File
@@ -0,0 +1,52 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SecureCore.Models;
using SecureCore.Services;
namespace SecureCore
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IDataService, DataService>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Latest);
//services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
+15
View File
@@ -0,0 +1,15 @@
using System;
namespace SecureCore
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\admin\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\admin\\.nuget\\packages"
]
}
}
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "3.1.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\admin\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\admin\\.nuget\\packages"
]
}
}
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "3.1.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("e3dff1d0-8e29-4bc2-8020-8999a38530f3")]
[assembly: System.Reflection.AssemblyCompanyAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyTitleAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
17452d664451727afc2a665908458ff84f176f93
@@ -0,0 +1 @@
255c6f799c1ef1b1b7ac4f69e9ca737a8e1db09d
@@ -0,0 +1 @@
25f50bd832f636a416eb773cc8db7fa1c945bb2c
@@ -0,0 +1,20 @@
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\appsettings.Development.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\appsettings.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.exe
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.deps.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.runtimeconfig.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.runtimeconfig.dev.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Debug\netcoreapp3.1\SecureCore.pdb
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.csprojAssemblyReference.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.AssemblyInfoInputs.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.AssemblyInfo.cs
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.csproj.CoreCompileInputs.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.MvcApplicationPartsAssemblyInfo.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\staticwebassets\SecureCore.StaticWebAssets.Manifest.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\staticwebassets\SecureCore.StaticWebAssets.xml
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\scopedcss\bundle\SecureCore.styles.css
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.RazorTargetAssemblyInfo.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.pdb
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Debug\netcoreapp3.1\SecureCore.genruntimeconfig.cache
Binary file not shown.
@@ -0,0 +1 @@
ee70aa993eacaf9a5e33fd4b4886ab7cb301532d
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
<StaticWebAssets Version="1.0" />
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "3.1.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\SecureCore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 54262d78-f047-4693-a998-21e024113afe-->
@@ -0,0 +1,7 @@
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.exe
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\appsettings.Development.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\appsettings.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.deps.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.runtimeconfig.json
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\PubTmp\Out\SecureCore.pdb
@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("e3dff1d0-8e29-4bc2-8020-8999a38530f3")]
[assembly: System.Reflection.AssemblyCompanyAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyTitleAttribute("SecureCore")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
bd9b42e28f5d4a6267f3ff1048ad19486e89e204
@@ -0,0 +1 @@
3c4ca9d77de062243efb59e1e12123a87eb44e18
@@ -0,0 +1 @@
707cc6b556c13148aa191cb544faa8d46927ce06
@@ -0,0 +1,20 @@
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\appsettings.Development.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\appsettings.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.exe
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.deps.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.runtimeconfig.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.runtimeconfig.dev.json
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\bin\Release\netcoreapp3.1\SecureCore.pdb
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.csprojAssemblyReference.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.AssemblyInfoInputs.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.AssemblyInfo.cs
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.csproj.CoreCompileInputs.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.MvcApplicationPartsAssemblyInfo.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\staticwebassets\SecureCore.StaticWebAssets.Manifest.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\staticwebassets\SecureCore.StaticWebAssets.xml
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\scopedcss\bundle\SecureCore.styles.css
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.RazorTargetAssemblyInfo.cache
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.dll
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.pdb
C:\Users\admin\source\repos\SecureCore\SecureCore\obj\Release\netcoreapp3.1\SecureCore.genruntimeconfig.cache
Binary file not shown.
@@ -0,0 +1 @@
ee70aa993eacaf9a5e33fd4b4886ab7cb301532d
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
<StaticWebAssets Version="1.0" />
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="GetEFProjectMetadata" Condition="">
<MSBuild Condition=" '$(TargetFramework)' == '' "
Projects="$(MSBuildProjectFile)"
Targets="GetEFProjectMetadata"
Properties="TargetFramework=$(TargetFrameworks.Split(';')[0]);EFProjectMetadataFile=$(EFProjectMetadataFile)" />
<ItemGroup Condition=" '$(TargetFramework)' != '' ">
<EFProjectMetadata Include="AssemblyName: $(AssemblyName)" />
<EFProjectMetadata Include="Language: $(Language)" />
<EFProjectMetadata Include="OutputPath: $(OutputPath)" />
<EFProjectMetadata Include="Platform: $(Platform)" />
<EFProjectMetadata Include="PlatformTarget: $(PlatformTarget)" />
<EFProjectMetadata Include="ProjectAssetsFile: $(ProjectAssetsFile)" />
<EFProjectMetadata Include="ProjectDir: $(ProjectDir)" />
<EFProjectMetadata Include="RootNamespace: $(RootNamespace)" />
<EFProjectMetadata Include="RuntimeFrameworkVersion: $(RuntimeFrameworkVersion)" />
<EFProjectMetadata Include="TargetFileName: $(TargetFileName)" />
<EFProjectMetadata Include="TargetFrameworkMoniker: $(TargetFrameworkMoniker)" />
</ItemGroup>
<WriteLinesToFile Condition=" '$(TargetFramework)' != '' "
File="$(EFProjectMetadataFile)"
Lines="@(EFProjectMetadata)" />
</Target>
</Project>
@@ -0,0 +1,65 @@
{
"format": 1,
"restore": {
"C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj": {}
},
"projects": {
"C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
"projectName": "SecureCore",
"projectPath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
"packagesPath": "C:\\Users\\admin\\.nuget\\packages\\",
"outputPath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\admin\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\admin\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
+70
View File
@@ -0,0 +1,70 @@
{
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {}
},
"libraries": {},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": []
},
"packageFolders": {
"C:\\Users\\admin\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
"projectName": "SecureCore",
"projectPath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
"packagesPath": "C:\\Users\\admin\\.nuget\\packages\\",
"outputPath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\admin\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "9FQAdWJG89/k6D0GaFBO0LTdH1bJLNLf/t03TJ8KG7JJrHo16V/4RK3ghJk2Sms/7C9fpATlx8iJQ/EL/gOZrA==",
"success": true,
"projectFilePath": "C:\\Users\\admin\\source\\repos\\SecureCore\\SecureCore\\SecureCore.csproj",
"expectedPackageFiles": [],
"logs": []
}