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. [转帖]UseG1GC垃圾回收技术解析

    https://www.cnblogs.com/yuanzipeng/p/13374690.html 介绍 G1 GC,全称Garbage-First Garbage Collector,通过-XX: ...

  2. 【原创】linux为什么不是实时操作系统

    一.什么是实时操作系统(RTOS)? 可参见本博客之前的文章: 什么是实时 实时的分类 常见的RTOS latency和jitter 总结一下,实时其实说的是系统响应事件需要的时间的确定性,时间必须确 ...

  3. CDP技术系列(三):百万级QPS的人群命中服务接口性能优化指南

    一.背景介绍 CDP系统提供了强大的标签和群体的构建能力,面对海量数据的标签和群体,我们采用了Bitmap+ClickHouse的存储与计算方案.详细内容可以参考之前文章. 有了群体之后,它们被广泛的 ...

  4. 替换 &开头。;结尾之间的内容。用空格代替他们

    替换 &开头.;结尾之间的内容.用空格代替他们 var regExp = /\&.*?\;/g; var str = '123&asdsa;dqwe'; str = str.r ...

  5. 微信小程序-页面跳转wxAPI

    官方文档地址:https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateTo.html wx.navigateTo(O ...

  6. Python自动化办公--Pandas玩转Excel数据分析【三】

    相关文章: Python自动化办公--Pandas玩转Excel[一] Python自动化办公--Pandas玩转Excel数据分析[二] python处理Excel实现自动化办公教学(含实战)[一] ...

  7. C/C++ 通用ShellCode的编写与调用

    首先,我们的ShellCode代码需要自定位,因为我们的代码并不是一个完整的EXE可执行程序,他没有导入表无法定位到当前系统中每个函数的虚拟地址,所以我们直接获取到Kernel32.dll的基地址,里 ...

  8. Python初学(请大神多多指教)

    python的注释单行注释用#号多行注释用'''  '''注释 基本数据类型 字符串--   n1 = "alex"   n2 = 'root'       n3 = " ...

  9. 程序员必备技能:一键创建windows 服务

    使用windows开发或者使用windows服务器的朋,应该经常会遇到有些程序要开机启动,或者有些服务要持续执行. 这样最稳定可靠的,就是把程序创建为windows服务. 以下bat脚本,仅供参考. ...

  10. SecureCRT终端显示中文乱码问题的解决方案

    错误描述:在windows10下通过SecureCRT远程连接Linux终端时,如果Linux里面存放有带有中文的文件或文件名,那么SecureCRT终端就会显示乱码. 错误记录:如下图所示,在我的文 ...