From cb905e9748caacc9bbdddc5846a364fd4a57f257 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Sat, 5 Apr 2025 19:58:03 +0500 Subject: [PATCH] Move to FastMapper package name Change README to include new name, point to relationship with AutoMapper. Configure Myget feed --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- Build.ps1 | 2 +- CONTRIBUTING.md | 18 +++++++----------- README.md | 30 ++++++++++++++++-------------- src/AutoMapper/AutoMapper.csproj | 2 +- 6 files changed, 27 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 794d6e13..5f709504 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: shell: pwsh - name: Push to MyGet env: - NUGET_URL: https://www.myget.org/F/automapperdev/api/v3/index.json + NUGET_URL: https://www.myget.org/F/fastmapperdev/api/v3/index.json NUGET_API_KEY: ${{ secrets.MYGET_CI_API_KEY }} run: ./Push.ps1 shell: pwsh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cec7204..b2d6157b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: shell: pwsh - name: Push to MyGet env: - NUGET_URL: https://www.myget.org/F/automapperdev/api/v3/index.json + NUGET_URL: https://www.myget.org/F/fastmapperdev/api/v3/index.json NUGET_API_KEY: ${{ secrets.MYGET_CI_API_KEY }} run: ./Push.ps1 shell: pwsh diff --git a/Build.ps1 b/Build.ps1 index f78e52ab..ca60223b 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -26,6 +26,6 @@ $artifacts = ".\artifacts" if(Test-Path $artifacts) { Remove-Item $artifacts -Force -Recurse } -exec { & dotnet test -c Release --results-directory $artifacts -l trx } +exec { & dotnet test -c Release --results-directory $artifacts -l trx /bl:$artifacts\FastMapper.binlog } exec { & dotnet pack .\src\AutoMapper\AutoMapper.csproj -c Release -o $artifacts --no-build } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ae474130..2fa20da6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Then we can decide if and how a feature or a change could be implemented and if Also read this first: [Being a good open source citizen](https://hackernoon.com/being-a-good-open-source-citizen-9060d0ab9732#.x3hocgw85) ## General feedback and discussions -Please start a discussion on the [core repo issue tracker](https://github.com/AutoMapper/AutoMapper/issues). +Please start a discussion on the [core repo issue tracker](https://github.com/kant2002/FastMapper/issues). ## Platform AutoMapper is built using the RTM tooling that ships with the latest Visual Studio. This is the only configuration accepted. @@ -18,32 +18,28 @@ Run the PowerShell script `Build.ps1` from the command line. This builds and run ## Bugs and feature requests? Please log a new issue in the appropriate GitHub repo: -* [Core](https://github.com/AutoMapper/AutoMapper) -* [EF6 Extensions](https://github.com/AutoMapper/AutoMapper.EF6) +* [Core](https://github.com/kant2002/FastMapper) +* Other projects not forked, let me know in issues. + ## Filing issues The best way to get your bug fixed is to be as detailed as you can be about the problem. Providing a minimal project with steps to reproduce the problem is ideal. Here are questions you can answer before you file a bug to make sure you're not missing any important information. -1. Did you read the [documentation](https://automapper.readthedocs.io/en/latest/)? +1. Did you read the [documentation](https://automapper.readthedocs.io/en/latest/)? *For now, use AutoMapper docs, but I will give other resource soon* 2. Did you include the snippet of broken code in the issue? 3. What are the *EXACT* steps to reproduce this problem (including source/destination types, mapping configuration and execution)? -GitHub supports [markdown](https://github.github.com/github-flavored-markdown/), so when filing bugs make sure you check the formatting before clicking submit. - ## Contributing code and content You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) before submitting your pull request. Make sure you can build the code. Familiarize yourself with the project workflow and our coding conventions. If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. -**We only accept PRs to the master branch.** +**We only accept PRs to the main branch.** Before submitting a feature or substantial code contribution please discuss it with the team and ensure it follows the product roadmap. Here's a list of blog posts that are worth reading before doing a pull request: diff --git a/README.md b/README.md index 0090ca9f..167ba1a1 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,18 @@ -![AutoMapper](https://s3.amazonaws.com/automapper/logo.png) +![FastMapper](https://s3.amazonaws.com/automapper/logo.png) -[![CI](https://github.com/automapper/automapper/workflows/CI/badge.svg)](https://github.com/AutoMapper/AutoMapper/actions?query=workflow%3ACI) -[![NuGet](http://img.shields.io/nuget/vpre/AutoMapper.svg?label=NuGet)](https://www.nuget.org/packages/AutoMapper/) -[![MyGet (dev)](https://img.shields.io/myget/automapperdev/vpre/AutoMapper.svg?label=MyGet)](https://myget.org/feed/automapperdev/package/nuget/AutoMapper) +[![CI](https://github.com/kant2002/fasmapper/workflows/CI/badge.svg)](https://github.com/kant2002/FastMapper/actions?query=workflow%3ACI) +[![NuGet](http://img.shields.io/nuget/vpre/FastMapper.svg?label=NuGet)](https://www.nuget.org/packages/FastMapper/) +[![MyGet (dev)](https://img.shields.io/myget/fastmapperdev/vpre/AutoMapper.svg?label=MyGet)](https://myget.org/feed/automapperdev/package/nuget/FastMapper) [![Documentation Status](https://readthedocs.org/projects/automapper/badge/?version=stable)](https://docs.automapper.org/en/stable/?badge=stable) -### What is AutoMapper? +### What is FastMapper? -AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us? +FastMapper is binary compatible fork with v14.0 -This is the main repository for AutoMapper, but there's more: +FastMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us? + +This is the fork of main repository for AutoMapper, but there's more, which I do not fork. Please let me know in the issues if you want that: * [Collection Extensions](https://github.com/AutoMapper/AutoMapper.Collection) * [Expression Mapping](https://github.com/AutoMapper/AutoMapper.Extensions.ExpressionMapping) @@ -20,7 +22,7 @@ This is the main repository for AutoMapper, but there's more: ### How do I get started? -First, configure AutoMapper to know what types you want to map, in the startup of your application: +First, configure FastMapper to know what types you want to map, in the startup of your application: ```csharp var configuration = new MapperConfiguration(cfg => @@ -42,18 +44,18 @@ var fooDto = mapper.Map(foo); var barDto = mapper.Map(bar); ``` -Check out the [getting started guide](https://automapper.readthedocs.io/en/latest/Getting-started.html). When you're done there, the [wiki](https://automapper.readthedocs.io/en/latest/) goes in to the nitty-gritty details. If you have questions, you can post them to [Stack Overflow](https://stackoverflow.com/questions/tagged/automapper) or in our [Gitter](https://gitter.im/AutoMapper/AutoMapper). +Check out the [getting started guide](https://automapper.readthedocs.io/en/latest/Getting-started.html). When you're done there, the [wiki](https://automapper.readthedocs.io/en/latest/) goes in to the nitty-gritty details. If you have questions, you can post them to [Stack Overflow](https://stackoverflow.com/questions/tagged/automapper) ### Where can I get it? -First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install [AutoMapper](https://www.nuget.org/packages/AutoMapper/) from the package manager console: +First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install [AutoMapper](https://www.nuget.org/packages/FastMapper/) from the package manager console: ``` -PM> Install-Package AutoMapper +PM> Install-Package FastMapper ``` Or from the .NET CLI as: ``` -dotnet add package AutoMapper +dotnet add package FastMapper ``` ### Do you have an issue? @@ -71,6 +73,6 @@ For more information see the [.NET Foundation Code of Conduct](https://dotnetfou AutoMapper is Copyright © 2009 [Jimmy Bogard](https://jimmybogard.com) and other contributors under the [MIT license](https://github.com/AutoMapper/AutoMapper?tab=MIT-1-ov-file#MIT-1-ov-file). -### .NET Foundation + diff --git a/src/AutoMapper/AutoMapper.csproj b/src/AutoMapper/AutoMapper.csproj index adb0aeb4..91cb6463 100644 --- a/src/AutoMapper/AutoMapper.csproj +++ b/src/AutoMapper/AutoMapper.csproj @@ -9,7 +9,7 @@ ..\..\AutoMapper.snk true true - AutoMapper + FastMapper icon.png https://automapper.org README.md