1、升级ABP CLI

见前面的文章:ABP开发需要用到的命令

更新最新版本:

~~~

dotnet tool update -g Volo.Abp.Cli

~~~

2、升级ABP Suite

见前面的文章:ABP开发需要用到的命令

更新abp suite

~~~

abp suite update

~~~

第一步和第二步的截图命令行效果如下

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.6.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS X:\change\biz\Divination> dotnet tool update -g Volo.Abp.Cli
工具“volo.abp.cli”已成功从版本“7.2.2”更新到版本“7.2.3”。
PS X:\change\biz\Divination> abp suite update
ABP CLI 7.2.3
1. HTTP request attempt failed to https://raw.githubusercontent.com/abpframework/abp/dev/latest-versions.json with an error: The requested name is valid, but no data of the requested type was found. (raw.githubusercontent.com:443). Waiting 2 secs for the next try...
2. HTTP request attempt failed to https://raw.githubusercontent.com/abpframework/abp/dev/latest-versions.json with an error: The requested name is valid, but no data of the requested type was found. (raw.githubusercontent.com:443). Waiting 4 secs for the next try...
3. HTTP request attempt failed to https://raw.githubusercontent.com/abpframework/abp/dev/latest-versions.json with an error: The requested name is valid, but no data of the requested type was found. (raw.githubusercontent.com:443). Waiting 7 secs for the next try...
Updating ABP Suite ...
工具“volo.abp.suite”已成功从版本“7.2.2”更新到版本“7.2.3”。
PS X:\change\biz\Divination>

3、服务器端Gitlab Runner自动集成

Gitlab的流水线控制台界面,报出大量的错误:

$ dotnet build "src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj" -c Release -p:Version=$COMMON_VERSION_ID
MSBuild version 17.4.0+18d5aef85 for .NET
Determining projects to restore...
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain/Yee.Change.Common.Domain.csproj : error NU1103: Unable to find a stable package Volo.Abp.Ddd.Domain with version (>= 7.2.3) [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain/Yee.Change.Common.Domain.csproj : error NU1103: - Found 162 version(s) in nuget.amicap.cn [ Nearest version: 7.3.0-rc.1 ] [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain/Yee.Change.Common.Domain.csproj : error NU1103: - Found 0 version(s) in abp [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain.Shared/Yee.Change.Common.Domain.Shared.csproj : error NU1103: Unable to find a stable package Volo.Abp.Validation with version (>= 7.2.3) [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain.Shared/Yee.Change.Common.Domain.Shared.csproj : error NU1103: - Found 162 version(s) in nuget.amicap.cn [ Nearest version: 7.3.0-rc.1 ] [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Domain.Shared/Yee.Change.Common.Domain.Shared.csproj : error NU1103: - Found 0 version(s) in abp [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]
/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Application.Contracts/Yee.Change.Common.Application.Contracts.csproj : error NU1103: Unable to find a stable package Volo.Abp.Ddd.Application.Contracts with version (>= 7.2.3) [/builds/xiPs9QzT/0/change/common/src/Yee.Change.Common.Host/Yee.Change.Common.Host.csproj]

原因是NuGet服务器里面,没有最新的ABP的7.2.3的包。我们的开发环境的NuGet服务器是基于Nexus 3搭建的,进入Nexus 3的管理界面,重置一下Nuget.org的代理的缓存。如下图所示:

再重新启动Gitlab的自动集成任务,一切正常了。

4、Blazor.Server.Host项目下的wwwroot目录中的libs文件夹的更新

1)删除yarn.lock

2) 执行命令abp install-libs

完整的命令执行日志如下

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.6.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS X:\change\biz\Divination\host\Yee.Change.Divination.Blazor.Server.Host> abp install-libs
ABP CLI 7.2.3
Found 1 projects.
X:\change\biz\Divination\host\Yee.Change.Divination.Blazor.Server.Host
Running Yarn on X:\change\biz\Divination\host\Yee.Change.Divination.Blazor.Server.Host
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/aspnetcore.mvc.ui > gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/core > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/aws-s3 > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/dashboard > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/dashboard > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/store-redux > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/cms-kit-pro.admin > @abp/cms-kit.admin > @abp/uppy > uppy > @uppy/xhr-upload > cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
warning @volo/language-management > @abp/flag-icon-css > flag-icon-css@4.1.7: The project has been renamed to flag-icons
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/bootstrap > bootstrap@5.3.0" has unmet peer dependency "@popperjs/core@^2.11.7".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 35.47s.
PS X:\change\biz\Divination\host\Yee.Change.Divination.Blazor.Server.Host>

3)观察一下yarn.lock的改动

5、用dotnet ef升级数据库

1)执行dotnet ef migrations add

效果如下

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.6.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS X:\change\biz\Divination\host\Yee.Change.Divination.Web.Unified> dotnet ef migrations add ABP_upgrade_7.2.3
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'
PS X:\change\biz\Divination\host\Yee.Change.Divination.Web.Unified>

2)Migrations目录下增加了一个文件,文件名就是上面第一步的命令后的参数

