基线:全量源码首提(D1 版本控制落地,含第一轮优化 B1-B4/A1/A4/缩放修复)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""把 csproj 里 Smart.CustomComponents 的 HintPath 从安装目录改指仓库 bin(最新构建)。"""
|
||||
import io
|
||||
|
||||
P = r"C:\Users\099978\Documents\SharpDevelop Projects\成套报价软件\成套报价软件\成套报价软件.csproj"
|
||||
OLD = r"<HintPath>..\..\..\..\..\..\Program Files %28x86%29\SharpDevelop\5.2\bin\Smart.CustomComponents.dll</HintPath>"
|
||||
NEW = r"<HintPath>F:\Visual Studio\1\33\SharpDevelop-master\bin\Smart.CustomComponents.dll</HintPath>"
|
||||
|
||||
s = io.open(P, encoding="utf-8-sig").read()
|
||||
assert OLD in s, "旧 HintPath 未找到"
|
||||
io.open(P, "w", encoding="utf-8-sig").write(s.replace(OLD, NEW))
|
||||
print("HintPath 已指向仓库 bin(最新构建)")
|
||||
Reference in New Issue
Block a user