Skip to content

Commit

Permalink
add managers
Browse files Browse the repository at this point in the history
  • Loading branch information
ID-JA committed Aug 6, 2021
1 parent eff02fb commit 34e2a5e
Show file tree
Hide file tree
Showing 19 changed files with 302 additions and 218 deletions.
2 changes: 1 addition & 1 deletion BACK_END/.vs/MY_CALS_BACKEND/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
</site>
<site name="MY_CALS_BACKEND" id="2">
<application path="/" applicationPool="MY_CALS_BACKEND AppPool">
<virtualDirectory path="/" physicalPath="C:\Users\hewlettpackard\Desktop\MyCals\BACK_END" />
<virtualDirectory path="/" physicalPath="E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:48957:localhost" />
Expand Down
Binary file modified BACK_END/.vs/MY_CALS_BACKEND/v16/.suo
Binary file not shown.
63 changes: 51 additions & 12 deletions BACK_END/Controllers/AdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using MY_CALS_BACKEND.Dto;
using MY_CALS_BACKEND.Dto.Meals;
using MY_CALS_BACKEND.Dto.UserAccount;
using MY_CALS_BACKEND.Models;
Expand All @@ -24,15 +25,17 @@ public class AdminController : ControllerBase
private readonly IRepoMeals _repoMeals;
private readonly IMapper _mapper;
private readonly UserManager<UserAccount> _userManager;
private readonly RoleManager<Role> _roleManager;
private int userId;


public AdminController(IRepoUserAccount repoUserAccount, IMapper mapper, UserManager<UserAccount> userManager, IHttpContextAccessor httpContextAccessor, IRepoMeals repoMeals)
public AdminController(IRepoUserAccount repoUserAccount, IMapper mapper, UserManager<UserAccount> userManager, RoleManager<Role> roleManager, IHttpContextAccessor httpContextAccessor, IRepoMeals repoMeals)
{
_repoUserAccount = repoUserAccount;
_repoMeals = repoMeals;
_mapper = mapper;
_userManager = userManager;
_roleManager = roleManager;
userId = Int32.Parse(httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value);
}

Expand All @@ -56,6 +59,7 @@ public async Task<IActionResult> GetUsers()
return Ok(usersForDisplayDTO);
}


[HttpGet("users/{id}")]
public async Task<IActionResult> GetUserInfo(int id)
{
Expand All @@ -74,6 +78,48 @@ public async Task<IActionResult> GetUserInfo(int id)
return NotFound("This user dosen't existe 💢 ");
}

[HttpPost("addmanager")]
public async Task<IActionResult> AddManger(UserRegisterDTO userRegisterDTO)
{
var checkedEmail = await _userManager.FindByEmailAsync(userRegisterDTO.Email);

var user = _mapper.Map<UserAccount>(userRegisterDTO);

if (checkedEmail != null)
{
return BadRequest("This email already exist try again");
}
else
{
user.UserName = userRegisterDTO.Email.Split("@")[0] + userRegisterDTO.Email.Split("@")[1];
}

if (await _roleManager.RoleExistsAsync("Admin") == false && await _roleManager.RoleExistsAsync("Manager") == false && await _roleManager.RoleExistsAsync("User") == false)
{
var roles = new List<Role>{
new Role{Name="Admin"},
new Role{Name="Manager"},
new Role{Name="User"},

};

foreach (var role in roles)
{
await _roleManager.CreateAsync(role);
}
}

var Result = await _userManager.CreateAsync(user, userRegisterDTO.Password);

if (Result.Succeeded)
{
//var confirmaEmailToken = await _userManager.GenerateEmailConfirmationTokenAsync(user);
await _userManager.AddToRoleAsync(user, userRegisterDTO.Role);
return Ok("User Created Successfully");
}
return BadRequest(Result.Errors);
}


[HttpGet("users/{id}/meals")]
public async Task<IActionResult> GetUserMeals(int id)
Expand All @@ -98,7 +144,6 @@ public async Task<IActionResult> GetUserMeals(int id)
}

[HttpGet("users/{id}/meals/{id_meal}")]

public async Task<IActionResult> GetUserMeal(int id, int id_meal)
{
var user = await _repoUserAccount.GetUserById(id);
Expand All @@ -120,15 +165,14 @@ public async Task<IActionResult> GetUserMeal(int id, int id_meal)
}

[HttpDelete("users/{id}/meals/{id_meal}/delete")]