文件的内容如下

using System;
using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Yee.Change.Divination.Migrations
{
/// <inheritdoc />
public partial class ABPupgrade723 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTimeOffset>(
name: "LastPasswordChangeTime",
table: "AbpUsers",
type: "datetimeoffset",
nullable: true); migrationBuilder.AddColumn<bool>(
name: "ShouldChangePasswordOnNextLogin",
table: "AbpUsers",
type: "bit",
nullable: false,
defaultValue: false); migrationBuilder.CreateTable(
name: "AbpUserDelegations",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
SourceUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TargetUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
StartTime = table.Column<DateTime>(type: "datetime2", nullable: false),
EndTime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserDelegations", x => x.Id);
});
} /// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpUserDelegations"); migrationBuilder.DropColumn(
name: "LastPasswordChangeTime",
table: "AbpUsers"); migrationBuilder.DropColumn(
name: "ShouldChangePasswordOnNextLogin",
table: "AbpUsers");
}
}
}

3)用dotnet ef database update命令,将上述改动提交到数据库中执行

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.6.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS X:\change\biz\Divination\host\Yee.Change.Divination.Web.Unified> dotnet ef migrations add ABP_upgrade_7.2.3
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'
PS X:\change\biz\Divination\host\Yee.Change.Divination.Web.Unified> dotnet ef database update
Build started...
Build succeeded.
Applying migration '20230326101825_ABP_Upgrade_710'.
Applying migration '20230704040112_ABP_upgrade_7.2.3'.
Done.
PS X:\change\biz\Divination\host\Yee.Change.Divination.Web.Unified>

4)用数据库管理工具,查看数据库中的改动

至此,升级完成。

