• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梧桐爱凤
博客园    首页    新随笔    联系   管理    订阅  订阅

修改AutoCAD-Net-Wizards 支持VS2019

原因

官方提供的
https://github.com/ADN-DevTech/AutoCAD-Net-Wizards/blob/ForAutoCAD2020/AutoCADNetWizardsInstaller/AutoCAD_2020_dotnet_wizards.zip
支持的是.net framework 4.7 和 VS2017。

目的

支持.net framework 4.7.2 和 VS2010

步骤

  • 下载代码https://github.com/ADN-DevTech/AutoCAD-Net-Wizards.git

  • 切换到分支ForAutoCAD2020

  • 下载并安装https://marketplace.visualstudio.com/items?itemName=WixToolset.WixToolsetVisualStudio2019Extension

  • 下载并安装https://www.7-zip.org/download.html,在环境变量Path里面加上一条7z的安装路径C:\Program Files\7-Zip(具体看安装路径);

  • 下载并安装https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311.exe

  • 打开AutoCADNetWizardsInstaller\AutoCADNetWizards.sln 如果提示.net 框架问题,可以选择先加载后修改

  • 打开AutoCADNetWizards 工程

  • 打开AutoCADNetWizards.wxs,修改 [VS2017] 为 [VS2019],以及

    中 460798 为 461814(Win10 则为 461808)

    中的 4.7 为4.7.2

  • 打开directory.wxi,修改 [VS2017] 为 [VS2019]

  • 打开property.wxi,修改[2017] 为 [2019]
    Key="SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7" Name="15.0" Type="directory" /> 改为:
    Key="SOFTWARE\WOW6432Node\Microsoft\VisualStudio\VSPerf" Name="CollectionToolsDir2019" Type="raw" />

  • 打开AutoCAD CSharp plug-in工程,修改MyTemplate.vstemplate中的4.7 为4.7.2

  • 编译AutoCADNetWizards ,生成msi

参考资料:

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
http://blog.sina.com.cn/s/blog_6cbf08ad0102vs0k.html

每多学一点知识,就少写一行代码
posted @ 2020-02-29 01:07  梧桐爱凤  阅读(2651)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3