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. Natapp 邀请码 积分

    邀请码: 29F145FC 充值95折

  2. 微信小程序-页面跳转Tabbar

    官方文档地址:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#tabBar 首先我们 ...

  3. Python RE 正则表达式模块

    正则表达式,又称规则表达式,(Regular Expression,在代码中常简写为regex.regexp或RE),是一种文本模式,包括普通字符(例如,a 到 z 之间的字母)和特殊字符(称为&qu ...

  4. 在package.json里面配置npx

    1.配置这个npx表示打包的时候选择本地node_modules安装的webpack来打包

  5. json扩展之自定义序列化方式

    简介:由于json.dumps() 只能序列化Python基本数据类型,如果我们想要在数据中掺杂时间对象,或者自定义类的对象则会造成序列化数据的失败,因此json.dumps() 提供了一个属性 cl ...

  6. Windows上部署Python flask项目

    最近使用Python flask做了一个项目要部署,网上一大堆教程没有一个完整,最后看了多个教程才配置完成,下面根据自己的环境整理一下做个备忘录 环境: Windows 10 apache httpd ...

  7. 将Windows系统设置为NTP服务器

    环境 Windows 10,本机IP地址为:192.168.6.133 步骤 一.编辑注册表 win+r快捷键打开运行窗口,输入regedit打开注册表编辑器,找到以下几项并修改其值: 1.将type ...

  8. MySQL主主同步环境出现1236错误

    环境: MySQL 5.7.25 主主架构 故障现象: 发现互相之间的同步均发生异常,两端均出现1236错误,在两个主节点上分别执行show slave status显示的关键信息如下: Master ...

  9. 4.if语句--《Python编程:从入门到实践》

    4.1 检查多个条件   1.使用 and 检查多个条件   2.使用 or 检查多个条件 4.2 检查特定值是否包含在列表中   使用 in 检查特定值是否在列表中 >>> req ...

  10. yapi 的分组的理解!

    yapi ,分为超级管理员和 分组组长和项目组长: ------------------------------------------------------------------------ 人 ...