首页 > Web开发 > 详细

修改AutoCAD-Net-Wizards 支持VS2019

时间:2020-02-29 09:42:41      阅读:346      评论:0      收藏:0      [点我收藏+]

原因

官方提供的
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],以及

<?define NetFx47MinRelease = 460798 ?> 中 460798 为 461814(Win10 则为 461808)
<Condition Message="[ProductName] Requires .NET Framework 4.7 or later to be installed"> 中的 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
-编译解决方案,生成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

修改AutoCAD-Net-Wizards 支持VS2019

原文:https://www.cnblogs.com/loveclumsybaby/p/12380881.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!