Coder Social home page Coder Social logo

cad_secondary_development_with_csharp's Introduction

C#+AutoCAD二次开发实现不关闭CAD程序重新加载dll文件

  • 启动项目时需要用netload命令加载NetloadX.dll文件,之后就可以利用NetloadX类里面的NLX加载编译后的其他dll文件了

  • 解决方案里有另一个项目,这个项目上需要将AssemblyInfo.cs文件里面的代码按下面内容进行修改,此外还需要把该项目的csproj文件里面的Deterministic属性从true改成false,我用的是2017,如果不修改这个属性会报出CS8357错误。

    //[assembly: AssemblyVersion("1.0.0.0")]
    //[assembly: AssemblyFileVersion("1.0.0.0")]
    [assembly: AssemblyVersion("1.1.*")]
以上就是我的解决思路,这里也再分享一位大佬的解决思路https://www.bilibili.com/video/BV1eq4y1J7wV?p=3 ,他用的也是调用外部dll文件的方式实现不重启CAD重编译项目,不过在实际使用过程中我发现有时候他的这个办法会报错,且无法对项目进行调试,这里我分享的这个思路可以按平常的步骤对开发的项目进行调试。
写在最后,如果有更好的解决办法,欢迎大家一起讨论!!!

cad_secondary_development_with_csharp's People

Contributors

wlka avatar

Stargazers

 avatar  avatar Mikasa avatar Jason avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

x1ng-z mummyeye

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.