public async Task<IActionResult> DeleteUserMeal(int id, int id_meal)
{
var user = await _repoUserAccount.GetUserById(id);
if (user != null)
{
if (user.Id != userId)
{
await _repoMeals.DeleteMeal(id_meal);
await _repoMeals.DeleteMeal(id_meal);
var result = await _repoMeals.SaveMeal();
if (result)
{
Expand All @@ -142,21 +186,16 @@ public async Task<IActionResult> DeleteUserMeal(int id, int id_meal)
}

[HttpPut("users/{id}/meals/{id_meal}/edit")]

public async Task<IActionResult> EditUserMeal(int id, int id_meal,MealForEditDTO mealForEditDTO)
public async Task<IActionResult> EditUserMeal(int id, int id_meal, MealForEditDTO mealForEditDTO)
{
var user = await _repoUserAccount.GetUserById(id);
if (user != null)
{
if (user.Id != userId)
{
await _repoMeals.EditMeal(id_meal,mealForEditDTO) ;
await _repoMeals.EditMeal(id_meal, mealForEditDTO);
var result = await _repoMeals.SaveMeal();
if (result)
{
return Ok("This Meal has been updated successfully 👍 !!!");
}
return NotFound("This meal dosen't existe 💢!!!");
return result ? Ok("This Meal has been updated successfully 👍 !!!") : (IActionResult)NotFound("This meal dosen't existe 💢!!!");
}
return BadRequest("Bad Action 😑 !!!");
}
Expand Down
2 changes: 1 addition & 1 deletion BACK_END/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
},
"ConnectionStrings": {
"SqlConnection": "Server=DESKTOP-GBO431B\\SQLEXPRESS;Initial Catalog=MyCalcsDB; Integrated Security=true;"
"SqlConnection": "Server=DESKTOP-3C9CT52;Initial Catalog=MyCalcsDB; Integrated Security=true;"
},

"AllowedHosts": "*",
Expand Down
Binary file modified BACK_END/bin/Debug/netcoreapp3.1/MY_CALS_BACKEND.dll
Binary file not shown.
Binary file modified BACK_END/bin/Debug/netcoreapp3.1/MY_CALS_BACKEND.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\hewlettpackard\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\hewlettpackard\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
"C:\\Users\\idais\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\idais\\.nuget\\packages"
]
}
}
2 changes: 1 addition & 1 deletion BACK_END/bin/Debug/netcoreapp3.1/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
},
"ConnectionStrings": {
"SqlConnection": "Server=DESKTOP-GBO431B\\SQLEXPRESS;Initial Catalog=MyCalcsDB; Integrated Security=true;"
"SqlConnection": "Server=DESKTOP-3C9CT52;Initial Catalog=MyCalcsDB; Integrated Security=true;"
},

"AllowedHosts": "*",
Expand Down
Binary file modified BACK_END/obj/Debug/netcoreapp3.1/MY_CALS_BACKEND.assets.cache
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2599b1a324d1c98f2289aa75d8588aa9c16aa9b2
a825c81863ba845020c1d2edc9a8d780f2499010
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,59 @@ C:\Users\hewlettpackard\Desktop\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_
C:\Users\hewlettpackard\Desktop\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.dll
C:\Users\hewlettpackard\Desktop\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.pdb
C:\Users\hewlettpackard\Desktop\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.genruntimeconfig.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\appsettings.Development.json
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\appsettings.json
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.exe
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.deps.json
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.runtimeconfig.json
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.runtimeconfig.dev.json
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\MY_CALS_BACKEND.pdb
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\AutoMapper.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\AutoMapper.Extensions.Microsoft.DependencyInjection.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.AspNetCore.Authentication.JwtBearer.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.AspNetCore.Identity.EntityFrameworkCore.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.Bcl.AsyncInterfaces.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.Bcl.HashCode.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.Data.SqlClient.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Abstractions.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Design.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Relational.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.Relational.Design.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.SqlServer.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.EntityFrameworkCore.SqlServer.Design.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.Identity.Client.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.JsonWebTokens.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.Logging.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.Protocols.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Microsoft.IdentityModel.Tokens.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\SendGrid.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\StarkbankEcdsa.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\System.Configuration.ConfigurationManager.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\System.IdentityModel.Tokens.Jwt.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\System.Runtime.Caching.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\System.Security.Cryptography.ProtectedData.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.1\Microsoft.Data.SqlClient.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.1\Microsoft.Data.SqlClient.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win-arm64\native\sni.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win-x64\native\sni.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win-x86\native\sni.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.0\System.Runtime.Caching.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Runtime.Caching.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\bin\Debug\netcoreapp3.1\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.csproj.AssemblyReference.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.AssemblyInfoInputs.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.AssemblyInfo.cs
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.csproj.CoreCompileInputs.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.MvcApplicationPartsAssemblyInfo.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\staticwebassets\MY_CALS_BACKEND.StaticWebAssets.Manifest.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\staticwebassets\MY_CALS_BACKEND.StaticWebAssets.xml
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\scopedcss\bundle\MY_CALS_BACKEND.styles.css
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.RazorTargetAssemblyInfo.cache
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.csproj.CopyComplete
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.dll
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.pdb
E:\User_ID\Data\Dev\Builds .NET\MY_CALS\MyCals\BACK_END\obj\Debug\netcoreapp3.1\MY_CALS_BACKEND.genruntimeconfig.cache
Binary file modified BACK_END/obj/Debug/netcoreapp3.1/MY_CALS_BACKEND.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74fbb1e38c518357b32aea52232d8549d03c3622
246a26c22267944f16d4f93ebc808e868dc58160
Binary file modified BACK_END/obj/Debug/netcoreapp3.1/MY_CALS_BACKEND.pdb
Binary file not shown.
20 changes: 8 additions & 12 deletions BACK_END/obj/MY_CALS_BACKEND.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{
"format": 1,
"restore": {
"C:\\Users\\hewlettpackard\\Desktop\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj": {}
"E:\\User_ID\\Data\\Dev\\Builds .NET\\MY_CALS\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj": {}
},
"projects": {
"C:\\Users\\hewlettpackard\\Desktop\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj": {
"E:\\User_ID\\Data\\Dev\\Builds .NET\\MY_CALS\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\hewlettpackard\\Desktop\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj",
"projectUniqueName": "E:\\User_ID\\Data\\Dev\\Builds .NET\\MY_CALS\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj",
"projectName": "MY_CALS_BACKEND",
"projectPath": "C:\\Users\\hewlettpackard\\Desktop\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj",
"packagesPath": "C:\\Users\\hewlettpackard\\.nuget\\packages\\",
"outputPath": "C:\\Users\\hewlettpackard\\Desktop\\MyCals\\BACK_END\\obj\\",
"projectPath": "E:\\User_ID\\Data\\Dev\\Builds .NET\\MY_CALS\\MyCals\\BACK_END\\MY_CALS_BACKEND.csproj",
"packagesPath": "C:\\Users\\idais\\.nuget\\packages\\",
"outputPath": "E:\\User_ID\\Data\\Dev\\Builds .NET\\MY_CALS\\MyCals\\BACK_END\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\hewlettpackard\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Users\\idais\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
Expand Down Expand Up @@ -113,7 +109,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.205\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.302\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
11 changes: 5 additions & 6 deletions BACK_END/obj/MY_CALS_BACKEND.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<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\hewlettpackard\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\idais\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.9.1</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.10.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\hewlettpackard\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
<SourceRoot Include="C:\Users\idais\.nuget\packages\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
Expand All @@ -20,7 +19,7 @@
<Import Project="$(NuGetPackageRoot)microsoft.entityframeworkcore.design\3.1.0\build\netcoreapp2.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.entityframeworkcore.design\3.1.0\build\netcoreapp2.0\Microsoft.EntityFrameworkCore.Design.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\hewlettpackard\.nuget\packages\newtonsoft.json\10.0.1</PkgNewtonsoft_Json>
<PkgMicrosoft_EntityFrameworkCore_Tools Condition=" '$(PkgMicrosoft_EntityFrameworkCore_Tools)' == '' ">C:\Users\hewlettpackard\.nuget\packages\microsoft.entityframeworkcore.tools\3.1.0</PkgMicrosoft_EntityFrameworkCore_Tools>
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\idais\.nuget\packages\newtonsoft.json\10.0.1</PkgNewtonsoft_Json>
<PkgMicrosoft_EntityFrameworkCore_Tools Condition=" '$(PkgMicrosoft_EntityFrameworkCore_Tools)' == '' ">C:\Users\idais\.nuget\packages\microsoft.entityframeworkcore.tools\3.1.0</PkgMicrosoft_EntityFrameworkCore_Tools>
</PropertyGroup>
</Project>
Loading

0 comments on commit 34e2a5e

Please sign in to comment.