| |

VerySource

 Forgot password?
 Register
Search
View: 948|Reply: 8

Questions about introducing dll files

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-17 21:00:01
| Show all posts |Read mode
I now want to import a dll file, such as jmail.dll. I usually import this dll file into the Bin folder, and then reference and compile it.
If I just copy it to the Bin folder, then refresh and compile, instead of right-clicking "Add Reference", can I use this dll file?

How do you generally reference a dll file?
Reply

Use magic Report

1

Threads

18

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-25 08:54:01
| Show all posts
Yes, you can add a reference under bin and right click
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-28 10:18:01
| Show all posts
If I just copy it to the Bin folder, then refresh and compile, instead of right-clicking "Add Reference", can I use this dll file?
That doesn't work, you need to add a reference
Reply

Use magic Report

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-2-16 16:00:01
| Show all posts
Just copy it to the Bin folder, then refresh and compile, instead of right-clicking "Add Reference",-this is OK or not, I can't test it myself, but many on the Internet also say can;
The above one said yes, the other said no


Is there an exact statement?
Reply

Use magic Report

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-17 19:30:01
| Show all posts
It is okay in principle, but it is not clear, you can try it yourself
Reply

Use magic Report

0

Threads

27

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-2-17 23:00:01
| Show all posts
No, because the dll is loaded when you open the project, so in the case of the project, it is not possible to just overwrite the dll under bin. You can first close the project and overwrite the dll under bin. , And then open the project so that you don't have to reference it every time.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-18 08:15:01
| Show all posts
Add a reference, VS will copy him to the BIN directory automatically.
Reply

Use magic Report

0

Threads

26

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 Taiwan

Post time: 2020-2-18 21:45:01
| Show all posts
The bin directory is just a .net folder for unified management of dlls.
You must right-click to add a reference, otherwise it will not work.
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-20 13:15:01
| Show all posts
Must add a reference

UPUP
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list