ABP的版本升级,从7.2.2升级到7.2.3的更多相关文章

  1. Android版本升级同时Sqlite数据库的升级及之前数据的保留

    http://www.cnblogs.com/wang340/archive/2013/05/06/3063135.html http://www.eoeandroid.com/forum.php?m ...

  2. ABP入门系列(12)——如何升级Abp并调试源码

    ABP入门系列目录--学习Abp框架之实操演练 源码路径:Github-LearningMpaAbp 1. 升级Abp 本系列教程是基于Abp V1.0版本,现在Abp版本已经升级至V1.4.2(截至 ...

  3. 生产环境的gitlab大版本升级思路(从7.x升级到8.x)

    之前在生产环境部署的gitlab是7.x版本的,提供给公司内部的员工来使用,大概有350个用户左右,gitlab从8.x版本之后内置了CI和CD的集成,所以就考虑到升级版本的问题 通过参考和总结git ...

  4. 【mysql升级步骤】windows mysql版本升级 ,mysql 5.6 升级到5.7.27

    最近博主由于工作原因需要把之前安装好的的mysql 5.6.44版本卸载,然后安装mysql 5.7.*版本. 前提:为什么要升级到5.7版本? 因为博主在5.6版本上执行脚本时候报出异常:to yo ...

  5. ABP Framework 手动升级指南:从6.0.1升级到7.0.0

    ABP 7.0.0 正式版已经发布,ABP-Framework-All-In-One 项目同步升级. LeptonX Lite Theme 目前还没有包含在源码解决方案中,还是以 Nuget 包提供, ...

  6. DB2版本升级(V9.7升级到V11.1)

    1.V11.1版本升级路线 DB2 11.1 可以将现有的 Db2 V9.7.Db2 V10.1 或 Db2 V10.5 实例和数据库直接升级到 Db2 V11.1.如果 Db2 服务器正在 Db2 ...

  7. 从Unity3D编译器升级聊起Mono

    接前篇Unity 5.3.5p8 C#编译器升级,本文侧重了解一些Mono的知识. Unity3D的编译器升级 新升级的Mono C#编译器(对应Mono 4.4) Unity编辑器及播放器所使用的M ...

  8. 使用SQLiteOpenHelper的onUpgrade实现数据库版本升级

    Andoird的SQLiteOpenHelper类中有一个onUpgrade方法.帮助文档中只是说当数据库升级时该方法被触发.经过实践,解决了我一连串的疑问: 1. 帮助文档里说的"数据库升 ...

  9. ABP理论学习之发布说明

    返回总目录 查看更详细信息以及下载源代码请查看原文档 ABP v0.9.2.0 | [更新日期:2016/6/6 11:21:28 ] 解决方案转换成xproj/project.json格式. 添加了 ...

  10. Android_SQLite版本升级,降级 管理

    今天我们主要学习了数据库版本升级对软件的管理操作. 我们手机经常会收到xxx软件升级什么的提醒,你的软件版本更新,同时你的数据库对应的版本也要相应的更新. 数据库版本更新需要主要的问题: 软件的1.0 ...

随机推荐

  1. JVM启动参数脚本的再学习与研究

    JVM启动参数脚本的再学习与研究 摘要 学无止境 前段时间一直再研究JVM参数调优. 但是最近也在想不应该仅研究如何调优. 因为不管怎么设置, 总有猪队友会把环境搞崩. 所以应该想办法在无人值守的情况 ...

  2. [转帖]技术派-汇编语言指令集(intel X86系列)

    针对汇编语言指令集(intel X86系列8086/80186/80286/80386/80486) AAA - Ascii Adjust for Addition        AAD - Asci ...

  3. Linux与Windows系统字符集的简要学习

    背景 最近同事反馈公司的产品再更新了mysql-8.0.31的驱动jar包后部分功能报错. 问题核心原因 研发这边石磊老师已经找到了. 结论是Mysql8.0.26之后的数据库驱动好像会识别操作系统的 ...

  4. Opentelemetry Metrics SDK

    Metrics SDK 目录 Metrics SDK 目标 期望 SDK 术语 数据流图表 要求 SDK MeterProvider Shutdown SDK:Instrument注册 SDK: Re ...

  5. 离开页面关闭video标签

    <video src="./play.mp4" id="maskmore_1" controls="controls" autopla ...

  6. 从零开始配置 vim(6)——缩写

    关于vim能快速编辑文本的能力,我们见识到了 operator + motion ,见识到了. 范式和宏.甚至可以使用命令来加快文本编辑.在后面我们又介绍了快捷键绑定来快速执行我们想要的操作.今天我们 ...

  7. vim 从嫌弃到依赖(4)—— .命令

    通过之前几篇文章的介绍,如果各位小伙伴能够勤加练习,并在日常工作上经常使用,那么相信那些内容已经会对工作效率的提升产生好的影响.但是如果那些就是vim的全部的话,我们也就没那么大的必要花这么大的精力来 ...

  8. 【四】-强化学习入门简介---PaddlePaddlle强化学习及PARL框架

    相关文章: [一]飞桨paddle[GPU.CPU]安装以及环境配置+python入门教学 [二]-Parl基础命令 [三]-Notebook.&pdb.ipdb 调试 [四]-强化学习入门简 ...

  9. 【五】gym搭建自己的环境之寻宝游戏,详细定义自己myenv.py文件以及算法实现

    相关文章: 相关文章: [一]gym环境安装以及安装遇到的错误解决 [二]gym初次入门一学就会-简明教程 [三]gym简单画图 [四]gym搭建自己的环境,全网最详细版本,3分钟你就学会了! [五] ...

  10. 1.1 C++ STL 字符串构造函数

    String 字符串操作容器是C++标准中实现的重要容器,其主要用于对字符串的高效处理,它和C风格中的string.h并不是同一个库,两个库有极大的差距,C库中的string.h主要面向过程提供一些处 ...