Asset Management

I have written quite a bit of code over the past few years. I use the Visual Studio development environment for my C # code, but I would not call myself an experienced Visual Studio user. I can create projects, create source code and build / debug a project. I do not use many of the advanced features of the IDE, so there may be an easy way to do what I would like.

My code is often reused - especially, for example, filtering tools, custom controls (graphics / etc) and some communication code (COM / USB / etc). Every time I create a new project, I end up importing a lot of code that I need. This code is copied to the new project directory. If I somehow edit this code, then I need to update all other versions of this file in other projects. I should always check that the code I import is the "last and biggest".

I know that you can add code to your project by reference, and then you update the source file, but I'm curious if there is a better way. My example of a “better way” is the Allegro Lisp compiler. When you launch Allegro, all of your code is loaded into Allegro and instantly available. Then you can start hacking everything you want and have access to all your previous code. When you edit and compile something, it can be instantly used in your other projects. (Usually, even if the program is open!) Perhaps this is something quite unique for Allegro Lisp?

Is there a way to do something like this in C #? I would like to keep separate projects, but I would like to share the source between them and not worry about the versions being out of sync. What do everyone else do when they want to process the code?

Thank,

Giawa

+3
1

, , , , . , , .

- , . , .

+2

Source: https://habr.com/ru/post/1772304/


All Articles