O
O
Oscar S2015-07-29 12:15:16
.NET
Oscar S, 2015-07-29 12:15:16

Shared *.cs files in multiple projects with different version of .NET Framework?

Good afternoon!
Is it possible to refer to common *.cs files in different c# projects in order to avoid creating extra *.dll libraries?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Pavel Osadchuk, 2015-07-29
@OscarS

When adding a file, add it as a link.
file-as-a-link.png

G
GavriKos, 2015-07-29
@GavriKos

Opportunity - is. But it's better not to do that. If you have some common cs files, then separate them into a separate project, link them, and so on.

S
Stanislav Makarov, 2015-07-29
@Nipheris

You can make links to files in another folder, Shared projects appeared in the 2015 studio - these are projects that are not compiled in the usual sense (into a separate assembly), but are "included" in each project that refers to this shared-project. However,
> to avoid creating extra *.dll libraries?
what exactly is the problem? You can compile under different dotnets by making different project configurations, this is a normal situation. Do you need one exe file to be strict?

A
AxisPod, 2015-07-29
@AxisPod

Hmm, you don't need to do that, what's stopping you from .dll?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question