c# - Visual Studio Prevent Changes to Linked File -



c# - Visual Studio Prevent Changes to Linked File -

in visual studio can add together link source file in project. there way enforce preventing changes beingness performed on linked source file (ie: link them project 'read only', prevent accidental modifications folks don't realize linked, , not local project)?

i have 2 projects, 1 of dll, other exe. dll contains windows serviceinstaller , servicebase classes. link these classes exe (there multiple flavors of exe) dll in order exe installable service , me not have replicate servicebase , serviceinstaller in of exes. not want inadvertently able create changes linked classes within context of exe project.

not via visual studio-supported mechanism, no.

imho, general rule should not using linked file that. yes, feature exists in vs, reason mention others, it's great way create code maintenance headaches.

note own scenario solved exposing shared types in assembly , referencing assembly need them. i.e. reference dll exe , utilize types compiled dll rather having exe define new versions of types using same source code.

c# visual-studio

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -