Skip to content

Commit

Permalink
Move resx to resources folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Gramli committed Nov 30, 2023
1 parent 62686e6 commit b31f57a
Show file tree
Hide file tree
Showing 21 changed files with 30 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Weather.Core.Abstractions;
using Weather.Core.Commands;
using Weather.Core.Resources;
using Weather.Domain.Dtos.Commands;
using Weather.Domain.Logging;
using Weather.UnitTests.Common.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Validot.Results;
using Weather.Core.Abstractions;
using Weather.Core.Queries;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Dtos.Queries;
using Weather.Domain.Logging;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Weather.Core.Abstractions;
using Weather.Core.Queries;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Http;
using Weather.Domain.Logging;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Validot.Results;
using Weather.Core.Abstractions;
using Weather.Core.Queries;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Dtos.Queries;
using Weather.Domain.Logging;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Weather.Core.Abstractions;
using Weather.Domain.Dtos;
using Weather.Infrastructure.Resources;
using Weather.Infrastructure.Services;
using Wheaterbit.Client.Abstractions;
using Wheaterbit.Client.Dtos;
Expand Down
1 change: 1 addition & 0 deletions src/Weather.Core/Commands/AddFavoriteHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.Extensions.Logging;
using Validot;
using Weather.Core.Abstractions;
using Weather.Core.Resources;
using Weather.Domain.Dtos.Commands;
using Weather.Domain.Extensions;
using Weather.Domain.Http;
Expand Down
3 changes: 2 additions & 1 deletion src/Weather.Core/Queries/GetCurrentWeatherHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
using Microsoft.Extensions.Logging;
using Validot;
using Weather.Core.Abstractions;
using Weather.Domain;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Dtos.Queries;
using Weather.Domain.Extensions;
using Weather.Domain.Http;
using Weather.Domain.Logging;
using Weather.Domain.Resources;

namespace Weather.Core.Queries
{
Expand Down
3 changes: 2 additions & 1 deletion src/Weather.Core/Queries/GetFavoritesHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
using Microsoft.Extensions.Logging;
using Validot;
using Weather.Core.Abstractions;
using Weather.Domain;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Extensions;
using Weather.Domain.Http;
using Weather.Domain.Logging;
using Weather.Domain.Resources;

namespace Weather.Core.Queries
{
Expand Down
3 changes: 2 additions & 1 deletion src/Weather.Core/Queries/GetForecastWeatherHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
using Microsoft.Extensions.Logging;
using Validot;
using Weather.Core.Abstractions;
using Weather.Domain;
using Weather.Core.Resources;
using Weather.Domain.Dtos;
using Weather.Domain.Dtos.Queries;
using Weather.Domain.Extensions;
using Weather.Domain.Http;
using Weather.Domain.Logging;
using Weather.Domain.Resources;

namespace Weather.Core.Queries
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
4 changes: 2 additions & 2 deletions src/Weather.Core/Weather.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
</ItemGroup>

<ItemGroup>
<Compile Update="ErrorMessages.Designer.cs">
<Compile Update="Resources\ErrorMessages.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ErrorMessages.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="ErrorMessages.resx">
<EmbeddedResource Update="Resources\ErrorMessages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorMessages.Designer.cs</LastGenOutput>
</EmbeddedResource>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
6 changes: 3 additions & 3 deletions src/Weather.Domain/Weather.Domain.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -11,15 +11,15 @@
</ItemGroup>

<ItemGroup>
<Compile Update="ErrorLogMessages.Designer.cs">
<Compile Update="Resources\ErrorLogMessages.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ErrorLogMessages.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="ErrorLogMessages.resx">
<EmbeddedResource Update="Resources\ErrorLogMessages.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorLogMessages.Designer.cs</LastGenOutput>
</EmbeddedResource>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ private static IServiceCollection AddServices(this IServiceCollection serviceCol
private static IServiceCollection AddMapping(this IServiceCollection serviceCollection)
{
return serviceCollection
.AddAutoMapper(typeof(WeatherEntitiesProfile));
.AddAutoMapper(typeof(WeatherEntitiesProfile))
.AddAutoMapper(typeof(WeatherbitClientProfile));
}

private static IServiceCollection AddDatabase(this IServiceCollection serviceCollection)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Weather.Infrastructure.Mapping.Profiles
{
internal sealed class ExternalClientsProfile : Profile
internal sealed class WeatherbitClientProfile : Profile
{
public ExternalClientsProfile()
public WeatherbitClientProfile()
{
CreateMap<Wheaterbit.Client.Dtos.CurrentWeatherDto, Domain.Dtos.CurrentWeatherDto>()
.ForMember(dest=>dest.Temperature, opt => opt.MapFrom(src => src.temp))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Weather.Infrastructure/Services/WeatherService.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Ardalis.GuardClauses;
using AutoMapper;
using FluentResults;
using Microsoft.Extensions.Logging;
using Weather.Core.Abstractions;
using Weather.Domain.Dtos;
using Weather.Domain.Extensions;
using Weather.Infrastructure.Resources;
using Wheaterbit.Client.Abstractions;

namespace Weather.Infrastructure.Services
Expand Down
4 changes: 2 additions & 2 deletions src/Weather.Infrastructure/Weather.Infrastructure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
</ItemGroup>

<ItemGroup>
<Compile Update="ErrorMessages.Designer.cs">
<Compile Update="Resources\ErrorMessages.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ErrorMessages.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="ErrorMessages.resx">
<EmbeddedResource Update="Resources\ErrorMessages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorMessages.Designer.cs</LastGenOutput>
</EmbeddedResource>
Expand Down

0 comments on commit b31f57a

Please sign in to comment.